org.gnu.xml.ezparse
Interface Context

All Known Implementing Classes:
DefaultContext

public interface Context

Generic context which is available to ElementListeners during call-backs.

Since:
J2SDK 1.4

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.
 

Method Detail

set

public void set(java.lang.String key,
                java.lang.Object value)
Sets a name value pair based on method parameters.

Parameters:
key - the key
value - value tied to the key

get

public java.lang.Object get(java.lang.String key)
Retrieves a value based on the key. Note that the returned value may be null if no value is mapped to key.

Parameters:
key -
Returns:
value

clear

public void clear()
Clears the internal store of this context.