Class ValidateElement.ListRange
java.lang.Object
org.jivesoftware.smackx.xdatavalidation.packet.ValidateElement.ListRange
- All Implemented Interfaces:
org.jivesoftware.smack.packet.Element,org.jivesoftware.smack.packet.NamedElement,org.jivesoftware.smack.packet.XmlElement,org.jivesoftware.smack.packet.XmlLangElement
- Enclosing class:
ValidateElement
public static class ValidateElement.ListRange
extends Object
implements org.jivesoftware.smack.packet.XmlElement
This element indicates for "list-multi", that a minimum and maximum number of options should be selected and/or
entered.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.jivesoftware.smack.datatypes.UInt32getMax()The maximum allowable number of selected/entered values.org.jivesoftware.smack.datatypes.UInt32getMin()The minimum allowable number of selected/entered values.org.jivesoftware.smack.util.XmlStringBuildertoXML(org.jivesoftware.smack.packet.XmlEnvironment enclosingXmlEnvironment) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.jivesoftware.smack.packet.Element
toXML, toXMLMethods inherited from interface org.jivesoftware.smack.packet.XmlElement
getLanguage, getQName
-
Field Details
-
ELEMENT
- See Also:
-
-
Constructor Details
-
ListRange
-
ListRange
public ListRange(org.jivesoftware.smack.datatypes.UInt32 min, org.jivesoftware.smack.datatypes.UInt32 max) The 'max' attribute specifies the maximum allowable number of selected/entered values. The 'min' attribute specifies the minimum allowable number of selected/entered values. Both attributes are optional, but at least one must bet set, and the value must be within the range of a unsigned 32-bit integer.- Parameters:
min- TODO javadoc me pleasemax- TODO javadoc me please
-
-
Method Details
-
toXML
public org.jivesoftware.smack.util.XmlStringBuilder toXML(org.jivesoftware.smack.packet.XmlEnvironment enclosingXmlEnvironment) - Specified by:
toXMLin interfaceorg.jivesoftware.smack.packet.Element
-
getElementName
- Specified by:
getElementNamein interfaceorg.jivesoftware.smack.packet.NamedElement
-
getMin
public org.jivesoftware.smack.datatypes.UInt32 getMin()The minimum allowable number of selected/entered values.- Returns:
- a positive integer, can be null
-
getMax
public org.jivesoftware.smack.datatypes.UInt32 getMax()The maximum allowable number of selected/entered values.- Returns:
- a positive integer, can be null
-
getNamespace
- Specified by:
getNamespacein interfaceorg.jivesoftware.smack.packet.XmlElement
-