public class FabanNamespaceContext extends Object implements NamespaceContext
Prefix | Namespace URI |
---|---|
fa | http://faban.sunsource.net/ns/faban |
fd | http://faban.sunsource.net/ns/fabandriver |
fh | http://faban.sunsource.net/ns/fabanharness |
Constructor and Description |
---|
FabanNamespaceContext()
Constructs the Faban namespace context that contains all Faban
namespaces to start with.
|
Modifier and Type | Method and Description |
---|---|
void |
addNamespace(String namespaceURI,
String prefix)
Adds a namespace prefix to the NamespaceContext.
|
String |
getNamespaceURI(String prefix) |
String |
getPrefix(String namespaceURI) |
Iterator |
getPrefixes(String namespaceURI) |
public FabanNamespaceContext()
public void addNamespace(String namespaceURI, String prefix)
namespaceURI
- The namespace URIprefix
- The prefix we use for referring to the elements/attributespublic String getNamespaceURI(String prefix)
getNamespaceURI
in interface NamespaceContext
public String getPrefix(String namespaceURI)
getPrefix
in interface NamespaceContext
public Iterator getPrefixes(String namespaceURI)
getPrefixes
in interface NamespaceContext