Package org.jivesoftware.smackx.xdata
Class AbstractSingleStringValueFormField.Builder<F extends FormField,B extends FormField.Builder<F,B>>
- java.lang.Object
-
- org.jivesoftware.smackx.xdata.FormField.Builder<F,B>
-
- org.jivesoftware.smackx.xdata.AbstractSingleStringValueFormField.Builder<F,B>
-
- Direct Known Subclasses:
ListSingleFormField.Builder
,TextSingleFormField.Builder
- Enclosing class:
- AbstractSingleStringValueFormField
public abstract static class AbstractSingleStringValueFormField.Builder<F extends FormField,B extends FormField.Builder<F,B>> extends FormField.Builder<F,B>
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
Builder(String fieldName, FormField.Type type)
protected
Builder(AbstractSingleStringValueFormField abstractSingleFormField)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description B
addValue(CharSequence value)
Deprecated.usesetValue(CharSequence)
instead.protected void
resetInternal()
B
setValue(int value)
B
setValue(CharSequence value)
B
setValue(Enum<?> value)
B
setValue(URL value)
B
setValue(Date date)
-
Methods inherited from class org.jivesoftware.smackx.xdata.FormField.Builder
addFormFieldChildElement, addFormFieldChildElements, build, getThis, getType, reset, setDescription, setLabel, setRequired, setRequired
-
-
-
-
Constructor Detail
-
Builder
protected Builder(AbstractSingleStringValueFormField abstractSingleFormField)
-
Builder
protected Builder(String fieldName, FormField.Type type)
-
-
Method Detail
-
resetInternal
protected void resetInternal()
- Specified by:
resetInternal
in classFormField.Builder<F extends FormField,B extends FormField.Builder<F,B>>
-
addValue
@Deprecated public B addValue(CharSequence value)
Deprecated.usesetValue(CharSequence)
instead.Set the value.- Parameters:
value
- the value to set.- Returns:
- a reference to this builder.
-
setValue
public B setValue(CharSequence value)
-
-