|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.dmonix.xml.XMLPropertyHandler
Copyright: Copyright (c) 2003
Company: dmonix.org
| Field Summary | |
protected static org.w3c.dom.Document |
properties
|
| Constructor Summary | |
XMLPropertyHandler()
|
|
| Method Summary | |
static boolean |
getBooleanProperty(java.lang.String property)
Get the value of a Boolean property. |
static boolean |
getBooleanProperty(java.lang.String property,
boolean defaultValue)
Get the value of a Boolean property. |
static java.lang.String |
getProperty(java.lang.String property)
Get the value of an property. |
static java.lang.String |
getProperty(java.lang.String property,
java.lang.String defaultValue)
Get the value of an property. |
static boolean |
parsePropertyFile(java.io.File file)
|
static void |
savePropertyFile(java.io.File file)
|
static void |
setProperty(java.lang.String name,
boolean value,
boolean append)
Set a property value |
static void |
setProperty(java.lang.String name,
int value,
boolean append)
|
static void |
setProperty(java.lang.String name,
long value,
boolean append)
|
static void |
setProperty(java.lang.String name,
java.lang.String value,
boolean append)
|
static void |
setTransformerProperty(java.lang.String name,
java.lang.String value)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected static org.w3c.dom.Document properties
| Constructor Detail |
public XMLPropertyHandler()
| Method Detail |
public static boolean getBooleanProperty(java.lang.String property,
boolean defaultValue)
property - The name of the property to getdefaultValue - The value to return if the method fails
public static boolean getBooleanProperty(java.lang.String property)
property - The name of the property to get
public static java.lang.String getProperty(java.lang.String property)
property - The name of the property to get
public static java.lang.String getProperty(java.lang.String property,
java.lang.String defaultValue)
property - The name of the property to getdefaultValue - The value to return if the method fails
public static boolean parsePropertyFile(java.io.File file)
public static void savePropertyFile(java.io.File file)
public static void setProperty(java.lang.String name,
boolean value,
boolean append)
name - The name of the propertyvalue - The value of the propertyappend -
public static void setProperty(java.lang.String name,
int value,
boolean append)
public static void setProperty(java.lang.String name,
long value,
boolean append)
public static void setProperty(java.lang.String name,
java.lang.String value,
boolean append)
public static void setTransformerProperty(java.lang.String name,
java.lang.String value)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||