public static interface ResourceNamespace.Resolver
| Modifier and Type | Field and Description |
|---|---|
static ResourceNamespace.Resolver |
EMPTY_RESOLVER |
| Modifier and Type | Method and Description |
|---|---|
static ResourceNamespace.Resolver |
fromBiMap(com.google.common.collect.BiMap<java.lang.String,java.lang.String> prefixes)
Creates a new
ResourceNamespace.Resolver which looks up prefix definitions in the given BiMap. |
java.lang.String |
prefixToUri(java.lang.String namespacePrefix)
Returns the full URI of an XML namespace for a given prefix, if defined.
|
default java.lang.String |
uriToPrefix(java.lang.String namespaceUri) |
static final ResourceNamespace.Resolver EMPTY_RESOLVER
@Nullable
java.lang.String prefixToUri(@NonNull
java.lang.String namespacePrefix)
@Nullable
default java.lang.String uriToPrefix(@NonNull
java.lang.String namespaceUri)
@NonNull static ResourceNamespace.Resolver fromBiMap(@NonNull com.google.common.collect.BiMap<java.lang.String,java.lang.String> prefixes)
ResourceNamespace.Resolver which looks up prefix definitions in the given BiMap.prefixes - a BiMap mapping prefix strings to full namespace URIs