|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.huguesjohnson.tiamat.StringTable
public class StringTable
StringTable - stores key-value pairs of strings
Constructor Summary | |
---|---|
StringTable()
Creates an empty StringTable. |
Method Summary | |
---|---|
StringTable |
clone()
|
java.lang.String |
get(java.lang.String key,
java.lang.String defaultValue)
Returns the entry with the specified key, defaultValue if not found. |
java.lang.String[][] |
getAll()
Returns all key-value pairs in the collection, [0][n]=key for item n, [1][n]=value for item n. |
java.util.Properties |
getProperties()
Returns the Properties object this StringTable contains. |
void |
onDeserialize(Formatter formatter,
java.lang.String absoluteDir)
The onDeserialize event should be fired after an object is de-serialized. |
void |
set(java.lang.String key,
java.lang.String value)
Sets an entry in the table. |
void |
setProperties(java.util.Properties table)
Sets the Properties object this StringTable contains. |
java.lang.String |
toString()
Returns a string representation of the object. |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public StringTable()
Method Detail |
---|
public java.util.Properties getProperties()
public void setProperties(java.util.Properties table)
table
- The new Properties object for this StringTable.public void set(java.lang.String key, java.lang.String value)
key
- The key for the entry.value
- The value for the entry.public java.lang.String get(java.lang.String key, java.lang.String defaultValue)
key
- The key for the entry to return.defaultValue
- The default value if the key is not found.
public java.lang.String[][] getAll()
public java.lang.String toString()
toString
in class java.lang.Object
public void onDeserialize(Formatter formatter, java.lang.String absoluteDir)
onDeserialize
in interface Storable
formatter
- the formatter to use to load any storable membersabsoluteDir
- the working directory since all paths stored in the object should be relativepublic StringTable clone()
clone
in class java.lang.Object
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |