|
|||||||||
| 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 java.lang.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 java.util.ArrayList<java.lang.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 | |
|---|---|
java.lang.String |
getNamespaceURI(java.lang.String prefix)
|
java.lang.String |
getPrefix(java.lang.String nsURI)
|
java.util.Iterator<?> |
getPrefixes(java.lang.String nsURI)
|
FixedNsContext |
reuseOrCreate(NsDeclaration currLastDecl)
Method called to either reuse this context or construct a new one. |
java.lang.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 java.lang.String[] _declarationData
protected java.util.ArrayList<java.lang.String> _tmpDecl
| Method Detail |
|---|
public FixedNsContext reuseOrCreate(NsDeclaration currLastDecl)
public final java.lang.String getNamespaceURI(java.lang.String prefix)
getNamespaceURI in interface javax.xml.namespace.NamespaceContextpublic final java.lang.String getPrefix(java.lang.String nsURI)
getPrefix in interface javax.xml.namespace.NamespaceContextpublic final java.util.Iterator<?> getPrefixes(java.lang.String nsURI)
getPrefixes in interface javax.xml.namespace.NamespaceContextpublic java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||