This class represents the pairing of a local name and a namespace uri. Additionally it can be marked as namespace aware or not. When an XPathQName is not namespace aware then the namespace uri will be ignored during equality checks even if an namespaceUri is set.
| Access | Constructor and Description |
|---|---|
| public | |
| public | XPathQName(String
The local name to associate with this XPathQName localName, boolean namespaceAware)Create a new XPathQName with the specified local name. |
| public | XPathQName(String
The namespace to associate with this XPathQName namespaceUri, String The local name to associate with this XPathQName localName, boolean set if namespaces should be processed or ignored namespaceAware)Create a new XPathQName with the specified local name and namespace |
| public | XPathQName(QName
The QName to build this XPathQName from qname, boolean set if namespaces should be processed or ignored namespaceAware)Create a new XPathQName with the specified QName |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | equals(Object
the reference object with which to compare. obj)Overrides java. |
| public int | |
| public String |
| isNamespaceAware | back to summary |
|---|---|
| private boolean isNamespaceAware | |
| localName | back to summary |
|---|---|
| private String localName | |
| namespaceUri | back to summary |
|---|---|
| private String namespaceUri | |
| XPathQName | back to summary |
|---|---|
| public XPathQName() Create a new XPathQName. namespaceUri will be "" and isNamespaceAware will be true. | |
| XPathQName | back to summary |
|---|---|
| public XPathQName(String localName, boolean namespaceAware) Create a new XPathQName with the specified local name. namespaceUri will be null and isNamespaceAware will be set based on the MediaType.
| |
| XPathQName | back to summary |
|---|---|
| public XPathQName(String namespaceUri, String localName, boolean namespaceAware) Create a new XPathQName with the specified local name and namespace | |
| XPathQName | back to summary |
|---|---|
| public XPathQName(QName qname, boolean namespaceAware) Create a new XPathQName with the specified QName
| |
| equals | back to summary |
|---|---|
| public boolean equals(Object obj) 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. | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for the object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |