|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.haphazard.item.GlobalItem
Contains all general items and handling of them
Method Summary | |
void |
add(GeneralItem item)
Adds an item to the global item list |
GeneralItem |
get(java.lang.String item)
Gets an item |
static GlobalItem |
getInstance()
Gets the instance of GlobalItem |
void |
load(java.io.InputStream stream)
Loads a global item list from a file Clears the global item list before load. |
void |
save(java.io.OutputStream stream)
Saves the global item list in an XML-file |
java.lang.String |
toXML(int indent)
Translates this object into an XML notation |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static GlobalItem getInstance()
public void add(GeneralItem item)
item
- The item to addpublic GeneralItem get(java.lang.String item)
item
- The name of the item to get
public void save(java.io.OutputStream stream)
stream
- The stream to save topublic void load(java.io.InputStream stream)
stream
- The stream to load frompublic java.lang.String toXML(int indent)
indent
- The indentation level
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |