Class ValidateElement.RangeValidateElement

  • All Implemented Interfaces:
    org.jivesoftware.smack.packet.Element, org.jivesoftware.smack.packet.NamedElement, org.jivesoftware.smack.packet.XmlElement, org.jivesoftware.smack.packet.XmlLangElement, FormFieldChildElement
    Enclosing class:
    ValidateElement

    public static class ValidateElement.RangeValidateElement
    extends ValidateElement
    Indicate that the value should fall within a certain range.
    See Also:
    ValidateElement
    • Constructor Detail

      • RangeValidateElement

        public RangeValidateElement​(java.lang.String datatype,
                                    java.lang.String min,
                                    java.lang.String max)
        Range validate element constructor.
        Parameters:
        datatype - TODO javadoc me please
        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.
        See Also:
        ValidateElement.getDatatype()
    • Method Detail

      • appendXML

        protected void appendXML​(org.jivesoftware.smack.util.XmlStringBuilder buf)
        Description copied from class: ValidateElement
        Append XML.
        Specified by:
        appendXML in class ValidateElement
        Parameters:
        buf - TODO javadoc me please
      • getMin

        public java.lang.String getMin()
        The 'min' attribute specifies the minimum allowable value.
        Returns:
        the minimum allowable value. This attribute is OPTIONAL. The value depends on the datatype in use.
      • getMax

        public java.lang.String getMax()
        The 'max' attribute specifies the maximum allowable value.
        Returns:
        the maximum allowable value. This attribute is OPTIONAL. The value depends on the datatype in use.
      • validate

        public void validate​(FormField formField)