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