|
||||||||||
| 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 | |
|---|---|
Iterator |
getDeclaredPrefixes()
Returns an Iterator of all namespace prefixes declared within
this context, irrespective of any ancestor contexts. |
static NamespaceContext |
getInstance()
|
String |
getNamespaceURI(String prefix)
|
NamespaceContext |
getParent()
Returns a reference to the parent of this context. |
String |
getPrefix(String nsURI)
|
Iterator |
getPrefixes()
Returns an Iterator of all namespace prefixes in scope within this
context, including those inherited from ancestor contexts. |
Iterator |
getPrefixes(String nsURI)
|
boolean |
isPrefixDeclared(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 NamespaceContext getInstance()
public String getNamespaceURI(String prefix)
getNamespaceURI in interface NamespaceContextpublic String getPrefix(String nsURI)
getPrefix in interface NamespaceContextpublic Iterator getPrefixes(String nsURI)
getPrefixes in interface NamespaceContextpublic NamespaceContext getParent()
ExtendedNamespaceContext
getParent in interface ExtendedNamespaceContextnull if this is a root
context.public boolean isPrefixDeclared(String prefix)
ExtendedNamespaceContext
isPrefixDeclared in interface ExtendedNamespaceContextprefix - The prefix to check.
true if the prefix is declared in this context,
false otherwise.public 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 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 | |||||||||