net.sourceforge.jeuclid.elements.support
Class NamespaceContextAdder

java.lang.Object
  extended by net.sourceforge.jeuclid.elements.support.NamespaceContextAdder
All Implemented Interfaces:
NamespaceContext

public class NamespaceContextAdder
extends Object
implements NamespaceContext

Chainable implementation of a NamespaceContext.

Version:
$Revision: f5d68b2c52ae $

Constructor Summary
NamespaceContextAdder(String ns, String nsuri, NamespaceContext delegate)
          Create a new NamespaceAdder.
 
Method Summary
 String getNamespaceURI(String prefix)
          
 String getPrefix(String uri)
          
 Iterator<String> getPrefixes(String uri)
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NamespaceContextAdder

public NamespaceContextAdder(@Nonnull
                             String ns,
                             @Nonnull
                             String nsuri,
                             @Nullable
                             NamespaceContext delegate)
Create a new NamespaceAdder. The delegate context will be called if the namespace to be checked is not the namespace given in this adder. If the delegate is null, default values will be returned.

Parameters:
ns - namespace prefix.
nsuri - namespace URI
delegate - delegate NamespaceContext
Method Detail

getNamespaceURI

public String getNamespaceURI(String prefix)

Specified by:
getNamespaceURI in interface NamespaceContext

getPrefix

public String getPrefix(String uri)

Specified by:
getPrefix in interface NamespaceContext

getPrefixes

public Iterator<String> getPrefixes(String uri)

Specified by:
getPrefixes in interface NamespaceContext


Copyright © 2002-2010 The JEuclid project. All Rights Reserved.