|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.fasterxml.aalto.in.FixedNsContext
public final class FixedNsContext
Non-transient implementation of NamespaceContext
.
Field Summary | |
---|---|
protected String[] |
_declarationData
Array that contains prefix/namespace-uri pairs, ordered from the most recent declaration to older ones. |
protected NsDeclaration |
_lastDeclaration
We will keep a reference to the last namespace declaration in effect at point when this instance was created. |
protected ArrayList<String> |
_tmpDecl
Temporary List used for constructing compact namespace binding information that we will actually use. |
static FixedNsContext |
EMPTY_CONTEXT
We can share and reuse "no bindings" instance. |
Method Summary | |
---|---|
String |
getNamespaceURI(String prefix)
|
String |
getPrefix(String nsURI)
|
Iterator<?> |
getPrefixes(String nsURI)
|
FixedNsContext |
reuseOrCreate(NsDeclaration currLastDecl)
Method called to either reuse this context or construct a new one. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final FixedNsContext EMPTY_CONTEXT
protected final NsDeclaration _lastDeclaration
protected final String[] _declarationData
protected ArrayList<String> _tmpDecl
Method Detail |
---|
public FixedNsContext reuseOrCreate(NsDeclaration currLastDecl)
public final String getNamespaceURI(String prefix)
getNamespaceURI
in interface NamespaceContext
public final String getPrefix(String nsURI)
getPrefix
in interface NamespaceContext
public final Iterator<?> getPrefixes(String nsURI)
getPrefixes
in interface NamespaceContext
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |