org.apache.muse.util.xml
Class MapNSResolver
java.lang.Object
org.apache.muse.util.xml.MapNSResolver
- All Implemented Interfaces:
- org.apache.xml.utils.PrefixResolver
public class MapNSResolver
- extends Object
- implements org.apache.xml.utils.PrefixResolver
293 - NOTE as the xml nodes are not thread safe we work out the namespaces at the time of declaration of
a given xpath and cash the map.
The access to the underlying HashMap should be thread safe as it is only lookup no changes possible and
no iterator usage.
- Author:
- Chris Twiner
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MapNSResolver
public MapNSResolver()
addMap
public void addMap(Map prefixmappings)
addMapping
public void addMapping(String prefix,
String namespace)
getBaseIdentifier
public String getBaseIdentifier()
- Specified by:
getBaseIdentifier
in interface org.apache.xml.utils.PrefixResolver
getNamespaceForPrefix
public String getNamespaceForPrefix(String prefix)
- Specified by:
getNamespaceForPrefix
in interface org.apache.xml.utils.PrefixResolver
getNamespaceForPrefix
public String getNamespaceForPrefix(String prefix,
Node context)
- Specified by:
getNamespaceForPrefix
in interface org.apache.xml.utils.PrefixResolver
handlesNullPrefixes
public boolean handlesNullPrefixes()
- Specified by:
handlesNullPrefixes
in interface org.apache.xml.utils.PrefixResolver
Copyright © 2013 52°North Initiative for Geospatial Open Source Software GmbH. All rights reserved.