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
    Modifier and Type
    Field
    Description
    static final String
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    ListRange(Long min, Long max)
     
    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.
  • Method Summary

    Modifier and Type
    Method
    Description
     
    org.jivesoftware.smack.datatypes.UInt32
    The maximum allowable number of selected/entered values.
    org.jivesoftware.smack.datatypes.UInt32
    The minimum allowable number of selected/entered values.
     
    org.jivesoftware.smack.util.XmlStringBuilder
    toXML(org.jivesoftware.smack.packet.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.Element

    toXML, toXML

    Methods inherited from interface org.jivesoftware.smack.packet.XmlElement

    getLanguage, getQName
  • Field Details

  • Constructor Details

    • ListRange

      public ListRange(Long min, Long max)
    • 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 please
      max - TODO javadoc me please
  • Method Details

    • toXML

      public org.jivesoftware.smack.util.XmlStringBuilder toXML(org.jivesoftware.smack.packet.XmlEnvironment enclosingXmlEnvironment)
      Specified by:
      toXML in interface org.jivesoftware.smack.packet.Element
    • getElementName

      public String getElementName()
      Specified by:
      getElementName in interface org.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

      public String getNamespace()
      Specified by:
      getNamespace in interface org.jivesoftware.smack.packet.XmlElement