Class ValidateElement

    • Field Detail

      • DATATYPE_XS_STRING

        public static final java.lang.String DATATYPE_XS_STRING
        See Also:
        Constant Field Values
      • QNAME

        public static final javax.xml.namespace.QName QNAME
    • Method Detail

      • getDatatype

        public java.lang.String getDatatype()
        Specifies the data type of any value contained within the FormField element. It MUST meet one of the following conditions:
        • Start with "xs:", and be one of the "built-in" datatypes defined in XML Schema Part 2 [2]
        • Start with a prefix registered with the XMPP Registrar [3]
        • Start with "x:", and specify a user-defined datatype [4]
        Returns:
        the datatype
      • getElementName

        public java.lang.String getElementName()
        Specified by:
        getElementName in interface org.jivesoftware.smack.packet.NamedElement
      • getNamespace

        public java.lang.String getNamespace()
        Specified by:
        getNamespace in interface org.jivesoftware.smack.packet.FullyQualifiedElement
      • getQName

        public javax.xml.namespace.QName getQName()
        Specified by:
        getQName in interface org.jivesoftware.smack.packet.FullyQualifiedElement
      • toXML

        public org.jivesoftware.smack.util.XmlStringBuilder toXML​(org.jivesoftware.smack.packet.XmlEnvironment enclosingNamespace)
        Specified by:
        toXML in interface org.jivesoftware.smack.packet.Element
      • appendXML

        protected abstract void appendXML​(org.jivesoftware.smack.util.XmlStringBuilder buf)
        Parameters:
        buf - TODO javadoc me please
      • setListRange

        public void setListRange​(ValidateElement.ListRange listRange)
        Set list range.
        Parameters:
        listRange - the listRange to set
      • checkConsistency

        public abstract void checkConsistency​(FormField.Builder<?,​?> formFieldBuilder)
        Check if this element is consistent according to the business rules in XEP-0122.
        Specified by:
        checkConsistency in interface FormFieldChildElement
        Parameters:
        formFieldBuilder - the builder used to construct the form field.
      • checkListRangeConsistency

        protected void checkListRangeConsistency​(FormField.Builder<?,​?> formField)
        The >list-range/< element SHOULD be included only when the <field/> is of type "list-multi" and SHOULD be ignored otherwise.
        Parameters:
        formField - TODO javadoc me please
      • checkNonMultiConsistency

        protected void checkNonMultiConsistency​(FormField.Builder<?,​?> formField,
                                                java.lang.String method)
        Parameters:
        formField - TODO javadoc me please
        method - TODO javadoc me please