public static class ValidateElement.RangeValidateElement extends ValidateElement
ValidateElementValidateElement.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.
|
void |
validate(FormField formField) |
checkListRangeConsistency, checkNonMultiConsistency, from, getDatatype, getElementName, getListRange, getNamespace, getQName, mustBeOnlyOfHisKind, setListRange, toXMLclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisExclusiveElement, requiresNoTypeSetpublic 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 ValidateElementbuf - TODO javadoc me pleasepublic java.lang.String getMin()
public java.lang.String getMax()
public void checkConsistency(FormField.Builder<?,?> formField)
ValidateElementcheckConsistency in interface FormFieldChildElementcheckConsistency in class ValidateElementformField - the builder used to construct the form field.public void validate(FormField formField)