Package com.helger.xml.namespace
Class AbstractNamespaceContext
- java.lang.Object
-
- com.helger.xml.namespace.AbstractNamespaceContext
-
- All Implemented Interfaces:
IIterableNamespaceContext,INamespaceContext,Serializable,NamespaceContext
- Direct Known Subclasses:
MapBasedNamespaceContext,SingleElementNamespaceContext
public abstract class AbstractNamespaceContext extends Object implements IIterableNamespaceContext
Represents an abstract namespace context that does the predefined mapping as stated in the Javadoc.- Author:
- Philip Helger
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AbstractNamespaceContext()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract StringgetCustomNamespaceURI(String sPrefix)protected abstract StringgetCustomPrefix(String sNamespaceURI)protected abstract Iterator<String>getCustomPrefixes(String sNamespaceURI)abstract StringgetDefaultNamespaceURI()StringgetNamespaceURI(String sPrefix)StringgetPrefix(String sNamespaceURI)IteratorgetPrefixes(String sNamespaceURI)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.helger.xml.namespace.IIterableNamespaceContext
getPrefixToNamespaceURIMap
-
-
-
-
Method Detail
-
getCustomPrefixes
@Nullable protected abstract Iterator<String> getCustomPrefixes(@Nonnull String sNamespaceURI)
-
getPrefixes
@Nonnull @DevelopersNote("Java 8: Iterator; Java 10: Iterator<String>") public final Iterator getPrefixes(@Nonnull String sNamespaceURI)
- Specified by:
getPrefixesin interfaceNamespaceContext
-
getPrefix
@Nullable public final String getPrefix(@Nonnull String sNamespaceURI)
- Specified by:
getPrefixin interfaceNamespaceContext
-
getCustomNamespaceURI
@Nullable protected abstract String getCustomNamespaceURI(@Nonnull String sPrefix)
-
getNamespaceURI
@Nonnull public final String getNamespaceURI(@Nonnull String sPrefix)
- Specified by:
getNamespaceURIin interfaceNamespaceContext
-
-