|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface Settings
General interface for classes which hold settings
| Method Summary | |
|---|---|
void |
doLoad()
Load settings from settings file |
void |
doSave()
Save settings to settings file |
boolean |
getPropertyBooleanValue(java.lang.String name)
Gets the value of a boolean property |
float |
getPropertyFloatValue(java.lang.String name)
Gets the value of a float property |
int |
getPropertyIntValue(java.lang.String name)
Gets the value of an int property |
java.lang.String |
getPropertyStringValue(java.lang.String name)
Gets the String value of a certain property |
boolean |
isPredefined()
Indicates if this Settings are predefined. |
void |
setProperty(java.lang.String name,
boolean value)
Set a boolean property to a certain value |
void |
setProperty(java.lang.String name,
int value)
Set an int property to a certain value |
void |
setProperty(java.lang.String name,
java.lang.String value)
Set a string property to a certain value |
| Methods inherited from interface org.jscience.architecture.traffic.xml.XMLSerializable |
|---|
getXMLName, load, saveChilds, saveSelf, setParentName |
| Method Detail |
|---|
void doLoad()
throws java.io.IOException,
XMLTreeException,
XMLInvalidInputException
java.io.IOException - DOCUMENT ME!
XMLTreeException - DOCUMENT ME!
XMLInvalidInputException - DOCUMENT ME!
void doSave()
throws java.io.IOException,
XMLTreeException,
XMLCannotSaveException
java.io.IOException - DOCUMENT ME!
XMLTreeException - DOCUMENT ME!
XMLCannotSaveException - DOCUMENT ME!boolean isPredefined()
void setProperty(java.lang.String name,
java.lang.String value)
throws java.util.NoSuchElementException
name - The name of the propertyvalue - The new value of the property
java.util.NoSuchElementException - DOCUMENT ME!
void setProperty(java.lang.String name,
int value)
throws java.util.NoSuchElementException
name - The name of the propertyvalue - The new value of the property
java.util.NoSuchElementException - DOCUMENT ME!
void setProperty(java.lang.String name,
boolean value)
throws java.util.NoSuchElementException
name - The name of the propertyvalue - The new value of the property
java.util.NoSuchElementException - DOCUMENT ME!
java.lang.String getPropertyStringValue(java.lang.String name)
throws java.util.NoSuchElementException
name - The name of the property
java.util.NoSuchElementException - if there is no property with that name
int getPropertyIntValue(java.lang.String name)
throws java.util.NoSuchElementException
name - The name of the property
java.util.NoSuchElementException - if there is no property with that name
boolean getPropertyBooleanValue(java.lang.String name)
throws java.util.NoSuchElementException
name - The name of the property
java.util.NoSuchElementException - if there is no property with that name
float getPropertyFloatValue(java.lang.String name)
throws java.util.NoSuchElementException
name - The name of the property
java.util.NoSuchElementException - if there is no property with that name
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||