public static class ValidateElement.RangeValidateElement extends ValidateElement
ValidateElement
ValidateElement.BasicValidateElement, ValidateElement.ListRange, ValidateElement.OpenValidateElement, ValidateElement.RangeValidateElement, ValidateElement.RegexValidateElement
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
METHOD |
DATATYPE_XS_STRING, ELEMENT, NAMESPACE, QNAME
Constructor and Description |
---|
RangeValidateElement(java.lang.String datatype,
java.lang.String min,
java.lang.String max)
Range validate element constructor.
|
Modifier and Type | Method and Description |
---|---|
protected void |
appendXML(org.jivesoftware.smack.util.XmlStringBuilder buf) |
void |
checkConsistency(FormField.Builder formField)
Check if this element is consistent according to the business rules in XEP-0122.
|
java.lang.String |
getMax()
The 'max' attribute specifies the maximum allowable value.
|
java.lang.String |
getMin()
The 'min' attribute specifies the minimum allowable value.
|
checkListRangeConsistency, checkNonMultiConsistency, from, getDatatype, getElementName, getListRange, getNamespace, getQName, mustBeOnlyOfHisKind, setListRange, toXML
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isExclusiveElement, requiresNoTypeSet
public static final java.lang.String METHOD
public RangeValidateElement(java.lang.String datatype, java.lang.String min, java.lang.String max)
datatype
- TODO javadoc me pleasemin
- the minimum allowable value. This attribute is OPTIONAL. The value depends on the datatype in use.max
- the maximum allowable value. This attribute is OPTIONAL. The value depends on the datatype in use.ValidateElement.getDatatype()
protected void appendXML(org.jivesoftware.smack.util.XmlStringBuilder buf)
appendXML
in class ValidateElement
buf
- TODO javadoc me pleasepublic java.lang.String getMin()
public java.lang.String getMax()
public void checkConsistency(FormField.Builder formField)
ValidateElement
checkConsistency
in interface FormFieldChildElement
checkConsistency
in class ValidateElement
formField
- the builder used to construct the form field.