Package org.jvnet.staxex
Interface NamespaceContextEx
- All Superinterfaces:
Iterable<NamespaceContextEx.Binding>,NamespaceContext
- All Known Implementing Classes:
NamespaceContexHelper,NamespaceContextEx,NamespaceContextExAdaper
Extended
NamespaceContext.- Author:
- Kohsuke Kawaguchi, Paul Sandoz
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfacePrefix to namespace URI binding. -
Method Summary
Methods inherited from interface java.lang.Iterable
forEach, spliteratorMethods inherited from interface javax.xml.namespace.NamespaceContext
getNamespaceURI, getPrefix, getPrefixes
-
Method Details
-
iterator
Iterator<NamespaceContextEx.Binding> iterator()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=ns2if the document is as follows and this method is used at the bar element.<foo xmlns:f='ns1'> <bar xmlns:f='ns2'> ...The iteration may be done in no particular order.
- Specified by:
iteratorin interfaceIterable<NamespaceContextEx.Binding>- Returns:
- may return an empty iterator, but never null.
-