public final class QNameSupport
extends java.lang.Object
| Modifier | Constructor and Description |
|---|---|
private |
QNameSupport()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static javax.xml.namespace.QName |
constructQName(org.w3c.dom.Element owningElement,
java.lang.String qname)
Constructs a QName from a string (attribute or element content) value.
|
static javax.xml.namespace.QName |
constructQName(java.lang.String namespaceURI,
java.lang.String localName,
java.lang.String prefix)
Constructs a QName.
|
static javax.xml.namespace.QName |
getNodeQName(org.w3c.dom.Node domNode)
Gets the QName for the given DOM node.
|
static java.lang.String |
qnameToContentString(javax.xml.namespace.QName qname)
Converts a QName into a string that can be used for attribute values or element content.
|
@Nonnull
public static javax.xml.namespace.QName constructQName(@Nonnull
org.w3c.dom.Element owningElement,
@Nonnull @NotEmpty
java.lang.String qname)
owningElement - parent DOM element of the Node which contains the QName valueqname - the QName string@Nonnull
public static javax.xml.namespace.QName constructQName(@Nullable
java.lang.String namespaceURI,
@Nonnull @NotEmpty
java.lang.String localName,
@Nullable
java.lang.String prefix)
namespaceURI - the namespace of the QNamelocalName - the local name of the QNameprefix - the prefix of the QName, may be null@Nullable
public static javax.xml.namespace.QName getNodeQName(@Nullable
org.w3c.dom.Node domNode)
domNode - the DOM node@Nonnull
public static java.lang.String qnameToContentString(@Nonnull
javax.xml.namespace.QName qname)
qname - the QName to convert to a string