|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object uk.org.iscream.cms.util.XMLPacket
Object in which to store incoming XML data for processing by a component of the system.
Field Summary | |
private String |
_name
This is the friendly identifier of the component this class is running in. |
private HashMap |
_params
A HashMap of parameters |
String |
REVISION
The current CVS revision of this class |
Constructor Summary | |
XMLPacket()
|
Method Summary | |
void |
addParam(String key,
String value)
Add a key and value pair to the HashMap. |
boolean |
containsKey(String key)
Find if a particular key exists in the HashMap. |
String |
getParam(String key)
Return the value associated with a particular key. |
Set |
getSet()
Return a Set of the keys in the HashMap. |
String |
printAll()
Print out the entire HashMap. |
String |
toString()
Overrides the Object.toString()
method to provide clean logging (every class should have this). |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public final String REVISION
private HashMap _params
private String _name
Constructor Detail |
public XMLPacket()
Method Detail |
public void addParam(String key, String value)
key
- The key valuevalue
- The value associated with the keypublic String getParam(String key)
key
- The key to retrieve
public Set getSet()
public boolean containsKey(String key)
key
- The key to check for
public String printAll()
public String toString()
Object.toString()
method to provide clean logging (every class should have this).
This uses the uk.org.iscream.cms.server.util.NameFormat class
to format the toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |