public class NamespaceDeltaMap extends NamespaceMap implements NamespaceBindingSet, NamespaceResolver
A NamespaceMap never physically contains a binding for the XML namespace, but some interfaces behave as if it did.
The map may or may not contain a binding for the default namespace, represented by the prefix "" (zero-length string)
The map must not contain any namespace undeclarations: that is, the namespace will never be "" (zero-length string)
prefixes, uris
Modifier and Type | Method and Description |
---|---|
boolean |
allowsNamespaceUndeclarations() |
static NamespaceDeltaMap |
emptyMap()
Get a namespace map containing no namespace bindings
|
protected NamespaceMap |
newInstance() |
NamespaceDeltaMap |
put(java.lang.String prefix,
java.lang.String uri)
Add a new entry to the map, or replace an existing entry.
|
NamespaceDeltaMap |
remove(java.lang.String prefix)
Remove an entry from the map
|
addAll, applyDifferences, bind, equals, fromNamespaceResolver, getDefaultNamespace, getDifferences, getNamespaceBindings, getPrefixArray, getURI, getURIForPrefix, getURIsAsArray, hashCode, isEmpty, iteratePrefixes, iterator, of, putAll, size, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getURI
getURIForPrefix, iteratePrefixes
public static NamespaceDeltaMap emptyMap()
protected NamespaceMap newInstance()
newInstance
in class NamespaceMap
public boolean allowsNamespaceUndeclarations()
allowsNamespaceUndeclarations
in class NamespaceMap
public NamespaceDeltaMap put(java.lang.String prefix, java.lang.String uri)
NamespaceMap
put
in class NamespaceMap
prefix
- the prefix whose entry is to be added or replaced. May be zero-length
to represent the default namespaceuri
- the URI to be associated with this prefix; if zero-length, any
existing mapping for the prefix is removed.public NamespaceDeltaMap remove(java.lang.String prefix)
NamespaceMap
remove
in class NamespaceMap
prefix
- the entry to be removed from the mapCopyright (c) 2004-2020 Saxonica Limited. All rights reserved.