public class QNameUtils
extends java.lang.Object
QName
s).Modifier and Type | Method and Description |
---|---|
static java.lang.String |
fromQName(javax.xml.namespace.QName qname)
Create a string representation from a
QName . |
static javax.xml.namespace.QName |
toQName(java.lang.String s)
Create a
QName object from its stringified representation. |
public static java.lang.String fromQName(javax.xml.namespace.QName qname)
QName
. The string will have the form
{URI}localpart
.qname
- a QName
.public static javax.xml.namespace.QName toQName(java.lang.String s)
QName
object from its stringified representation.s
- stringified representationQName
java.lang.IllegalArgumentException
- if the given string is not a valid stringified QName
.fromQName(javax.xml.namespace.QName)