Package org.jivesoftware.smackx.xdata
Class BooleanFormField.Builder
- java.lang.Object
-
- org.jivesoftware.smackx.xdata.FormField.Builder<F,B>
-
- org.jivesoftware.smackx.xdata.SingleValueFormField.Builder<BooleanFormField,BooleanFormField.Builder>
-
- org.jivesoftware.smackx.xdata.BooleanFormField.Builder
-
- Enclosing class:
- BooleanFormField
public static final class BooleanFormField.Builder extends SingleValueFormField.Builder<BooleanFormField,BooleanFormField.Builder>
-
-
Field Summary
-
Fields inherited from class org.jivesoftware.smackx.xdata.SingleValueFormField.Builder
rawValue
-
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description BooleanFormField.Builder
addValue(CharSequence value)
Deprecated.usesetValue(CharSequence)
instead.BooleanFormField
build()
BooleanFormField.Builder
getThis()
protected void
resetInternal()
BooleanFormField.Builder
setValue(boolean value)
BooleanFormField.Builder
setValue(CharSequence value)
BooleanFormField.Builder
setValue(FormField.Value value)
-
Methods inherited from class org.jivesoftware.smackx.xdata.FormField.Builder
addFormFieldChildElement, addFormFieldChildElements, getType, reset, setDescription, setLabel, setRequired, setRequired
-
-
-
-
Method Detail
-
resetInternal
protected void resetInternal()
- Overrides:
resetInternal
in classSingleValueFormField.Builder<BooleanFormField,BooleanFormField.Builder>
-
addValue
@Deprecated public BooleanFormField.Builder addValue(CharSequence value)
Deprecated.usesetValue(CharSequence)
instead.Set the value.- Parameters:
value
- the value to set.- Returns:
- a reference to this builder.
-
setValue
public BooleanFormField.Builder setValue(CharSequence value)
-
setValue
public BooleanFormField.Builder setValue(FormField.Value value)
-
setValue
public BooleanFormField.Builder setValue(boolean value)
-
build
public BooleanFormField build()
- Specified by:
build
in classFormField.Builder<BooleanFormField,BooleanFormField.Builder>
-
getThis
public BooleanFormField.Builder getThis()
- Specified by:
getThis
in classFormField.Builder<BooleanFormField,BooleanFormField.Builder>
-
-