|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.shibboleth.utilities.java.support.xml.QNameSupport
public final class QNameSupport
Set of helper methods for working with DOM QNames.
| Constructor Summary | |
|---|---|
private |
QNameSupport()
Constructor. |
| Method Summary | |
|---|---|
static QName |
constructQName(Element owningElement,
String qname)
Constructs a QName from a string (attribute element content) value. |
static QName |
constructQName(String namespaceURI,
String localName,
String prefix)
Constructs a QName. |
static QName |
getNodeQName(Node domNode)
Gets the QName for the given DOM node. |
static String |
qnameToContentString(QName qname)
Converts a QName into a string that can be used for attribute values or element content. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
private QNameSupport()
| Method Detail |
|---|
@Nonnull
public static QName constructQName(@Nonnull
Element owningElement,
@Nonnull
String qname)
qname - the QName stringowningElement - parent DOM element of the Node which contains the QName value
@Nonnull
public static QName constructQName(@Nullable
String namespaceURI,
@Nonnull
String localName,
@Nullable
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 QName getNodeQName(@Nullable
Node domNode)
domNode - the DOM node
@Nonnull
public static String qnameToContentString(@Nonnull
QName qname)
qname - the QName to convert to a string
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||