com.sun.faban.common
Class FabanNamespaceContext
java.lang.Object
com.sun.faban.common.FabanNamespaceContext
- All Implemented Interfaces:
- NamespaceContext
public class FabanNamespaceContext
- extends Object
- implements NamespaceContext
A NamespaceContext with Faban namespace conventions precoded.
The Faban prefixes and namespace URIs are as follows:
Prefix | Namespace URI |
fa | http://faban.sunsource.net/ns/faban |
fd | http://faban.sunsource.net/ns/fabandriver |
fh | http://faban.sunsource.net/ns/fabanharness |
You can add additional namespace prefixes using the addNamespace method.
- Author:
- Akara Sucharitakul
Constructor Summary |
FabanNamespaceContext()
Constructs the Faban namespace context that contains all Faban
namespaces to start with. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FabanNamespaceContext
public FabanNamespaceContext()
- Constructs the Faban namespace context that contains all Faban
namespaces to start with.
addNamespace
public void addNamespace(String namespaceURI,
String prefix)
- Adds a namespace prefix to the NamespaceContext.
- Parameters:
namespaceURI
- The namespace URIprefix
- The prefix we use for referring to the elements/attributes
getNamespaceURI
public String getNamespaceURI(String prefix)
- Specified by:
getNamespaceURI
in interface NamespaceContext
getPrefix
public String getPrefix(String namespaceURI)
- Specified by:
getPrefix
in interface NamespaceContext
getPrefixes
public Iterator getPrefixes(String namespaceURI)
- Specified by:
getPrefixes
in interface NamespaceContext