java.lang.Objectjavax.xml.namespace.QName
All Implemented Interfaces:
Serializable
QName
represents a qualified name
as defined in the XML specifications: XML Schema Part2:
Datatypes specification, Namespaces
in XML, Namespaces
in XML Errata.
The value of a QName
contains a Namespace
URI, local part and
prefix.
The prefix is included in QName
to retain lexical
information when present in an XML input source . The prefix is
NOT used in QName.equals(Object) or to compute the QName.hashCode() . Equality and the hash code are defined using
only the Namespace URI and local part.
If not specified, the Namespace URI is set to XMLConstants.NULL_NS_URI . If not specified, the prefix is set to XMLConstants.DEFAULT_NS_PREFIX .
QName
is immutable.
- href="mailto:Jeff.Suttor@Sun.com">Jeff Suttor
$
- Revision: 754581 $, $Date: 2009-03-14 21:32:39 -0400 (Sat, 14 Mar 2009) $1.5
- Constructor: |
---|
If the local part is When using this constructor, the Namespace URI is set to XMLConstants.NULL_NS_URI and the prefix is set to XMLConstants.DEFAULT_NS_PREFIX . In an XML context, all Element and Attribute names exist
in the context of a Namespace. Making this explicit during the
construction of a The local part is not validated as a NCName as specified in Namespaces in XML.
|
If the Namespace URI is If the local part is When using this constructor, the prefix is set to XMLConstants.DEFAULT_NS_PREFIX . The Namespace URI is not validated as a URI reference. The local part is not validated as a NCName as specified in Namespaces in XML.
|
If the Namespace URI is If the local part is If the prefix is The Namespace URI is not validated as a URI reference. The local part and prefix are not validated as a NCName as specified in Namespaces in XML.
|
Method from javax.xml.namespace.QName Summary: |
---|
equals, getLocalPart, getNamespaceURI, getPrefix, hashCode, toString, valueOf |
Methods from java.lang.Object: |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method from javax.xml.namespace.QName Detail: |
---|
Test this If the Two This method satisfies the general contract of Object.equals(Object) |
Get the local part of this |
Get the Namespace URI of this |
Get the prefix of this The prefix assigned to a |
Generate the hash code for this The hash code is calculated using both the Namespace URI and
the local part of the This method satisfies the general contract of Object.hashCode() . |
The commonly accepted way of representing a Note the prefix value is NOT
returned as part of the This method satisfies the general contract of Object.toString() . |
If the The The commonly accepted way of representing a The prefix value CANNOT be
represented in the This method does not do full validation of the resulting
The Namespace URI is not validated as a URI reference. The local part is not validated as a NCName as specified in Namespaces in XML. |