Package org.igniterealtime.jbosh
Class BodyQName
java.lang.Object
org.igniterealtime.jbosh.BodyQName
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 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic BodyQName
Creates a new qualified name using a namespace URI and local name.(package private) static BodyQName
createBOSH
(String local) Creates a new qualified name using the BOSH namespace URI and local name.static BodyQName
createWithPrefix
(String uri, String local, String prefix) Creates a new qualified name using a namespace URI and local name along with an optional prefix.boolean
(package private) boolean
equalsQName
(QName otherName) Convenience method to compare this qualified name with ajavax.xml.namespace.QName
.Get the local part of this qualified name.Get the namespace URI of this qualified name.Get the optional prefix used with this qualified name, ornull
if no prefix has been assiciated.int
hashCode()
-
Field Details
-
BOSH_NS_URI
BOSH namespace URI.- See Also:
-
qname
Namespace URI.
-
-
Constructor Details
-
BodyQName
Private constructor to prevent direct construction.- Parameters:
wrapped
- QName instance to wrap
-
-
Method Details
-
create
Creates a new qualified name using a namespace URI and local name.- Parameters:
uri
- namespace URIlocal
- local name- Returns:
- BodyQName instance
-
createWithPrefix
Creates a new qualified name using a namespace URI and local name along with an optional prefix.- Parameters:
uri
- namespace URIlocal
- local nameprefix
- optional prefix or @{code null} for no prefix- Returns:
- BodyQName instance
-
getNamespaceURI
Get the namespace URI of this qualified name.- Returns:
- namespace uri
-
getLocalPart
Get the local part of this qualified name.- Returns:
- local name
-
getPrefix
Get the optional prefix used with this qualified name, ornull
if no prefix has been assiciated.- Returns:
- prefix, or
null
if no prefix was supplied
-
equals
-
hashCode
public int hashCode() -
createBOSH
Creates a new qualified name using the BOSH namespace URI and local name.- Parameters:
local
- local name- Returns:
- BodyQName instance
-
equalsQName
Convenience method to compare this qualified name with ajavax.xml.namespace.QName
.- Parameters:
otherName
- QName to compare to- Returns:
- @{code true} if the qualified name is the same,
false
otherwise
-