org.kuali.rice.ken.util
Class CompoundNamespaceContext

java.lang.Object
  extended by org.kuali.rice.ken.util.CompoundNamespaceContext
All Implemented Interfaces:
NamespaceContext

public class CompoundNamespaceContext
extends Object
implements NamespaceContext

XPath NamespaceContext implementation that delegates in sequence to a list of NamespaceContexts, returning the first match.

Author:
Kuali Rice Team (rice.collab@kuali.org)

Constructor Summary
CompoundNamespaceContext(List<NamespaceContext> contexts)
          Constructs a CompoundNamespaceContext.java.
CompoundNamespaceContext(NamespaceContext first, NamespaceContext second)
          Constructs a CompoundNamespaceContext.java.
 
Method Summary
 String getNamespaceURI(String prefix)
           
 String getPrefix(String namespaceURI)
           
 Iterator getPrefixes(String namespaceURI)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CompoundNamespaceContext

public CompoundNamespaceContext(NamespaceContext first,
                                NamespaceContext second)
Constructs a CompoundNamespaceContext.java.

Parameters:
first -
second -

CompoundNamespaceContext

public CompoundNamespaceContext(List<NamespaceContext> contexts)
Constructs a CompoundNamespaceContext.java.

Parameters:
contexts -
Method Detail

getNamespaceURI

public String getNamespaceURI(String prefix)
Specified by:
getNamespaceURI in interface NamespaceContext
See Also:
NamespaceContext.getNamespaceURI(java.lang.String)

getPrefix

public String getPrefix(String namespaceURI)
Specified by:
getPrefix in interface NamespaceContext
See Also:
NamespaceContext.getPrefix(java.lang.String)

getPrefixes

public Iterator getPrefixes(String namespaceURI)
Specified by:
getPrefixes in interface NamespaceContext
See Also:
NamespaceContext.getPrefixes(java.lang.String)


Copyright © 2005-2011 The Kuali Foundation. All Rights Reserved.