QName represents a qualified name value of an XML element or
attribute. It consists of a local name and a Namespaceinstance. This
object is immutable.
| Modifier and Type | Field and Description |
|---|---|
| private DocumentFactory | documentFactory
The document factory used for this QName if specified or null |
| private int | hashCode
A cached version of the hashcode for efficiency |
| private String | name
The local name of the element or attribute |
| private static final String | NAME_CHAR
|
| private static final String | NAME_START_CHAR
|
| private transient Namespace | namespace
The Namespace of this element or attribute |
| private static final String | NCNAME
NCName ::= NCNameStartChar NCNameChar* (An XML Name, minus the ":") NCNameChar ::= NameChar -':' NCNameStartChar ::= NameStartChar -':' |
| private String | qualifiedName
The qualified name of the element or attribute |
| private static final Pattern | RE_NAME
Regular expression for |
| private static final Pattern | RE_NCNAME
Regular expression for |
| private static final Pattern | RE_QNAME
Regular expression for |
| private static SingletonStrategy | singleton
The Singleton instance |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | equals(Object
the reference object with which to compare. object)Overrides java. |
| public static QName | |
| public static QName | |
| public static QName | |
| public static QName | |
| public static QName | |
| private static QNameCache | |
| public DocumentFactory | |
| public String | |
| public Namespace | |
| public String | |
| public String | |
| public String | |
| public int | Returns: the hash code based on the qualified name and the URI of the namespace.Overrides java. |
| private void | |
| public void | |
| public String | |
| private static void | |
| protected static void | |
| private static void | |
| private void |
| documentFactory | back to summary |
|---|---|
| private DocumentFactory documentFactory The document factory used for this QName if specified or null | |
| hashCode | back to summary |
|---|---|
| private int hashCode A cached version of the hashcode for efficiency | |
| name | back to summary |
|---|---|
| private String name The local name of the element or attribute | |
| NAME_CHAR | back to summary |
|---|---|
| private static final String NAME_CHAR
NameChar ::= NameStartChar | "-" | "." | [0-9] | #xB7 | [#x0300-#x036F] | [#x203F-#x2040] | |
| NAME_START_CHAR | back to summary |
|---|---|
| private static final String NAME_START_CHAR
NameStartChar ::= ":" | [A-Z] | "_" | [a-z] | [#xC0-#xD6] | [#xD8-#xF6] | [#xF8-#x2FF] | [#x370-#x37D] | [#x37F-#x1FFF] | [#x200C-#x200D] | [#x2070-#x218F] | [#x2C00-#x2FEF] | [#x3001-#xD7FF] | [#xF900-#xFDCF] | [#xFDF0-#xFFFD] | [#x10000-#xEFFFF] | |
| namespace | back to summary |
|---|---|
| private transient Namespace namespace The Namespace of this element or attribute | |
| NCNAME | back to summary |
|---|---|
| private static final String NCNAME
NCName ::= NCNameStartChar NCNameChar* (An XML Name, minus the ":") NCNameChar ::= NameChar -':' NCNameStartChar ::= NameStartChar -':' | |
| qualifiedName | back to summary |
|---|---|
| private String qualifiedName The qualified name of the element or attribute | |
| RE_NAME | back to summary |
|---|---|
| private static final Pattern RE_NAME Regular expression for Name ::= NameStartChar (NameChar)* | |
| RE_NCNAME | back to summary |
|---|---|
| private static final Pattern RE_NCNAME Regular expression for NCName ::= NCNameStartChar NCNameChar* (An XML Name, minus the ":") NCNameChar ::= NameChar -':' NCNameStartChar ::= NameStartChar -':' | |
| RE_QNAME | back to summary |
|---|---|
| private static final Pattern RE_QNAME Regular expression for QName ::= PrefixedName | UnprefixedName PrefixedName ::= Prefix ':' LocalPart UnprefixedName ::= LocalPart Prefix ::= NCName LocalPart ::= NCName | |
| singleton | back to summary |
|---|---|
| private static SingletonStrategy<QNameCache> singleton The Singleton instance | |
| QName | back to summary |
|---|---|
| public QName(String name) | |
| QName | back to summary |
|---|---|
| public QName(String name, Namespace namespace) | |
| QName | back to summary |
|---|---|
| public QName(String name, Namespace namespace, String qualifiedName) | |
| equals | back to summary |
|---|---|
| public boolean equals(Object object) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes.
| |
| get | back to summary |
|---|---|
| public static QName get(String name) | |
| get | back to summary |
|---|---|
| public static QName get(String name, Namespace namespace) | |
| get | back to summary |
|---|---|
| public static QName get(String name, String prefix, String uri) | |
| get | back to summary |
|---|---|
| public static QName get(String qualifiedName, String uri) | |
| get | back to summary |
|---|---|
| public static QName get(String localName, Namespace namespace, String qualifiedName) | |
| getCache | back to summary |
|---|---|
| private static QNameCache getCache() | |
| getDocumentFactory | back to summary |
|---|---|
| public DocumentFactory getDocumentFactory() DOCUMENT ME!
| |
| getName | back to summary |
|---|---|
| public String getName() DOCUMENT ME!
| |
| getNamespace | back to summary |
|---|---|
| public Namespace getNamespace() DOCUMENT ME!
| |
| getNamespacePrefix | back to summary |
|---|---|
| public String getNamespacePrefix() DOCUMENT ME!
| |
| getNamespaceURI | back to summary |
|---|---|
| public String getNamespaceURI() DOCUMENT ME!
| |
| getQualifiedName | back to summary |
|---|---|
| public String getQualifiedName() DOCUMENT ME!
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. DOCUMENT ME!
| |
| readObject | back to summary |
|---|---|
| private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException | |
| setDocumentFactory | back to summary |
|---|---|
| public void setDocumentFactory(DocumentFactory documentFactory) | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
| |
| validateName | back to summary |
|---|---|
| private static void validateName(String name) | |
| validateNCName | back to summary |
|---|---|
| protected static void validateNCName(String ncname) | |
| validateQName | back to summary |
|---|---|
| private static void validateQName(String qname) | |
| writeObject | back to summary |
|---|---|
| private void writeObject(ObjectOutputStream out) throws IOException | |