|
||||||||||
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 NamespaceContext |
getInstance()
|
java.lang.String |
getNamespaceURI(java.lang.String prefix)
|
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 NamespaceContext getInstance()
public java.lang.String getNamespaceURI(java.lang.String prefix)
getNamespaceURI
in interface NamespaceContext
public java.lang.String getPrefix(java.lang.String nsURI)
getPrefix
in interface NamespaceContext
public java.util.Iterator getPrefixes(java.lang.String nsURI)
getPrefixes
in interface NamespaceContext
public NamespaceContext getParent()
ExtendedNamespaceContext
getParent
in interface ExtendedNamespaceContext
null
if this is a root
context.public boolean isPrefixDeclared(java.lang.String prefix)
ExtendedNamespaceContext
isPrefixDeclared
in interface ExtendedNamespaceContext
prefix
- The prefix to check.
true
if the prefix is declared in this context,
false
otherwise.public java.util.Iterator getPrefixes()
ExtendedNamespaceContext
Iterator
of all namespace prefixes in scope within this
context, including those inherited from ancestor contexts.
getPrefixes
in interface ExtendedNamespaceContext
Iterator
of prefix String
s.public java.util.Iterator getDeclaredPrefixes()
ExtendedNamespaceContext
Iterator
of all namespace prefixes declared within
this context, irrespective of any ancestor contexts.
getDeclaredPrefixes
in interface ExtendedNamespaceContext
Iterator
of prefix String
s.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |