|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.custommonkey.xmlunit.SimpleNamespaceContext
Implementation of NamespaceContext that's backed by a map.
| Field Summary | |
static SimpleNamespaceContext |
EMPTY_CONTEXT
An empty context containing no prefixes at all. |
| Constructor Summary | |
SimpleNamespaceContext(java.util.Map prefixMap)
Creates a NamespaceContext backed by the given map. |
|
| Method Summary | |
java.lang.String |
getNamespaceURI(java.lang.String prefix)
Obtain the URI for a given prefix. |
java.util.Iterator |
getPrefixes()
Get all prefixes of this context. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final SimpleNamespaceContext EMPTY_CONTEXT
| Constructor Detail |
public SimpleNamespaceContext(java.util.Map prefixMap)
Copies the map, changes made to the given map after calling the constructor are not reflected into the NamespaceContext.
prefixMap - maps prefix to Namespace URI| Method Detail |
public java.lang.String getNamespaceURI(java.lang.String prefix)
NamespaceContextUnlike the method in javax.xml.namespace.NamespaceContext doesn't have to implement any special handling for predefined prefix values.
getNamespaceURI in interface NamespaceContextpublic java.util.Iterator getPrefixes()
NamespaceContext
getPrefixes in interface NamespaceContext
|
XMLUnit is hosted by sourceforge.net |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||