|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectlacam.config.Config
The systems config.
Constructor Summary | |
Config()
|
Method Summary | |
static boolean |
getBooleanProperty(java.lang.String key)
|
static java.awt.Color |
getColorProperty(java.lang.String key)
|
static int |
getIntProperty(java.lang.String key)
|
static org.w3c.dom.NodeList |
getPropertiesList(java.lang.String key)
|
static java.lang.String |
getProperty(java.lang.String key)
|
static java.lang.String |
getProperty(java.lang.String key,
java.lang.String default_value)
|
static org.w3c.dom.Node |
getPropertyNode(java.lang.String key)
Return the Node representing the key |
static boolean |
loadConfigDocument()
Loads the config xml file and applies the default values. |
static void |
saveDocument()
Saves the config document. |
static void |
setProperty(java.lang.String key,
java.lang.String value)
Same as setProperty(String, String, boolean) with cdata = false |
static void |
setProperty(java.lang.String key,
java.lang.String value,
boolean cdata)
Sets the given value for the key and wraps it into a CDATA section if needed |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Config()
Method Detail |
public static java.lang.String getProperty(java.lang.String key, java.lang.String default_value)
key
- The key to look fordefault_value
- The default value to return, if nothing found
public static java.lang.String getProperty(java.lang.String key)
getProperty(String, String)
public static int getIntProperty(java.lang.String key)
getProperty(String)
public static boolean getBooleanProperty(java.lang.String key)
getProperty(String)
public static java.awt.Color getColorProperty(java.lang.String key)
getProperty(String)
public static org.w3c.dom.NodeList getPropertiesList(java.lang.String key)
public static org.w3c.dom.Node getPropertyNode(java.lang.String key)
getPropertiesList(String)
public static void setProperty(java.lang.String key, java.lang.String value, boolean cdata)
key
- The key, where to put the valuevalue
- The value to putcdata
- True if wrapping in CDATA is requiredpublic static void setProperty(java.lang.String key, java.lang.String value)
setProperty(String, String, boolean)
with cdata = false
setProperty(String, String, boolean)
public static boolean loadConfigDocument()
DefaultConfig
public static void saveDocument()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |