Package javanet.staxutils
Interface ExtendedNamespaceContext
- All Superinterfaces:
NamespaceContext
- All Known Implementing Classes:
ElementContext,EmptyNamespaceContext,SimpleNamespaceContext
Extended namespace context interface that allows the context tree to be navigated
and to list all known prefixes.
- Version:
- $Revision: 1.1 $
- Author:
- Christian Niles
-
Method Summary
Modifier and TypeMethodDescriptionReturns anIteratorof all namespace prefixes declared within this context, irrespective of any ancestor contexts.Returns a reference to the parent of this context.Returns anIteratorof all namespace prefixes in scope within this context, including those inherited from ancestor contexts.booleanisPrefixDeclared(String prefix) Determines if the specified prefix is declared within this context, irrespective of any ancestor contexts.Methods inherited from interface javax.xml.namespace.NamespaceContext
getNamespaceURI, getPrefix, getPrefixes
-
Method Details
-
getParent
NamespaceContext getParent()Returns a reference to the parent of this context.- Returns:
- The parent context, or
nullif this is a root context.
-
isPrefixDeclared
Determines if the specified prefix is declared within this context, irrespective of any ancestor contexts.- Parameters:
prefix- The prefix to check.- Returns:
trueif the prefix is declared in this context,falseotherwise.
-
getPrefixes
Iterator getPrefixes()Returns anIteratorof all namespace prefixes in scope within this context, including those inherited from ancestor contexts. -
getDeclaredPrefixes
Iterator getDeclaredPrefixes()Returns anIteratorof all namespace prefixes declared within this context, irrespective of any ancestor contexts.
-