Package org.jivesoftware.smackx.xdata
Class BooleanFormField
- java.lang.Object
-
- org.jivesoftware.smackx.xdata.FormField
-
- org.jivesoftware.smackx.xdata.SingleValueFormField
-
- org.jivesoftware.smackx.xdata.BooleanFormField
-
- All Implemented Interfaces:
org.jivesoftware.smack.packet.Element,org.jivesoftware.smack.packet.FullyQualifiedElement,org.jivesoftware.smack.packet.NamedElement,org.jivesoftware.smack.packet.XmlLangElement
public class BooleanFormField extends SingleValueFormField
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classBooleanFormField.Builder-
Nested classes/interfaces inherited from class org.jivesoftware.smackx.xdata.FormField
FormField.Description, FormField.Option, FormField.Required, FormField.Type, FormField.Value
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedBooleanFormField(BooleanFormField.Builder builder)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BooleanFormField.BuilderasBuilder()java.lang.StringgetValue()java.lang.BooleangetValueAsBoolean()-
Methods inherited from class org.jivesoftware.smackx.xdata.SingleValueFormField
getRawValue, getRawValues, getValues, populateExtraXmlChildElements
-
Methods inherited from class org.jivesoftware.smackx.xdata.FormField
asHiddenFormTypeFieldIfPossible, booleanBuilder, builder, buildHiddenFormType, equals, fixedBuilder, fixedBuilder, getDescription, getElementName, getFieldName, getFirstValue, getFirstValueAsDate, getFormFieldChildElement, getFormFieldChildElements, getFormFieldChildElements, getLabel, getNamespace, getQName, getRawValueCharSequences, getType, getValuesAsString, getVariable, hashCode, hasValueSet, hiddenBuilder, ifPossibleAs, ifPossibleAsOrThrow, isRequired, jidMultiBuilder, jidSingleBuilder, listMultiBuilder, listSingleBuilder, textMultiBuilder, textPrivateBuilder, textSingleBuilder, toXML, toXML
-
-
-
-
Constructor Detail
-
BooleanFormField
protected BooleanFormField(BooleanFormField.Builder builder)
-
-
Method Detail
-
getValue
public java.lang.String getValue()
- Specified by:
getValuein classSingleValueFormField
-
getValueAsBoolean
public java.lang.Boolean getValueAsBoolean()
-
asBuilder
public BooleanFormField.Builder asBuilder()
-
-