|
QName
represents the qualified name of a Repository item. Each
QName consists of a local name qualified by a namespace.
The QNamePattern is implemented to allow instances of this class to be used for direct pattern matching where required on interfaces.
Field Summary | ||
static String |
EMPTY_URI_SUBSTITUTE | |
static int |
MAX_LENGTH | |
static char |
NAMESPACE_BEGIN | |
static char |
NAMESPACE_END | |
static char |
NAMESPACE_PREFIX |
Method Summary | ||
clone() | ||
int |
compareTo(QName qname) Uses the namespace URI and then the localname to do the comparison i.e. |
|
static QName |
createQName(String qname) Create a QName from its internal string representation of the following format: {namespaceURI}localName |
|
static QName |
createQName(String qname, NamespacePrefixResolver prefixResolver) Create a QName (from prefix format) prefix:localName |
|
static QName |
createQName(String namespaceURI, String localName) Create a QName (With no prefix) |
|
static QName |
createQName(String prefix, String localName, NamespacePrefixResolver prefixResolver) Create a QName |
|
static QName |
createQNameWithValidLocalName(String namespaceURI, String localName) Create a QName, optionally truncating the localname to MAX_LENGTH. |
|
static String |
createValidLocalName(String name) Create a valid local name from the specified name |
|
boolean |
equals(Object object) Two QNames are equal only when both their name and namespace match. |
|
getLocalName() Gets the name |
||
getNamespaceURI() Gets the namespace |
||
getPrefixedQName(NamespacePrefixResolver resolver) Gets a prefix resolved version of this QName |
||
getPrefixString() Getter version of toPrefixString() |
||
int |
hashCode() Calculate hashCode. |
|
boolean |
isMatch(QName qname) Performs a direct comparison between qnames. |
|
static QName |
resolveToQName(NamespacePrefixResolver prefixResolver, String str) Creates a QName representation for the given String. |
|
static String |
resolveToQNameString(NamespacePrefixResolver prefixResolver, String str) Creates a string representation of a QName for the given string. |
|
static String[] |
splitPrefixedQName(String qname) Create a QName |
|
toPrefixString() Render string representation of QName using format: prefix:name |
||
toPrefixString(NamespacePrefixResolver prefixResolver) Render string representation of QName using format: prefix:name according to namespace prefix mappings of specified namespace resolver. |
||
toString() Render string representation of QName using format: {namespace}name |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
prefix:localName
prefix:localName
{namespaceURI}localName
prefix:localName
{namespace}name
prefix:name
prefix:name
according to namespace prefix mappings of specified namespace resolver.
|