Class ValidateElement.RangeValidateElement
java.lang.Object
org.jivesoftware.smackx.xdatavalidation.packet.ValidateElement
org.jivesoftware.smackx.xdatavalidation.packet.ValidateElement.RangeValidateElement
- All Implemented Interfaces:
Element, NamedElement, XmlElement, XmlLangElement, FormFieldChildElement
- Enclosing class:
ValidateElement
Indicate that the value should fall within a certain range.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class ValidateElement
ValidateElement.BasicValidateElement, ValidateElement.ListRange, ValidateElement.OpenValidateElement, ValidateElement.RangeValidateElement, ValidateElement.RegexValidateElement -
Field Summary
FieldsFields inherited from class ValidateElement
DATATYPE_XS_STRING, ELEMENT, NAMESPACE, QNAME -
Constructor Summary
ConstructorsConstructorDescriptionRangeValidateElement(String datatype, String min, String max) Range validate element constructor. -
Method Summary
Modifier and TypeMethodDescriptionprotected voidAppend XML.voidcheckConsistency(FormField.Builder<?, ?> formField) Check if this element is consistent according to the business rules in XEP-0122.getMax()The 'max' attribute specifies the maximum allowable value.getMin()The 'min' attribute specifies the minimum allowable value.voidMethods inherited from class ValidateElement
checkListRangeConsistency, checkNonMultiConsistency, from, getDatatype, getElementName, getListRange, getNamespace, getQName, mustBeOnlyOfHisKind, setListRange, toXMLMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface FormFieldChildElement
isExclusiveElement, requiresNoTypeSetMethods inherited from interface XmlElement
getLanguage
-
Field Details
-
METHOD
-
-
Constructor Details
-
RangeValidateElement
Range validate element constructor.- Parameters:
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.- See Also:
-
-
Method Details
-
appendXML
Description copied from class:ValidateElementAppend XML.- Specified by:
appendXMLin classValidateElement- Parameters:
buf- TODO javadoc me please
-
getMin
-
getMax
-
checkConsistency
Description copied from class:ValidateElementCheck if this element is consistent according to the business rules in XEP-0122.- Specified by:
checkConsistencyin interfaceFormFieldChildElement- Specified by:
checkConsistencyin classValidateElement- Parameters:
formField- the builder used to construct the form field.
-
validate
-