Class BodyQName


  • public final class BodyQName
    extends java.lang.Object
    Qualified name of an attribute of the wrapper element. This class is analagous to the javax.xml.namespace.QName class. Each qualified name consists of a namespace URI and a local name.

    Instances of this class are immutable and thread-safe.

    • Field Summary

      Fields 
      Modifier and Type Field Description
      (package private) static java.lang.String BOSH_NS_URI
      BOSH namespace URI.
      private javax.xml.namespace.QName qname
      Namespace URI.
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private BodyQName​(javax.xml.namespace.QName wrapped)
      Private constructor to prevent direct construction.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static BodyQName create​(java.lang.String uri, java.lang.String local)
      Creates a new qualified name using a namespace URI and local name.
      (package private) static BodyQName createBOSH​(java.lang.String local)
      Creates a new qualified name using the BOSH namespace URI and local name.
      static BodyQName createWithPrefix​(java.lang.String uri, java.lang.String local, java.lang.String prefix)
      Creates a new qualified name using a namespace URI and local name along with an optional prefix.
      boolean equals​(java.lang.Object obj)
      (package private) boolean equalsQName​(javax.xml.namespace.QName otherName)
      Convenience method to compare this qualified name with a javax.xml.namespace.QName.
      java.lang.String getLocalPart()
      Get the local part of this qualified name.
      java.lang.String getNamespaceURI()
      Get the namespace URI of this qualified name.
      java.lang.String getPrefix()
      Get the optional prefix used with this qualified name, or null if no prefix has been assiciated.
      int hashCode()
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • BOSH_NS_URI

        static final java.lang.String BOSH_NS_URI
        BOSH namespace URI.
        See Also:
        Constant Field Values
      • qname

        private final javax.xml.namespace.QName qname
        Namespace URI.
    • Constructor Detail

      • BodyQName

        private BodyQName​(javax.xml.namespace.QName wrapped)
        Private constructor to prevent direct construction.
        Parameters:
        wrapped - QName instance to wrap
    • Method Detail

      • create

        public static BodyQName create​(java.lang.String uri,
                                       java.lang.String local)
        Creates a new qualified name using a namespace URI and local name.
        Parameters:
        uri - namespace URI
        local - local name
        Returns:
        BodyQName instance
      • createWithPrefix

        public static BodyQName createWithPrefix​(java.lang.String uri,
                                                 java.lang.String local,
                                                 java.lang.String prefix)
        Creates a new qualified name using a namespace URI and local name along with an optional prefix.
        Parameters:
        uri - namespace URI
        local - local name
        prefix - optional prefix or @{code null} for no prefix
        Returns:
        BodyQName instance
      • getNamespaceURI

        public java.lang.String getNamespaceURI()
        Get the namespace URI of this qualified name.
        Returns:
        namespace uri
      • getLocalPart

        public java.lang.String getLocalPart()
        Get the local part of this qualified name.
        Returns:
        local name
      • getPrefix

        public java.lang.String getPrefix()
        Get the optional prefix used with this qualified name, or null if no prefix has been assiciated.
        Returns:
        prefix, or null if no prefix was supplied
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • createBOSH

        static BodyQName createBOSH​(java.lang.String local)
        Creates a new qualified name using the BOSH namespace URI and local name.
        Parameters:
        local - local name
        Returns:
        BodyQName instance
      • equalsQName

        boolean equalsQName​(javax.xml.namespace.QName otherName)
        Convenience method to compare this qualified name with a javax.xml.namespace.QName.
        Parameters:
        otherName - QName to compare to
        Returns: