|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectdataholder.Properties
public class Properties
A simple class to store and retrieve properties as (key-value) pairs
| Constructor Summary | |
|---|---|
Properties()
Creates a new instance of Properties |
|
| Method Summary | |
|---|---|
java.util.Vector |
convertToVector()
Converts a list of properties into a vector (example for a vector element: key: "map", value: "gztan.png" --> vector: "map=gztan.png") |
java.lang.String |
getKeyAt(int i)
Gets the key of a property at a given index |
java.lang.String |
getProperty(java.lang.String key)
Gets the value of a property for a given key. |
java.lang.String |
getValueAt(int i)
Gets the value of a property at a given index |
void |
setProperty(java.lang.String key,
java.lang.String value)
Sets the value for a given property. |
int |
size()
Returns the number of properties |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Properties()
| Method Detail |
|---|
public java.lang.String getProperty(java.lang.String key)
key - the key of the property
public void setProperty(java.lang.String key,
java.lang.String value)
key - the key of the property to setvalue - the value of the propertypublic int size()
public java.lang.String getKeyAt(int i)
i - Index of the property
public java.lang.String getValueAt(int i)
i - Index of the property
public java.util.Vector convertToVector()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||