|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.gnu.xml.ezparse.DefaultContext
Generic context which is available to ElementListeners during call-backs.
Constructor Summary | |
DefaultContext()
Constructor. |
Method Summary | |
void |
clear()
Clears the internal store of this context. |
java.lang.Object |
get(java.lang.String key)
Retrieves a value based on the key . |
void |
set(java.lang.String key,
java.lang.Object value)
Sets a name value pair based on method parameters. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DefaultContext()
Method Detail |
public void set(java.lang.String key, java.lang.Object value)
set
in interface Context
key
- must not be null -- can be emptyvalue
- value tied to the keypublic java.lang.Object get(java.lang.String key)
key
. Note that
the returned value
may be null if no value is
mapped to key
.
get
in interface Context
key
-
public void clear()
clear
in interface Context
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |