Class SimpleNamespaceContext
- java.lang.Object
-
- net.shibboleth.utilities.java.support.xml.SimpleNamespaceContext
-
- All Implemented Interfaces:
NamespaceContext
@Deprecated(since="8.3.0", forRemoval=true) @ThreadSafe public class SimpleNamespaceContext extends Object implements NamespaceContext
Deprecated, for removal: This API element is subject to removal in a future version.Simple implementation ofNamespaceContextbased on a map from prefix values to corresponding URIs. This implementation only supports a single mapping for a given prefix, that isgetPrefixes(String)will always contain at most 1 element.
-
-
Field Summary
Fields Modifier and Type Field Description private ImmutableBiMap<String,String>mappingsDeprecated, for removal: This API element is subject to removal in a future version.Mappings between namespace prefixes and namespace URIs.
-
Constructor Summary
Constructors Constructor Description SimpleNamespaceContext()Deprecated, for removal: This API element is subject to removal in a future version.Constructor.SimpleNamespaceContext(Map<String,String> prefixToUriMappings)Deprecated, for removal: This API element is subject to removal in a future version.Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description private ImmutableBiMap.Builder<String,String>getMappingsBuilder()Deprecated, for removal: This API element is subject to removal in a future version.Build the initial set of mappings which contains entries for XML and XMLNS.StringgetNamespaceURI(String prefix)Deprecated, for removal: This API element is subject to removal in a future version.StringgetPrefix(String namespaceURI)Deprecated, for removal: This API element is subject to removal in a future version.Iterator<String>getPrefixes(String namespaceURI)Deprecated, for removal: This API element is subject to removal in a future version.
-
-
-
Field Detail
-
mappings
private final ImmutableBiMap<String,String> mappings
Deprecated, for removal: This API element is subject to removal in a future version.Mappings between namespace prefixes and namespace URIs.
-
-
Constructor Detail
-
SimpleNamespaceContext
public SimpleNamespaceContext()
Deprecated, for removal: This API element is subject to removal in a future version.Constructor.
-
SimpleNamespaceContext
public SimpleNamespaceContext(@Nullable @NullableElements Map<String,String> prefixToUriMappings)
Deprecated, for removal: This API element is subject to removal in a future version.Constructor.- Parameters:
prefixToUriMappings- Maps prefix values to the corresponding namespace URIs.
-
-
Method Detail
-
getNamespaceURI
@Nullable public String getNamespaceURI(String prefix)
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getNamespaceURIin interfaceNamespaceContext
-
getPrefix
@Nullable public String getPrefix(String namespaceURI)
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getPrefixin interfaceNamespaceContext
-
getPrefixes
@Nonnull public Iterator<String> getPrefixes(String namespaceURI)
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getPrefixesin interfaceNamespaceContext
-
getMappingsBuilder
@Nonnull private ImmutableBiMap.Builder<String,String> getMappingsBuilder()
Deprecated, for removal: This API element is subject to removal in a future version.Build the initial set of mappings which contains entries for XML and XMLNS.- Returns:
- initial set of mappings
-
-