Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle Web Services Manager
11g (11.1.1)

E10689-01


oracle.wsm.common.xml
Class DefaultNamespaceContext

java.lang.Object
  extended by oracle.wsm.common.xml.DefaultNamespaceContext

All Implemented Interfaces:
NamespaceContext

public class DefaultNamespaceContext
extends Object
implements NamespaceContext

Field Summary
static String MODULES
           
static Class xml11clazz
           

 

Constructor Summary
DefaultNamespaceContext()
           
DefaultNamespaceContext(Hashtable<String,String> initialNamespaces)
          Creates a new instance of NamespaceContextHelper.
DefaultNamespaceContext(String prefix, String uri)
          Creates a new instance of NamespaceContextHelper.

 

Method Summary
 void addEntry(String prefix, String uri)
          Adds a new prefix/uri binding to the namespace context.
 String getNamespaceURI(String prefix)
          Implements the NamespaceContext getNamespaceURI method.
 Iterator<String> getNamespaceURIs()
          Implements a <emph>NON STANDARD</emph> method for finding all of the namespace URIs in the namespace context.
 String getPrefix(String namespaceURI)
          Implements the NamespaceContext getPrefix method.
 Iterator<String> getPrefixes()
          Implements a <emph>NON STANDARD</emph> method for finding all of the prefixes in the namespace context.
 Iterator<String> getPrefixes(String namespaceURI)
          Implements the NamespaceContext getPrefixes method.

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Field Detail

MODULES

public static final String MODULES

xml11clazz

public static Class xml11clazz

Constructor Detail

DefaultNamespaceContext

public DefaultNamespaceContext()

DefaultNamespaceContext

public DefaultNamespaceContext(Hashtable<String,String> initialNamespaces)
Creates a new instance of NamespaceContextHelper.

Creates a namespace context with the bindings specified in initialNamespaces.


DefaultNamespaceContext

public DefaultNamespaceContext(String prefix,
                               String uri)
Creates a new instance of NamespaceContextHelper.

Creates a namespace context with the specified prefix bound to uri.

Method Detail

addEntry

public void addEntry(String prefix,
                     String uri)
Adds a new prefix/uri binding to the namespace context.
Throws:
NullPointerException - if the prefix or uri is null.
IllegalArgumentException - if the caller attempts to change the binding of prefix, if the caller attempts to bind the prefix "xml" or the namespace "http://www.w3.org/XML/1998/namespace" incorrectly, if the caller attempts to bind the prefix "xmlns" or the namespace "http://www.w3.org/2000/xmlns", or if the prefix is not a valid NCName.

getNamespaceURI

public String getNamespaceURI(String prefix)
Implements the NamespaceContext getNamespaceURI method.
Specified by:
getNamespaceURI in interface NamespaceContext

getPrefix

public String getPrefix(String namespaceURI)
Implements the NamespaceContext getPrefix method.
Specified by:
getPrefix in interface NamespaceContext

getPrefixes

public Iterator<String> getPrefixes()
Implements a <emph>NON STANDARD</emph> method for finding all of the prefixes in the namespace context.

Returns an iterator over all of the prefixes in the namespace context. Note that multiple prefixes may be bound to the same URI.


getPrefixes

public Iterator<String> getPrefixes(String namespaceURI)
Implements the NamespaceContext getPrefixes method.
Specified by:
getPrefixes in interface NamespaceContext

getNamespaceURIs

public Iterator<String> getNamespaceURIs()
Implements a <emph>NON STANDARD</emph> method for finding all of the namespace URIs in the namespace context.

Returns an iterator over all of the namespace URIs in the namespace context. Note that each namespace URI is returned exactly once, even if it is bound to several different prefixes.


Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle Web Services Manager
11g (11.1.1)

E10689-01


Copyright © 2007, 2009, Oracle and/or its affiliates. All rights reserved.