|
deegree 2.2 (2008/12/22 11:33 build-3038-official) | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.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(String prefix,
URI namespace)
registers a new prefix with an assigned namespace URI |
Map<String,URI> |
getNamespaceMap()
|
URI |
getURI(String prefix)
|
String |
toString()
|
String |
translateNamespacePrefixToUri(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 Map<String,URI> getNamespaceMap()
public void addNamespace(String prefix, URI namespace)
prefix
- namespace
- public void addAll(NamespaceContext nsc)
nsc
- public String translateNamespacePrefixToUri(String prefix)
translateNamespacePrefixToUri
in interface org.jaxen.NamespaceContext
public URI getURI(String prefix)
public String toString()
toString
in class Object
|
deegree 2.2 (2008/12/22 11:33 build-3038-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://deegree.sourceforge.net