| Modifier and Type | Method and Description |
|---|---|
static QName |
parse(String name,
boolean forElement,
NamespaceManager namespaceManager)
Creates a
QName from a String representation using the given namespace manager for
namespace prefix resolving. |
public static QName parse(String name, boolean forElement, NamespaceManager namespaceManager)
QName from a String representation using the given namespace manager for
namespace prefix resolving.
In the case the String representation contains no prefix it is assumed that the name belongs
to the default namespace only if the argument forElement is true and if a default namespace
is registered.
name - the String representation of the QName as desribed aboveforElement - true, if a default namespace should be taken into account; false otherwise.namespaceManager - the namespace manager used to retrieve the URI for a given prefixQNameCopyright © 2014. All rights reserved.