Class ValidateElement.ListRange
- java.lang.Object
-
- org.jivesoftware.smackx.xdatavalidation.packet.ValidateElement.ListRange
-
- All Implemented Interfaces:
Element
,FullyQualifiedElement
,NamedElement
,XmlLangElement
- Enclosing class:
- ValidateElement
public static class ValidateElement.ListRange extends Object implements FullyQualifiedElement
This element indicates for "list-multi", that a minimum and maximum number of options should be selected and/or entered.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getElementName()
Returns the root element name.UInt32
getMax()
The maximum allowable number of selected/entered values.UInt32
getMin()
The minimum allowable number of selected/entered values.String
getNamespace()
Returns the root element XML namespace.XmlStringBuilder
toXML(XmlEnvironment enclosingXmlEnvironment)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.jivesoftware.smack.packet.FullyQualifiedElement
getLanguage, getQName
-
-
-
-
Field Detail
-
ELEMENT
public static final String ELEMENT
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ListRange
public ListRange(UInt32 min, 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 Detail
-
toXML
public XmlStringBuilder toXML(XmlEnvironment enclosingXmlEnvironment)
-
getElementName
public String getElementName()
Description copied from interface:NamedElement
Returns the root element name.- Specified by:
getElementName
in interfaceNamedElement
- Returns:
- the element name.
-
getMin
public UInt32 getMin()
The minimum allowable number of selected/entered values.- Returns:
- a positive integer, can be null
-
getMax
public UInt32 getMax()
The maximum allowable number of selected/entered values.- Returns:
- a positive integer, can be null
-
getNamespace
public String getNamespace()
Description copied from interface:FullyQualifiedElement
Returns the root element XML namespace.- Specified by:
getNamespace
in interfaceFullyQualifiedElement
- Returns:
- the namespace.
-
-