|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.util.Dictionary java.util.Hashtable java.util.Properties net.sf.cpsolver.ifs.util.DataProperties
public class DataProperties
Data properties.
Field Summary |
---|
Fields inherited from class java.util.Properties |
---|
defaults |
Constructor Summary | |
---|---|
DataProperties()
Constructor |
|
DataProperties(Dictionary properties)
Constructor |
|
DataProperties(Properties defaults)
Constructor |
Method Summary | |
---|---|
boolean |
containsPropery(String key)
Returns true if there is such property |
void |
expand()
|
String |
getProperty(String key,
String defaultValue)
Returns string property |
boolean |
getPropertyBoolean(String key,
boolean defaultValue)
Returns boolean property |
Boolean |
getPropertyBoolean(String key,
Boolean defaultValue)
Returns boolean property |
double |
getPropertyDouble(String key,
double defaultValue)
Returns double property |
Double |
getPropertyDouble(String key,
Double defaultValue)
Returns double property |
float |
getPropertyFloat(String key,
float defaultValue)
Returns float property |
Float |
getPropertyFloat(String key,
Float defaultValue)
Returns float property |
int |
getPropertyInt(String key,
int defaultValue)
Returns int property |
Integer |
getPropertyInteger(String key,
Integer defaultValue)
Returns int property |
Integer[] |
getPropertyIntegerArry(String key,
Integer[] defaultValue)
|
long |
getPropertyLong(String key,
long defaultValue)
Returns long property |
Long |
getPropertyLong(String key,
Long defaultValue)
Returns long property |
Long[] |
getPropertyLongArry(String key,
Long[] defaultValue)
|
void |
load(InputStream inputStream)
Loads properties from an input stream |
void |
setProperty(String key,
Object[] value)
|
Object |
setProperty(String key,
String value)
Sets string property |
Dictionary |
toDict()
Returns properties as dictionary. |
Methods inherited from class java.util.Properties |
---|
getProperty, list, list, load, loadFromXML, propertyNames, save, store, store, storeToXML, storeToXML, stringPropertyNames |
Methods inherited from class java.util.Hashtable |
---|
clear, clone, contains, containsKey, containsValue, elements, entrySet, equals, get, hashCode, isEmpty, keys, keySet, put, putAll, rehash, remove, size, toString, values |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public DataProperties()
public DataProperties(Properties defaults)
defaults
- default propertiespublic DataProperties(Dictionary properties)
properties
- default propertiesMethod Detail |
---|
public String getProperty(String key, String defaultValue)
getProperty
in class Properties
key
- keydefaultValue
- default value to be returned when such property is not presentpublic Object setProperty(String key, String value)
setProperty
in class Properties
key
- keyvalue
- valuepublic int getPropertyInt(String key, int defaultValue)
key
- keydefaultValue
- default value to be returned when such property is not presentpublic long getPropertyLong(String key, long defaultValue)
key
- keydefaultValue
- default value to be returned when such property is not presentpublic Integer getPropertyInteger(String key, Integer defaultValue)
key
- keydefaultValue
- default value to be returned when such property is not presentpublic Long getPropertyLong(String key, Long defaultValue)
key
- keydefaultValue
- default value to be returned when such property is not presentpublic boolean containsPropery(String key)
key
- keypublic boolean getPropertyBoolean(String key, boolean defaultValue)
key
- keydefaultValue
- default value to be returned when such property is not presentpublic double getPropertyDouble(String key, double defaultValue)
key
- keydefaultValue
- default value to be returned when such property is not presentpublic float getPropertyFloat(String key, float defaultValue)
key
- keydefaultValue
- default value to be returned when such property is not presentpublic Boolean getPropertyBoolean(String key, Boolean defaultValue)
key
- keydefaultValue
- default value to be returned when such property is not presentpublic Double getPropertyDouble(String key, Double defaultValue)
key
- keydefaultValue
- default value to be returned when such property is not presentpublic Float getPropertyFloat(String key, Float defaultValue)
key
- keydefaultValue
- default value to be returned when such property is not presentpublic void setProperty(String key, Object[] value)
public Long[] getPropertyLongArry(String key, Long[] defaultValue)
public Integer[] getPropertyIntegerArry(String key, Integer[] defaultValue)
public Dictionary toDict()
public void expand()
public void load(InputStream inputStream) throws IOException
load
in class Properties
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |