|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.simonstl.common.NSContext
Derived from the com.simonstl.moe.NamespaceContext class and the com.simonstl.midp.xml.TAMNSContext class.
Field Summary | |
protected int |
level
|
protected boolean |
modified
|
protected java.util.Vector |
namespaceStack
|
protected java.util.Hashtable |
nsByPrefix
|
Constructor Summary | |
NSContext()
|
Method Summary | |
void |
declarePrefix(NSDecl namespace)
|
void |
declarePrefix(java.lang.String prefix,
java.lang.String URI)
Accepts a namespace declaration mapping a prefix to a URI. |
protected void |
generateSets()
|
int |
getLevel()
|
java.lang.String |
getPrefix(java.lang.String URI)
Returns a prefix which currently maps to a particular URI. |
java.lang.String |
getUri(java.lang.String prefix)
Returns the URI which currently maps to a particular prefix. |
static void |
main(java.lang.String[] args)
|
void |
popLevel()
Pops the element level up one to undeclare namespaces whose scope is done. |
static void |
printPop(NSContext subject)
|
static void |
printPush(NSContext subject)
|
void |
pushLevel()
Pushes the element level one deeper for namespace-nesting. |
protected boolean |
removeNamespaces(int removeLevel)
|
void |
reset()
clear everything in the namespace stack |
static java.lang.String |
test()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected int level
protected boolean modified
protected java.util.Vector namespaceStack
protected java.util.Hashtable nsByPrefix
Constructor Detail |
public NSContext()
Method Detail |
public void declarePrefix(java.lang.String prefix, java.lang.String URI)
NamespaceStackI
declarePrefix
in interface NamespaceStackI
public void declarePrefix(NSDecl namespace)
protected void generateSets()
public java.lang.String getUri(java.lang.String prefix)
NamespaceStackI
getUri
in interface NamespaceStackI
public java.lang.String getPrefix(java.lang.String URI)
NamespaceStackI
getPrefix
in interface NamespaceStackI
public void pushLevel()
NamespaceStackI
pushLevel
in interface NamespaceStackI
public void popLevel()
NamespaceStackI
popLevel
in interface NamespaceStackI
protected boolean removeNamespaces(int removeLevel)
public int getLevel()
public void reset()
NamespaceStackI
reset
in interface NamespaceStackI
public static void printPush(NSContext subject)
public static void printPop(NSContext subject)
public static java.lang.String test()
public static void main(java.lang.String[] args)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |