public final class PropertyMap extends Object implements Serializable
Constructor and Description |
---|
PropertyMap() |
Modifier and Type | Method and Description |
---|---|
Properties |
asProperties()
Return as standard Properties.
|
static Properties |
defaultProperties() |
Set<Map.Entry<String,String>> |
entrySet()
Return the entries.
|
String |
eval(String val)
Returns the value with expressions like ${home} evaluated using system properties and environment variables.
|
void |
evaluateProperties()
Go through all the properties and evaluate any expressions that have not
been resolved.
|
String |
get(String key)
Return the property value returning null if there is no value defined.
|
String |
get(String key,
String defaultValue)
Return the string property value with a given default.
|
boolean |
getBoolean(String key,
boolean defaultValue)
Return the boolean property value with a given default.
|
int |
getInt(String key,
int defaultValue)
Return the int property value with a given default.
|
long |
getLong(String key,
long defaultValue)
Return the long property value with a given default.
|
static boolean |
loadTestProperties() |
String |
put(String key,
String value)
Put a single key value with no expression evaluation.
|
String |
putEval(String key,
String value)
Put a single key value evaluating any expressions in the value.
|
void |
putEvalAll(Map<String,String> keyValueMap)
Put all evaluating any expressions in the values.
|
String |
remove(String key)
Remove an entry.
|
static Properties |
testProperties()
Return properties loaded from test-ebean.properties.
|
String |
toString() |
public PropertyMap()
public static Properties testProperties()
public static Properties defaultProperties()
public static boolean loadTestProperties()
public Properties asProperties()
public void evaluateProperties()
public String eval(String val)
public boolean getBoolean(String key, boolean defaultValue)
public int getInt(String key, int defaultValue)
public long getLong(String key, long defaultValue)
public String get(String key, String defaultValue)
public String get(String key)
public void putEvalAll(Map<String,String> keyValueMap)
public String putEval(String key, String value)
public String put(String key, String value)
Copyright © 2017. All rights reserved.