org.glassfish.jersey.internal.util
Class SimpleNamespaceResolver

java.lang.Object
  extended by org.glassfish.jersey.internal.util.SimpleNamespaceResolver
All Implemented Interfaces:
NamespaceContext

public class SimpleNamespaceResolver
extends Object
implements NamespaceContext

Simple namespace resolver which resolves one predefined namespace.

Author:
Gerard Davison, Miroslav Fuksa (miroslav.fuksa at oracle.com)

Constructor Summary
SimpleNamespaceResolver(String prefix, String nsURI)
          Create a new instance of the namespace resolver initialized with the fixed prefix and URI that the resolver will be capable to resolve.
 
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

SimpleNamespaceResolver

public SimpleNamespaceResolver(String prefix,
                               String nsURI)
Create a new instance of the namespace resolver initialized with the fixed prefix and URI that the resolver will be capable to resolve.

Parameters:
prefix - Namespace prefix.
nsURI - Namespace URI.
Method Detail

getNamespaceURI

public String getNamespaceURI(String prefix)
Specified by:
getNamespaceURI in interface NamespaceContext

getPrefix

public String getPrefix(String namespaceURI)
Specified by:
getPrefix in interface NamespaceContext

getPrefixes

public Iterator getPrefixes(String namespaceURI)
Specified by:
getPrefixes in interface NamespaceContext


Copyright © 2007-2014, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.