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, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetURIgetURIForPrefix, iteratePrefixespublic static NamespaceDeltaMap emptyMap()
protected NamespaceMap newInstance()
newInstance in class NamespaceMappublic boolean allowsNamespaceUndeclarations()
allowsNamespaceUndeclarations in class NamespaceMappublic NamespaceDeltaMap put(java.lang.String prefix, java.lang.String uri)
NamespaceMapput in class NamespaceMapprefix - 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)
NamespaceMapremove in class NamespaceMapprefix - the entry to be removed from the mapCopyright (c) 2004-2021 Saxonica Limited. All rights reserved.