Package org.jivesoftware.smackx.xdata
Class SingleValueFormField
- java.lang.Object
-
- org.jivesoftware.smackx.xdata.FormField
-
- org.jivesoftware.smackx.xdata.SingleValueFormField
-
- All Implemented Interfaces:
Element
,FullyQualifiedElement
,NamedElement
,XmlLangElement
- Direct Known Subclasses:
AbstractSingleStringValueFormField
,BooleanFormField
,JidSingleFormField
public abstract class SingleValueFormField extends FormField
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.jivesoftware.smackx.xdata.FormField
FormField.Builder<F extends FormField,B extends FormField.Builder<?,?>>, FormField.Description, FormField.Option, FormField.Required, FormField.Type, FormField.Value
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
SingleValueFormField(FormField.Builder<?,?> builder)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract CharSequence
getValue()
List<CharSequence>
getValues()
Returns a List of the default values of the question if the question is part of a form to fill out.protected void
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, getType, getValuesAsString, getVariable, 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.FullyQualifiedElement
getLanguage
-
-
-
-
Constructor Detail
-
SingleValueFormField
protected SingleValueFormField(FormField.Builder<?,?> builder)
-
-
Method Detail
-
getValues
public final List<CharSequence> 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
public abstract CharSequence getValue()
-
populateExtraXmlChildElements
protected void populateExtraXmlChildElements()
- Overrides:
populateExtraXmlChildElements
in classFormField
-
-