|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.netbeans.api.debugger.Properties
Utility class hepls store properties.
Nested Class Summary | |
static interface |
Properties.Reader
This class helps to store and read custom types using setObject(java.lang.String, java.lang.Object) and getObject(java.lang.String, java.lang.Object) methods. |
Constructor Summary | |
Properties()
|
Method Summary | |
abstract Object[] |
getArray(String propertyName,
Object[] defaultValue)
Reads array property from storage. |
abstract boolean |
getBoolean(String propertyName,
boolean defaultValue)
Reads boolean property from storage. |
abstract byte |
getByte(String propertyName,
byte defaultValue)
Reads byte property from storage. |
abstract char |
getChar(String propertyName,
char defaultValue)
Reads char property from storage. |
abstract Collection |
getCollection(String propertyName,
Collection defaultValue)
Reads Collection property from storage. |
static Properties |
getDefault()
Returns shared instance of Properties class. |
abstract double |
getDouble(String propertyName,
double defaultValue)
Reads double property from storage. |
abstract float |
getFloat(String propertyName,
float defaultValue)
Reads float property from storage. |
abstract int |
getInt(String propertyName,
int defaultValue)
Reads int property from storage. |
abstract long |
getLong(String propertyName,
long defaultValue)
Reads long property from storage. |
abstract Map |
getMap(String propertyName,
Map defaultValue)
Reads Map property from storage. |
abstract Object |
getObject(String propertyName,
Object defaultValue)
Reads Object property from storage. |
abstract Properties |
getProperties(String propertyName)
Returns Properties instance for some "subfolder" in properties file. |
abstract short |
getShort(String propertyName,
short defaultValue)
Reads short property from storage. |
abstract String |
getString(String propertyName,
String defaultValue)
Reads String property from storage. |
abstract void |
setArray(String propertyName,
Object[] value)
Sets a new value of property with given propertyName. |
abstract void |
setBoolean(String propertyName,
boolean value)
Sets a new value of property with given propertyName. |
abstract void |
setByte(String propertyName,
byte value)
Sets a new value of property with given propertyName. |
abstract void |
setChar(String propertyName,
char value)
Sets a new value of property with given propertyName. |
abstract void |
setCollection(String propertyName,
Collection value)
Sets a new value of property with given propertyName. |
abstract void |
setDouble(String propertyName,
double value)
Sets a new value of property with given propertyName. |
abstract void |
setFloat(String propertyName,
float value)
Sets a new value of property with given propertyName. |
abstract void |
setInt(String propertyName,
int value)
Sets a new value of property with given propertyName. |
abstract void |
setLong(String propertyName,
long value)
Sets a new value of property with given propertyName. |
abstract void |
setMap(String propertyName,
Map value)
Sets a new value of property with given propertyName. |
abstract void |
setObject(String propertyName,
Object value)
Sets a new value of property with given propertyName. |
abstract void |
setShort(String propertyName,
short value)
Sets a new value of property with given propertyName. |
abstract void |
setString(String propertyName,
String value)
Sets a new value of property with given propertyName. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Properties()
Method Detail |
public static Properties getDefault()
public abstract String getString(String propertyName, String defaultValue)
propertyName
- a propertyName of propertydefaultValue
- a default value to be used if property is not set
public abstract void setString(String propertyName, String value)
propertyName
- a propertyName of propertyvalue
- the new value of propertypublic abstract int getInt(String propertyName, int defaultValue)
propertyName
- a propertyName of propertydefaultValue
- a default value to be used if property is not set
public abstract void setInt(String propertyName, int value)
propertyName
- a propertyName of propertyvalue
- the new value of propertypublic abstract char getChar(String propertyName, char defaultValue)
propertyName
- a propertyName of propertydefaultValue
- a default value to be used if property is not set
public abstract void setChar(String propertyName, char value)
propertyName
- a propertyName of propertyvalue
- the new value of propertypublic abstract float getFloat(String propertyName, float defaultValue)
propertyName
- a propertyName of propertydefaultValue
- a default value to be used if property is not set
public abstract void setFloat(String propertyName, float value)
propertyName
- a propertyName of propertyvalue
- the new value of propertypublic abstract long getLong(String propertyName, long defaultValue)
propertyName
- a propertyName of propertydefaultValue
- a default value to be used if property is not set
public abstract void setLong(String propertyName, long value)
propertyName
- a propertyName of propertyvalue
- the new value of propertypublic abstract double getDouble(String propertyName, double defaultValue)
propertyName
- a propertyName of propertydefaultValue
- a default value to be used if property is not set
public abstract void setDouble(String propertyName, double value)
propertyName
- a propertyName of propertyvalue
- the new value of propertypublic abstract boolean getBoolean(String propertyName, boolean defaultValue)
propertyName
- a propertyName of propertydefaultValue
- a default value to be used if property is not set
public abstract void setBoolean(String propertyName, boolean value)
propertyName
- a propertyName of propertyvalue
- the new value of propertypublic abstract byte getByte(String propertyName, byte defaultValue)
propertyName
- a propertyName of propertydefaultValue
- a default value to be used if property is not set
public abstract void setByte(String propertyName, byte value)
propertyName
- a propertyName of propertyvalue
- the new value of propertypublic abstract short getShort(String propertyName, short defaultValue)
propertyName
- a propertyName of propertydefaultValue
- a default value to be used if property is not set
public abstract void setShort(String propertyName, short value)
propertyName
- a propertyName of propertyvalue
- the new value of propertypublic abstract Object getObject(String propertyName, Object defaultValue)
propertyName
- a propertyName of propertydefaultValue
- a default value to be used if property is not set
public abstract void setObject(String propertyName, Object value)
propertyName
- a propertyName of propertyvalue
- the new value of propertypublic abstract Object[] getArray(String propertyName, Object[] defaultValue)
propertyName
- a propertyName of propertydefaultValue
- a default value to be used if property is not set
public abstract void setArray(String propertyName, Object[] value)
propertyName
- a propertyName of propertyvalue
- the new value of propertypublic abstract Collection getCollection(String propertyName, Collection defaultValue)
propertyName
- a propertyName of propertydefaultValue
- a default value to be used if property is not set
public abstract void setCollection(String propertyName, Collection value)
propertyName
- a propertyName of propertyvalue
- the new value of propertypublic abstract Map getMap(String propertyName, Map defaultValue)
propertyName
- a propertyName of propertydefaultValue
- a default value to be used if property is not set
public abstract void setMap(String propertyName, Map value)
propertyName
- a propertyName of propertyvalue
- the new value of propertypublic abstract Properties getProperties(String propertyName)
propertyName
- a subfolder name
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |