|
deegree 2.5 (2011/06/29 09:44 build-8-official) | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.deegree.framework.xml.NamespaceContext
public class NamespaceContext
Implementation of Jaxen's (http://jaxen.codehaus.org) NamespaceContext
interface.
NOTE: This should be used everywhere inside deegree, don't use
org.jaxen.SimpleNamespaceContext
-- this prevents unnecessary binding to Jaxen.
Constructor Summary | |
---|---|
NamespaceContext()
Creates a new instance of NamespaceContext with only the prefix 'xmlns:' being
bound. |
|
NamespaceContext(NamespaceContext nsContext)
Creates a new instance of NamespaceContext that contains all the bindings from
the argument NamespaceContext . |
Method Summary | |
---|---|
void |
addAll(NamespaceContext nsc)
registeres all prexifes and assigned namespaces from another NamespaceContext. |
void |
addNamespace(java.lang.String prefix,
java.net.URI namespace)
registers a new prefix with an assigned namespace URI |
java.util.Map<java.lang.String,java.net.URI> |
getNamespaceMap()
|
java.net.URI |
getURI(java.lang.String prefix)
|
java.lang.String |
toString()
|
java.lang.String |
translateNamespacePrefixToUri(java.lang.String prefix)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public NamespaceContext()
NamespaceContext
with only the prefix 'xmlns:' being
bound.
public NamespaceContext(NamespaceContext nsContext)
NamespaceContext
that contains all the bindings from
the argument NamespaceContext
.
nsContext
- bindings to copyMethod Detail |
---|
public java.util.Map<java.lang.String,java.net.URI> getNamespaceMap()
public void addNamespace(java.lang.String prefix, java.net.URI namespace)
prefix
- namespace
- public void addAll(NamespaceContext nsc)
nsc
- public java.lang.String translateNamespacePrefixToUri(java.lang.String prefix)
translateNamespacePrefixToUri
in interface org.jaxen.NamespaceContext
public java.net.URI getURI(java.lang.String prefix)
prefix
- to get the namespace for
null
if it was not found.public java.lang.String toString()
toString
in class java.lang.Object
|
deegree 2.5 (2011/06/29 09:44 build-8-official) | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://www.deegree.org