public class DefaultPreferencesNode extends java.lang.Object implements PreferencesNode
Constructor and Description |
---|
DefaultPreferencesNode() |
DefaultPreferencesNode(java.lang.String nodeName) |
Modifier and Type | Method and Description |
---|---|
void |
clear() |
void |
flush() |
java.lang.String |
get(java.lang.String name,
java.lang.String defaultValue) |
boolean |
getBoolean(java.lang.String name,
boolean defaultValue) |
byte[] |
getByteArray(java.lang.String name,
byte[] defaultValue) |
java.awt.Color |
getColor(java.lang.String name,
java.awt.Color defaultValue) |
double |
getDouble(java.lang.String name,
double defaultValue) |
float |
getFloat(java.lang.String name,
float defaultValue) |
int |
getInt(java.lang.String name,
int defaultValue) |
long |
getLong(java.lang.String name,
long defaultValue) |
protected XMLEntity |
getNode() |
protected XMLEntity |
getRootNode() |
java.lang.String[] |
keys() |
java.lang.String |
name() |
void |
put(java.lang.String name,
java.lang.String value) |
void |
putBoolean(java.lang.String name,
boolean value) |
void |
putByteArray(java.lang.String name,
byte[] value) |
void |
putDouble(java.lang.String name,
double value) |
void |
putFloat(java.lang.String name,
float value) |
void |
putInt(java.lang.String name,
int value) |
void |
putLong(java.lang.String name,
long value) |
void |
remove(java.lang.String name) |
void |
sync() |
public DefaultPreferencesNode()
public DefaultPreferencesNode(java.lang.String nodeName)
protected XMLEntity getRootNode()
protected XMLEntity getNode()
public java.lang.String name()
name
in interface PreferencesNode
public java.lang.String[] keys() throws java.lang.Exception
keys
in interface PreferencesNode
java.lang.Exception
public void clear() throws java.lang.Exception
clear
in interface PreferencesNode
java.lang.Exception
public void flush() throws java.lang.Exception
flush
in interface PreferencesNode
java.lang.Exception
public java.lang.String get(java.lang.String name, java.lang.String defaultValue)
get
in interface PreferencesNode
public boolean getBoolean(java.lang.String name, boolean defaultValue)
getBoolean
in interface PreferencesNode
public byte[] getByteArray(java.lang.String name, byte[] defaultValue)
getByteArray
in interface PreferencesNode
public double getDouble(java.lang.String name, double defaultValue)
getDouble
in interface PreferencesNode
public float getFloat(java.lang.String name, float defaultValue)
getFloat
in interface PreferencesNode
public int getInt(java.lang.String name, int defaultValue)
getInt
in interface PreferencesNode
public long getLong(java.lang.String name, long defaultValue)
getLong
in interface PreferencesNode
public java.awt.Color getColor(java.lang.String name, java.awt.Color defaultValue)
getColor
in interface PreferencesNode
public void put(java.lang.String name, java.lang.String value)
put
in interface PreferencesNode
public void putBoolean(java.lang.String name, boolean value)
putBoolean
in interface PreferencesNode
public void putByteArray(java.lang.String name, byte[] value)
putByteArray
in interface PreferencesNode
public void putDouble(java.lang.String name, double value)
putDouble
in interface PreferencesNode
public void putFloat(java.lang.String name, float value)
putFloat
in interface PreferencesNode
public void putInt(java.lang.String name, int value)
putInt
in interface PreferencesNode
public void putLong(java.lang.String name, long value)
putLong
in interface PreferencesNode
public void remove(java.lang.String name)
remove
in interface PreferencesNode
public void sync() throws java.lang.Exception
sync
in interface PreferencesNode
java.lang.Exception