Package org.jivesoftware.smackx.xdata
Class SingleValueFormField
java.lang.Object
org.jivesoftware.smackx.xdata.FormField
org.jivesoftware.smackx.xdata.SingleValueFormField
- All Implemented Interfaces:
Element
,NamedElement
,XmlElement
,XmlLangElement
- Direct Known Subclasses:
AbstractSingleStringValueFormField
,BooleanFormField
,JidSingleFormField
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
SingleValueFormField.Builder<F extends SingleValueFormField,
B extends SingleValueFormField.Builder<F, B>> Nested classes/interfaces inherited from class org.jivesoftware.smackx.xdata.FormField
FormField.Description, FormField.Option, FormField.Required, FormField.Type, FormField.Value
-
Field Summary
-
Constructor Summary
ModifierConstructorDescriptionprotected
SingleValueFormField
(SingleValueFormField.Builder<?, ?> builder) -
Method Summary
Modifier and TypeMethodDescriptionfinal FormField.Value
final List<FormField.Value>
abstract CharSequence
getValue()
final List<CharSequence>
Returns a List of the default values of the question if the question is part of a form to fill out.protected void
PopulateFormField.extraXmlChildElements
.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, hashCode, hasValueSet, hiddenBuilder, ifPossibleAs, ifPossibleAsOrThrow, isRequired, jidMultiBuilder, jidSingleBuilder, listMultiBuilder, listSingleBuilder, textMultiBuilder, textPrivateBuilder, textSingleBuilder, toXML, toXML
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.jivesoftware.smack.packet.XmlElement
getLanguage
-
Constructor Details
-
SingleValueFormField
-
-
Method Details
-
getValues
Description copied from class:FormField
Returns a List of the default values of the question if the question is part of a form to fill out. Otherwise, returns a List of the answered values of the question. -
getValue
-
getRawValue
-
getRawValues
- Specified by:
getRawValues
in classFormField
-
populateExtraXmlChildElements
Description copied from class:FormField
PopulateFormField.extraXmlChildElements
. Note that this method may be overridden by subclasses.- Overrides:
populateExtraXmlChildElements
in classFormField
-