| Modifier and Type | Field and Description |
|---|---|
| protected String | _localName
The local name. |
| protected String | _namespaceURI
The namespace URI. |
| protected String | _prefix
The namespace prefix. |
| private int | m_hashCode
The cached hashcode, which is calculated at construction time. |
| public static final String | S_XMLNAMESPACEURI
The XML namespace. |
| pack-priv static final long |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public | |
| public | |
| public | QName(String
The namespace URI if known, or null namespaceURI, String The namespace prefix is known, or null prefix, String The local name localName, boolean If true the new QName will be validated and an IllegalArgumentException will
be thrown if it is invalid. validate)Constructs a new QName with the specified namespace URI, prefix and local name. |
| public | |
| public | |
| public | |
| public | QName(String
Qualified name to resolve qname, Stack<NameSpace> Namespace stack to use to resolve namespace namespaces, boolean If true the new QName will be validated and an IllegalArgumentException will
be thrown if it is invalid. validate)Construct a QName from a string, resolving the prefix using the given namespace stack. |
| public | QName(String
Qualified name to resolve qname, Element Namespace Context to use namespaceContext, PrefixResolver Prefix resolver for this context resolver)Construct a QName from a string, resolving the prefix using the given namespace context and prefix resolver. |
| public | QName(String
Qualified name to resolve qname, Element Namespace Context to use namespaceContext, PrefixResolver Prefix resolver for this context resolver, boolean If true the new QName will be validated and an IllegalArgumentException will
be thrown if it is invalid. validate)Construct a QName from a string, resolving the prefix using the given namespace context and prefix resolver. |
| public | QName(String
Qualified name to resolve qname, PrefixResolver Prefix resolver for this context resolver)Construct a QName from a string, resolving the prefix using the given namespace stack. |
| public | QName(String
Qualified name to resolve qname, PrefixResolver Prefix resolver for this context resolver, boolean If true the new QName will be validated and an IllegalArgumentException will
be thrown if it is invalid. validate)Construct a QName from a string, resolving the prefix using the given namespace stack. |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | |
| public boolean | Returns: True if the qualified names are equalOverrides java. Override equals and agree that we're equal if the passed object is a QName and it matches the name of the arg. |
| public String | Returns: The local part of the qualified nameReturns the local part of the qualified name. |
| public String | Returns: the local part of the qualified nameGet the local part of the qualified name. |
| public static String | Returns: Local part of the name if prefixed, or the given name if notInput name qname)Returns the local name of the given node. |
| public String | Returns: the namespace URI of the qualified nameGet the namespace of the qualified name. |
| public String | |
| public String | |
| public static String | Returns: Prefix of attributeRaw name of attribute attRawName)This function tells if a raw attribute name is a xmlns attribute. |
| public static String | Returns: Prefix of name or empty string if none thereInput name qname)Returns the local name of the given node. |
| public static QName | Returns: a QName objectString to use to create QName name)Given a string, create and return a QName object |
| public int | Returns: the cached hashcode of the qualified nameOverrides java. Return the cached hashcode of the qualified name. |
| public static boolean | Returns: True if the attribute starts with or is equal to xmlnsRaw name of attribute attRawName)This function tells if a raw attribute name is a xmlns attribute. |
| public String | Returns: the string representation of the namespaceReturn the string representation of the qualified name using the the '{ns}foo' notation. |
| public String | Returns: the string representation of the namespaceOverrides java. Return the string representation of the qualified name, using the prefix if available, or the '{ns}foo' notation if not. |
| _localName | back to summary |
|---|---|
| protected String _localName The local name. | |
| _namespaceURI | back to summary |
|---|---|
| protected String _namespaceURI The namespace URI. | |
| _prefix | back to summary |
|---|---|
| protected String _prefix The namespace prefix. | |
| m_hashCode | back to summary |
|---|---|
| private int m_hashCode The cached hashcode, which is calculated at construction time. | |
| S_XMLNAMESPACEURI | back to summary |
|---|---|
| public static final String S_XMLNAMESPACEURI The XML namespace. | |
| serialVersionUID | back to summary |
|---|---|
| pack-priv static final long serialVersionUID | |
| QName | back to summary |
|---|---|
| public QName() Constructs an empty QName. 20001019: Try making this public, to support Serializable? -- JKESS | |
| QName | back to summary |
|---|---|
| public QName(String namespaceURI, String localName) Constructs a new QName with the specified namespace URI and local name. | |
| QName | back to summary |
|---|---|
| public QName(String namespaceURI, String localName, boolean validate) Constructs a new QName with the specified namespace URI and local name. | |
| QName | back to summary |
|---|---|
| public QName(String namespaceURI, String prefix, String localName) Constructs a new QName with the specified namespace URI, prefix and local name. | |
| QName | back to summary |
|---|---|
| public QName(String namespaceURI, String prefix, String localName, boolean validate) Constructs a new QName with the specified namespace URI, prefix and local name. | |
| QName | back to summary |
|---|---|
| public QName(String localName) Construct a QName from a string, without namespace resolution. Good for a few odd cases.
| |
| QName | back to summary |
|---|---|
| public QName(String localName, boolean validate) Construct a QName from a string, without namespace resolution. Good for a few odd cases.
| |
| QName | back to summary |
|---|---|
| public QName(String qname, Stack<NameSpace> namespaces) Construct a QName from a string, resolving the prefix using the given namespace stack. The default namespace is not resolved. | |
| QName | back to summary |
|---|---|
| public QName(String qname, Stack<NameSpace> namespaces, boolean validate) Construct a QName from a string, resolving the prefix using the given namespace stack. The default namespace is not resolved. | |
| QName | back to summary |
|---|---|
| public QName(String qname, Element namespaceContext, PrefixResolver resolver) Construct a QName from a string, resolving the prefix using the given namespace context and prefix resolver. The default namespace is not resolved.
| |
| QName | back to summary |
|---|---|
| public QName(String qname, Element namespaceContext, PrefixResolver resolver, boolean validate) Construct a QName from a string, resolving the prefix using the given namespace context and prefix resolver. The default namespace is not resolved.
| |
| QName | back to summary |
|---|---|
| public QName(String qname, PrefixResolver resolver) Construct a QName from a string, resolving the prefix using the given namespace stack. The default namespace is not resolved.
| |
| QName | back to summary |
|---|---|
| public QName(String qname, PrefixResolver resolver, boolean validate) Construct a QName from a string, resolving the prefix using the given namespace stack. The default namespace is not resolved.
| |
| equals | back to summary |
|---|---|
| public boolean equals(String ns, String localPart) Override equals and agree that we're equal if the passed object is a string and it matches the name of the arg. | |
| equals | back to summary |
|---|---|
| public boolean equals(Object object) Overrides java. Override equals and agree that we're equal if the passed object is a QName and it matches the name of the arg.
| |
| getLocalName | back to summary |
|---|---|
| public String getLocalName() Returns the local part of the qualified name.
| |
| getLocalPart | back to summary |
|---|---|
| public String getLocalPart() Get the local part of the qualified name.
| |
| getLocalPart | back to summary |
|---|---|
| public static String getLocalPart(String qname) Returns the local name of the given node. | |
| getNamespace | back to summary |
|---|---|
| public String getNamespace() Get the namespace of the qualified name.
| |
| getNamespaceURI | back to summary |
|---|---|
| public String getNamespaceURI() Returns the namespace URI. Returns null if the namespace URI is not known.
| |
| getPrefix | back to summary |
|---|---|
| public String getPrefix() Returns the namespace prefix. Returns null if the namespace prefix is not known.
| |
| getPrefixFromXMLNSDecl | back to summary |
|---|---|
| public static String getPrefixFromXMLNSDecl(String attRawName) This function tells if a raw attribute name is a xmlns attribute. | |
| getPrefixPart | back to summary |
|---|---|
| public static String getPrefixPart(String qname) Returns the local name of the given node. | |
| getQNameFromString | back to summary |
|---|---|
| public static QName getQNameFromString(String name) Given a string, create and return a QName object | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Return the cached hashcode of the qualified name.
| |
| isXMLNSDecl | back to summary |
|---|---|
| public static boolean isXMLNSDecl(String attRawName) This function tells if a raw attribute name is a xmlns attribute.
| |
| toNamespacedString | back to summary |
|---|---|
| public String toNamespacedString() Return the string representation of the qualified name using the the '{ns}foo' notation. Performs string concatenation, so beware of performance issues.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Return the string representation of the qualified name, using the prefix if available, or the '{ns}foo' notation if not. Performs string concatenation, so beware of performance issues.
| |