|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavanet.staxutils.EmptyNamespaceContext
public final class EmptyNamespaceContext
ExtendedNamespaceContext that contains no namespaces.
| Field Summary | |
|---|---|
static EmptyNamespaceContext |
INSTANCE
|
| Constructor Summary | |
|---|---|
EmptyNamespaceContext()
|
|
| Method Summary | |
|---|---|
java.util.Iterator |
getDeclaredPrefixes()
Returns an Iterator of all namespace prefixes declared within
this context, irrespective of any ancestor contexts. |
static javax.xml.namespace.NamespaceContext |
getInstance()
|
java.lang.String |
getNamespaceURI(java.lang.String prefix)
|
javax.xml.namespace.NamespaceContext |
getParent()
Returns a reference to the parent of this context. |
java.lang.String |
getPrefix(java.lang.String nsURI)
|
java.util.Iterator |
getPrefixes()
Returns an Iterator of all namespace prefixes in scope within this
context, including those inherited from ancestor contexts. |
java.util.Iterator |
getPrefixes(java.lang.String nsURI)
|
boolean |
isPrefixDeclared(java.lang.String prefix)
Determines if the specified prefix is declared within this context, irrespective of any ancestor contexts. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final EmptyNamespaceContext INSTANCE
| Constructor Detail |
|---|
public EmptyNamespaceContext()
| Method Detail |
|---|
public static final javax.xml.namespace.NamespaceContext getInstance()
public java.lang.String getNamespaceURI(java.lang.String prefix)
getNamespaceURI in interface javax.xml.namespace.NamespaceContextpublic java.lang.String getPrefix(java.lang.String nsURI)
getPrefix in interface javax.xml.namespace.NamespaceContextpublic java.util.Iterator getPrefixes(java.lang.String nsURI)
getPrefixes in interface javax.xml.namespace.NamespaceContextpublic javax.xml.namespace.NamespaceContext getParent()
ExtendedNamespaceContext
getParent in interface ExtendedNamespaceContextnull if this is a root
context.public boolean isPrefixDeclared(java.lang.String prefix)
ExtendedNamespaceContext
isPrefixDeclared in interface ExtendedNamespaceContextprefix - The prefix to check.
true if the prefix is declared in this context,
false otherwise.public java.util.Iterator getPrefixes()
ExtendedNamespaceContextIterator of all namespace prefixes in scope within this
context, including those inherited from ancestor contexts.
getPrefixes in interface ExtendedNamespaceContextIterator of prefix Strings.public java.util.Iterator getDeclaredPrefixes()
ExtendedNamespaceContextIterator of all namespace prefixes declared within
this context, irrespective of any ancestor contexts.
getDeclaredPrefixes in interface ExtendedNamespaceContextIterator of prefix Strings.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||