org.knime.core.data.xml.util
Class DefaultNamespaceContext

java.lang.Object
  extended by org.knime.core.data.xml.util.DefaultNamespaceContext
All Implemented Interfaces:
NamespaceContext

public class DefaultNamespaceContext
extends Object
implements NamespaceContext

A default implementation of NamespaceContext. The JDK does not provide a default implementation.

Author:
Heiko Hofer

Constructor Summary
DefaultNamespaceContext(String[] prefixes, String[] namespaces)
          The context with the mapping prefixes[i] matches namespaces[i]
 
Method Summary
 String getNamespaceURI(String prefix)
          
 String getPrefix(String uri)
          
 Iterator getPrefixes(String uri)
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultNamespaceContext

public DefaultNamespaceContext(String[] prefixes,
                               String[] namespaces)
The context with the mapping prefixes[i] matches namespaces[i]

Parameters:
prefixes - the namespace prefixes
namespaces - the namespaces
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 getPrefixes(String uri)

Specified by:
getPrefixes in interface NamespaceContext


Copyright, 2003 - 2012. All rights reserved.
University of Konstanz, Germany.
Chair for Bioinformatics and Information Mining, Prof. Dr. Michael R. Berthold.
You may not modify, publish, transmit, transfer or sell, reproduce, create derivative works from, distribute, perform, display, or in any way exploit any of the content, in whole or in part, except as otherwise expressly permitted in writing by the copyright owner or as specified in the license file distributed with this product.