Package org.codehaus.cargo.util
Class NamespaceContextImpl
- java.lang.Object
-
- org.codehaus.cargo.util.NamespaceContextImpl
-
- All Implemented Interfaces:
NamespaceContext
public class NamespaceContextImpl extends Object implements NamespaceContext
Context map for XPath. Used for mapping between prefixes and XML namespaces.
-
-
Constructor Summary
Constructors Constructor Description NamespaceContextImpl()
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,String>
getNamespaces()
String
getNamespaceURI(String prefix)
String
getPrefix(String namespaceURI)
Iterator<String>
getPrefixes(String namespaceURI)
void
setNamespaces(Map<String,String> namespaces)
-
-
-
Method Detail
-
getNamespaces
public Map<String,String> getNamespaces()
- Returns:
- Map of prefixes with XML namespaces.
-
setNamespaces
public void setNamespaces(Map<String,String> namespaces)
- Parameters:
namespaces
- Map of prefixes with XML namespaces.
-
getNamespaceURI
public String getNamespaceURI(String prefix)
- Specified by:
getNamespaceURI
in interfaceNamespaceContext
-
getPrefix
public String getPrefix(String namespaceURI)
- Specified by:
getPrefix
in interfaceNamespaceContext
-
getPrefixes
public Iterator<String> getPrefixes(String namespaceURI)
- Specified by:
getPrefixes
in interfaceNamespaceContext
-
-