org.kuali.rice.ken.util
Class DocumentNamespaceContext
java.lang.Object
org.kuali.rice.ken.util.DocumentNamespaceContext
- All Implemented Interfaces:
- NamespaceContext
public class DocumentNamespaceContext
- extends Object
- implements NamespaceContext
XPath NamespaceContext implementation that delegates all lookups to a DOM Document,
which supplies all prefix/NS mappings defined in the doc.
- Author:
- Kuali Rice Team (rice.collab@kuali.org)
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DocumentNamespaceContext
public DocumentNamespaceContext(Document doc)
- Constructs a DocumentNamespaceContext.java.
- Parameters:
doc
-
getNamespaceURI
public String getNamespaceURI(String prefix)
- Specified by:
getNamespaceURI
in interface NamespaceContext
- See Also:
NamespaceContext.getNamespaceURI(java.lang.String)
getPrefix
public String getPrefix(String namespaceURI)
- Specified by:
getPrefix
in interface NamespaceContext
- See Also:
NamespaceContext.getPrefix(java.lang.String)
getPrefixes
public Iterator getPrefixes(String namespaceURI)
- Specified by:
getPrefixes
in interface NamespaceContext
- See Also:
NamespaceContext.getPrefixes(java.lang.String)
Copyright © 2005-2013 The Kuali Foundation. All Rights Reserved.