@Immutable public class SingleElementNamespaceContext extends AbstractNamespaceContext
| Constructor and Description |
|---|
SingleElementNamespaceContext(String sNamespaceURI)
Create a namespace context with the default (empty) prefix
|
SingleElementNamespaceContext(String sPrefix,
String sNamespaceURI) |
| Modifier and Type | Method and Description |
|---|---|
protected String |
getCustomNamespaceURI(String sPrefix) |
protected String |
getCustomPrefix(String sNamespaceURI) |
protected Iterator<String> |
getCustomPrefixes(String sNamespaceURI) |
String |
getDefaultNamespaceURI() |
com.helger.commons.collection.impl.ICommonsMap<String,String> |
getPrefixToNamespaceURIMap()
Get all contained mappings.
|
String |
toString() |
getNamespaceURI, getPrefix, getPrefixespublic SingleElementNamespaceContext(@Nonnull @Nonempty String sNamespaceURI)
sNamespaceURI - The namespace URI to use. May neither be null nor
empty.@Nullable public String getDefaultNamespaceURI()
getDefaultNamespaceURI in class AbstractNamespaceContext@Nullable protected Iterator<String> getCustomPrefixes(@Nullable String sNamespaceURI)
getCustomPrefixes in class AbstractNamespaceContext@Nullable protected String getCustomPrefix(@Nullable String sNamespaceURI)
getCustomPrefix in class AbstractNamespaceContext@Nullable protected String getCustomNamespaceURI(@Nullable String sPrefix)
getCustomNamespaceURI in class AbstractNamespaceContext@Nonnull @ReturnsMutableCopy public com.helger.commons.collection.impl.ICommonsMap<String,String> getPrefixToNamespaceURIMap()
IIterableNamespaceContextCopyright © 2014–2023 Philip Helger. All rights reserved.