|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.ntnu.ecosim.basicfunctionality.ConfigProperties
public class ConfigProperties
Class holding the cached configuration properties, so they don't need to be read each time a property is accessed.
Constructor Summary | |
---|---|
ConfigProperties()
Constructor |
Method Summary | |
---|---|
java.util.Enumeration<java.io.Serializable> |
elements()
Method to access the elements of the configuration file |
java.lang.String |
getProperty(java.lang.String propertyName)
Method to get a "property", that is - a property of the configuration tree |
ConfigProperties |
getSubModule(java.lang.String listName)
Method to get a submodule |
java.util.Enumeration<java.lang.String> |
keys()
Fetches the keys of the hashmap |
void |
putProperty(java.lang.String propertyName,
ConfigProperties property)
Put a submodule of properties into the configuration |
void |
putProperty(java.lang.String propertyName,
java.lang.String propertyValue)
Put property into configuration. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ConfigProperties()
Method Detail |
---|
public java.util.Enumeration<java.io.Serializable> elements()
public java.lang.String getProperty(java.lang.String propertyName)
propertyName
- the name of the property you want to get
public ConfigProperties getSubModule(java.lang.String listName)
listName
- the name of the submodule
public java.util.Enumeration<java.lang.String> keys()
public void putProperty(java.lang.String propertyName, ConfigProperties property)
propertyName
- the property nameproperty
- the propertiespublic void putProperty(java.lang.String propertyName, java.lang.String propertyValue)
propertyName
- the property namepropertyValue
- the property value
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |