public class QNameUtil extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
QNameUtil.QNameInfo |
| Modifier and Type | Field and Description |
|---|---|
static char |
DEFAULT_QNAME_URI_SEPARATOR_CHAR |
static Trace |
LOGGER |
| Constructor and Description |
|---|
QNameUtil() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
compareQName(QName qname,
Node node) |
static boolean |
contains(Collection<? extends QName> col,
QName qname) |
static boolean |
contains(QName[] array,
QName qname) |
static Collection<QName> |
createCollection(QName... qnames) |
static String |
escapeElementName(String name) |
static <V> V |
getKey(Map<QName,V> map,
QName key) |
static String |
getLocalPart(QName name) |
static QName |
getNodeQName(Node node) |
static boolean |
hasNamespace(QName name) |
static boolean |
isPrefixUndeclared(String namespacePrefix) |
static boolean |
isQualified(QName name) |
static boolean |
isTolerateUndeclaredPrefixes() |
static boolean |
isUnqualified(QName name) |
static boolean |
isUri(String string) |
static String |
markPrefixAsUndeclared(String namespacePrefix) |
static boolean |
match(QName a,
QName b)
Matching with considering wildcard namespace (null).
|
static boolean |
match(QName a,
QName b,
boolean caseInsensitive) |
static boolean |
matchAny(QName nameToFind,
Collection<? extends QName> names) |
static boolean |
matchUri(String uri1,
String uri2) |
static boolean |
matchWithUri(QName qname,
String uri)
Matches QName with a URI representation.
|
static boolean |
noNamespace(QName name) |
static QName |
nullNamespace(QName qname) |
static String |
prettyPrint(QName... qnames) |
static String |
qNameToUri(QName qname) |
static String |
qNameToUri(QName qname,
boolean unqualifiedStartsWithHash) |
static String |
qNameToUri(QName qname,
boolean unqualifiedStartsWithHash,
char separatorChar) |
static QName |
qualifyIfNeeded(QName name,
String defaultNamespace) |
static String |
qualifyUriIfNeeded(String uri,
String namespace) |
static boolean |
remove(Collection<? extends QName> col,
QName qname) |
static void |
reportUndeclaredNamespacePrefix(String prefix,
String context) |
static QName |
resolveNs(QName a,
Collection<QName> col) |
static QName |
setNamespaceIfMissing(QName name,
String namespace,
String prefix) |
static void |
setTemporarilyTolerateUndeclaredPrefixes(Boolean value) |
static void |
setTolerateUndeclaredPrefixes(boolean value) |
static boolean |
unorderedCollectionMatch(Collection<QName> a,
Collection<QName> b) |
static QName |
unqualify(QName name) |
static QName |
uriToQName(String uri) |
static QName |
uriToQName(String uri,
boolean allowUnqualified) |
static QName |
uriToQName(String uri,
String defaultNamespace) |
static QNameUtil.QNameInfo |
uriToQNameInfo(String uri,
boolean allowUnqualified) |
public static final Trace LOGGER
public static final char DEFAULT_QNAME_URI_SEPARATOR_CHAR
public static String qNameToUri(QName qname, boolean unqualifiedStartsWithHash, char separatorChar)
public static boolean noNamespace(@NotNull
QName name)
public static boolean hasNamespace(@NotNull
QName name)
@NotNull public static QName setNamespaceIfMissing(@NotNull QName name, @NotNull String namespace, @Nullable String prefix)
@NotNull public static QNameUtil.QNameInfo uriToQNameInfo(@NotNull String uri, boolean allowUnqualified)
public static boolean match(QName a, QName b)
public static boolean unorderedCollectionMatch(Collection<QName> a, Collection<QName> b)
public static boolean matchWithUri(QName qname, String uri)
public static QName resolveNs(QName a, Collection<QName> col)
public static boolean matchAny(QName nameToFind, Collection<? extends QName> names)
public static Collection<QName> createCollection(QName... qnames)
public static boolean isUnqualified(QName name)
public static boolean isQualified(QName name)
public static boolean isTolerateUndeclaredPrefixes()
public static void setTolerateUndeclaredPrefixes(boolean value)
public static void setTemporarilyTolerateUndeclaredPrefixes(Boolean value)
public static void reportUndeclaredNamespacePrefix(String prefix, String context)
public static boolean isPrefixUndeclared(String namespacePrefix)
public static boolean isUri(String string)
public static boolean contains(Collection<? extends QName> col, QName qname)
public static boolean remove(Collection<? extends QName> col, QName qname)
Copyright © 2022 Evolveum. All rights reserved.