| java.lang.Object javanet.staxutils.SimpleNamespaceContext
All known Subclasses: javanet.staxutils.helpers.ElementContext,
SimpleNamespaceContext | public SimpleNamespaceContext()(Code) | | Constructs a SimpleNamespaceContext with no parent context or namespace
declarations.
|
SimpleNamespaceContext | public SimpleNamespaceContext(Map namespaces)(Code) | | Constructs a SimpleNamespaceContext with no parent context that contains
the specified prefixes.
Parameters: namespaces - A Map of namespace URIs, keyed by their prefixes. |
SimpleNamespaceContext | public SimpleNamespaceContext(NamespaceContext parent)(Code) | | Constructs an empty SimpleNamespaceContext with the given parent. The
parent context will be forwarded any requests for namespaces not declared
in this context.
Parameters: parent - The parent context. |
SimpleNamespaceContext | public SimpleNamespaceContext(NamespaceContext parent, Map namespaces)(Code) | | Constructs an empty SimpleNamespaceContext with the given parent. The
parent context will be forwarded any requests for namespaces not declared
in this context.
Parameters: parent - The parent context. Parameters: namespaces - A Map of namespace URIs, keyed by their prefixes. |
getDeclaredPrefixCount | public int getDeclaredPrefixCount()(Code) | | Returns the number of namespace prefixes declared in this context.
The number of namespace prefixes declared in this context. |
getParent | public NamespaceContext getParent()(Code) | | Returns a reference to the parent of this context.
The parent context, or null if this is a rootcontext. |
isPrefixDeclared | public boolean isPrefixDeclared(String prefix)(Code) | | Determines if the specified prefix is declared within this context,
irrespective of any ancestor contexts.
Parameters: prefix - The prefix to check. true if the prefix is declared in this context,false otherwise. |
isRootContext | public boolean isRootContext()(Code) | | Determines if this is a root context.
true if this is a root context, false otherwise. |
setDefaultNamespace | public String setDefaultNamespace(String nsURI)(Code) | | Sets the default namespace in this context.
Parameters: nsURI - The default namespace URI. The previously declared namespace uri, or null ifthe default prefix wasn't previously declared in this context. |
setParent | public void setParent(NamespaceContext parent)(Code) | | Sets the parent context used to inherit namespace bindings.
Parameters: parent - The new parent context. |
setPrefix | public String setPrefix(String prefix, String nsURI)(Code) | | Declares a namespace binding in this context.
Parameters: prefix - The namespace prefix. Parameters: nsURI - The namespace URI. The previously declared namespace uri, or null ifthe prefix wasn't previously declared in this context. |
|
|