com.sun.xml.ws.util.xml
Class NamespaceContextExAdaper
java.lang.Object
com.sun.xml.ws.util.xml.NamespaceContextExAdaper
- All Implemented Interfaces:
- Iterable<NamespaceContextEx.Binding>, NamespaceContext, NamespaceContextEx
public class NamespaceContextExAdaper
- extends Object
- implements NamespaceContextEx
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NamespaceContextExAdaper
public NamespaceContextExAdaper(NamespaceContext nsContext)
iterator
public Iterator<NamespaceContextEx.Binding> iterator()
- Description copied from interface:
NamespaceContextEx
- Iterates all the in-scope namespace bindings.
This method enumerates all the active in-scope namespace bindings.
This does not include implicit bindings, such as
"xml"->"http://www.w3.org/XML/1998/namespace"
or ""->"" (the implicit default namespace URI.)
The returned iterator may not include the same prefix more than once.
For example, the returned iterator may only contain f=ns2
if the document is as follows and this method is used at the bar element.
...
The iteration may be done in no particular order.
- Specified by:
iterator in interface Iterable<NamespaceContextEx.Binding>- Specified by:
iterator in interface NamespaceContextEx
- Returns:
- may return an empty iterator, but never null.
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 © 2005-2015 Oracle Corporation. All Rights Reserved.