|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.fedoracommons.funapi.utilities.NamespaceContextImpl
public class NamespaceContextImpl
An implementation of NamespaceContext
that provides
an addNamespace method.
Constructor Summary | |
---|---|
NamespaceContextImpl()
|
|
NamespaceContextImpl(java.util.Map<java.lang.String,java.lang.String> prefix2ns)
Constructor that takes a Map of prefix to namespaces. |
|
NamespaceContextImpl(java.lang.String prefix,
java.lang.String namespaceURI)
|
Method Summary | |
---|---|
void |
addNamespace(java.lang.String prefix,
java.lang.String namespaceURI)
Add a prefix to namespace mapping. |
java.lang.String |
getNamespaceURI(java.lang.String prefix)
|
java.lang.String |
getPrefix(java.lang.String namespaceURI)
|
java.util.Iterator<java.lang.String> |
getPrefixes(java.lang.String namespaceURI)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public NamespaceContextImpl()
public NamespaceContextImpl(java.lang.String prefix, java.lang.String namespaceURI)
public NamespaceContextImpl(java.util.Map<java.lang.String,java.lang.String> prefix2ns)
prefix2ns
- a mapping of prefixes to namespaces.
java.lang.IllegalArgumentException
- if prefix2ns contains
"http://www.w3.org/XML/1998/namespace" or
"http://www.w3.org/2000/xmlns/"Method Detail |
---|
public java.lang.String getNamespaceURI(java.lang.String prefix)
getNamespaceURI
in interface javax.xml.namespace.NamespaceContext
public java.lang.String getPrefix(java.lang.String namespaceURI)
getPrefix
in interface javax.xml.namespace.NamespaceContext
public java.util.Iterator<java.lang.String> getPrefixes(java.lang.String namespaceURI)
getPrefixes
in interface javax.xml.namespace.NamespaceContext
public void addNamespace(java.lang.String prefix, java.lang.String namespaceURI)
prefix
- namespaceURI
-
java.lang.IllegalArgumentException
- if namespaceURI is one of
"http://www.w3.org/XML/1998/namespace" or
"http://www.w3.org/2000/xmlns/"
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |