deegree 2.1 (2007/11/08 09:57 build-328-official)

org.deegree.framework.xml
Class NamespaceContext

java.lang.Object
  extended by org.deegree.framework.xml.NamespaceContext
All Implemented Interfaces:
org.jaxen.NamespaceContext

public class NamespaceContext
extends Object
implements org.jaxen.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.

Since:
2.0
Version:
2.0, $Revision: 6615 $, $Date: 2007-04-17 14:10:53 +0200 (Di, 17 Apr 2007) $
Author:
Markus Schneider , last edited by: $Author: apoth $

Constructor Summary
NamespaceContext()
          Creates a new instance of NamespaceContext with only the prefix 'xmlns:' being bound.
 
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

NamespaceContext

public NamespaceContext()
Creates a new instance of NamespaceContext with only the prefix 'xmlns:' being bound.

Method Detail

getNamespaceMap

public Map<String,URI> getNamespaceMap()

addNamespace

public void addNamespace(String prefix,
                         URI namespace)
registers a new prefix with an assigned namespace URI

Parameters:
prefix -
namespace -

addAll

public void addAll(NamespaceContext nsc)
registeres all prexifes and assigned namespaces from another NamespaceContext. If a prefix already exists in this NamespaceContext it will be ignored.

Parameters:
nsc -

translateNamespacePrefixToUri

public String translateNamespacePrefixToUri(String prefix)
Specified by:
translateNamespacePrefixToUri in interface org.jaxen.NamespaceContext

getURI

public URI getURI(String prefix)

toString

public String toString()
Overrides:
toString in class Object

deegree 2.1 (2007/11/08 09:57 build-328-official)

an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://deegree.sourceforge.net