public static class ValidateElement.RangeValidateElement extends ValidateElement
ValidateElementValidateElement.BasicValidateElement, ValidateElement.ListRange, ValidateElement.OpenValidateElement, ValidateElement.RangeValidateElement, ValidateElement.RegexValidateElement| Modifier and Type | Field and Description |
|---|---|
static String |
METHOD |
DATATYPE_XS_STRING, ELEMENT, NAMESPACE| Constructor and Description |
|---|
RangeValidateElement(String dataType,
String min,
String max) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
appendXML(XmlStringBuilder buf) |
void |
checkConsistency(FormField formField)
Check if this element is consistent according to the business rules in XEP=0122
|
String |
getMax()
The 'max' attribute specifies the maximum allowable value.
|
String |
getMin()
The 'min' attribute specifies the minimum allowable value.
|
checkListRangeConsistency, checkNonMultiConsistency, getDatatype, getElementName, getListRange, getNamespace, setListRange, toXMLpublic static final String METHOD
public RangeValidateElement(String dataType, String min, String max)
dataType - min - 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(XmlStringBuilder buf)
appendXML in class ValidateElementpublic String getMin()
public String getMax()
public void checkConsistency(FormField formField)
ValidateElementcheckConsistency in class ValidateElement