java.lang.Object
dev.metaschema.core.qname.WellKnown
Maintains a mapping between well known namespace URIs and associated
prefixes.
-
Method Summary
Modifier and TypeMethodDescriptionDeprecated, for removal: This API element is subject to removal in a future version.static StringGet the namespace prefix associated with the provided URI, if the URI is well-known.static StringgetWellKnownUriForPrefix(String prefix) Get the namespace associated with the provided prefix, if the prefix is well-known.Deprecated, for removal: This API element is subject to removal in a future version.
-
Method Details
-
getWellKnownPrefixesToNamespaces
@NonNull @Deprecated(since="2.2.0", forRemoval=true) public static Map<String,String> getWellKnownPrefixesToNamespaces()Deprecated, for removal: This API element is subject to removal in a future version.Get the mapping of prefix to namespace URI for all well-known namespaces provided by default to the static context.This method has been deprecated. It is generally preferred to call
getWellKnownUriForPrefix(String)instead.- Returns:
- the mapping of prefix to namespace URI for all well-known namespaces
-
getWellKnownURIsToPrefixes
@NonNull @Deprecated(since="2.2.0", forRemoval=true) public static Map<String,String> getWellKnownURIsToPrefixes()Deprecated, for removal: This API element is subject to removal in a future version.Get the mapping of namespace URIs to prefixes for all well-known namespaces provided by default to the static context.This method has been deprecated. It is generally preferred to call
getWellKnownPrefixForUri(String)instead.- Returns:
- the mapping of namespace URI to prefix for all well-known namespaces
-
getWellKnownPrefixForUri
Get the namespace prefix associated with the provided URI, if the URI is well-known.- Parameters:
uri- the URI to get the prefix for- Returns:
- the prefix or
nullif the provided URI is not well-known
-
getWellKnownUriForPrefix
Get the namespace associated with the provided prefix, if the prefix is well-known.- Parameters:
prefix- the prefix- Returns:
- the URI associated with the prefix or
nullif the provided prefix is not well-known
-