net.sourceforge.jeuclid.elements.support
Class NamespaceContextAdder
java.lang.Object
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 $
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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 URIdelegate
- delegate NamespaceContext
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.