net.sf.sqs_xml.util
Class StaticPrefixResolver
java.lang.Object
net.sf.sqs_xml.util.StaticPrefixResolver
- All Implemented Interfaces:
- org.apache.xml.utils.PrefixResolver
- public class StaticPrefixResolver
- extends java.lang.Object
- implements org.apache.xml.utils.PrefixResolver
- Author:
- hiroya
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
S_XMLNAMESPACEURI
public static final java.lang.String S_XMLNAMESPACEURI
- See Also:
- Constant Field Values
XML_PREFIX
public static final java.lang.String XML_PREFIX
- See Also:
- Constant Field Values
S_XMLNSNAMESPACEURI
public static final java.lang.String S_XMLNSNAMESPACEURI
- See Also:
- Constant Field Values
XMLNS_PREFIX
public static final java.lang.String XMLNS_PREFIX
- See Also:
- Constant Field Values
StaticPrefixResolver
public StaticPrefixResolver(java.util.Map prefixMap)
getBaseIdentifier
public java.lang.String getBaseIdentifier()
- Return the base identifier for the document.
- Specified by:
getBaseIdentifier
in interface org.apache.xml.utils.PrefixResolver
getNamespaceForPrefix
public java.lang.String getNamespaceForPrefix(java.lang.String prefix)
- Retrieve the URI corresponding to the supplied prefix.
- Specified by:
getNamespaceForPrefix
in interface org.apache.xml.utils.PrefixResolver
- Parameters:
prefix
- the prefix to match to a URI.
getNamespaceForPrefix
public java.lang.String getNamespaceForPrefix(java.lang.String prefix,
org.w3c.dom.Node n)
- Retrieve a namespace in context. Note that this is meaningless for our
implementation, as the prefixes are static for the entire document and
independent of any local declarations.
- Specified by:
getNamespaceForPrefix
in interface org.apache.xml.utils.PrefixResolver
- Parameters:
prefix
- the prefix to queryn
- the context Node (ignored)
handlesNullPrefixes
public boolean handlesNullPrefixes()
- Specified by:
handlesNullPrefixes
in interface org.apache.xml.utils.PrefixResolver