public class PropertiesWrapper extends java.lang.Object implements KeyValueSource
Modifier and Type | Field and Description |
---|---|
private java.util.Map<java.lang.String,java.lang.String> |
properties |
Constructor and Description |
---|
PropertiesWrapper(java.util.Map<java.lang.String,java.lang.String> properties) |
Modifier and Type | Method and Description |
---|---|
void |
addList(java.util.List items,
java.lang.String propertyPrefix) |
void |
copyTo(java.util.Map<java.lang.Object,java.lang.Object> target) |
boolean |
getBooleanProperty(java.lang.String propertyName) |
(package private) Classpath |
getClasspath(java.lang.String prefix) |
java.io.File |
getFileProperty(java.lang.String key) |
int |
getIntProperty(java.lang.String propertyName) |
java.util.Map<java.lang.String,java.lang.String> |
getProperties() |
java.lang.String |
getProperty(java.lang.String key) |
java.util.List<java.lang.String> |
getStringList(java.lang.String propertyPrefix) |
TypeEncodedValue |
getTypeEncodedValue(java.lang.String key)
Retrieves as single object that is persisted with type encoding
|
void |
setAsSystemProperties() |
void |
setClasspath(java.lang.String prefix,
Classpath classpath) |
void |
setProperty(java.lang.String key,
java.lang.String value) |
public PropertiesWrapper(java.util.Map<java.lang.String,java.lang.String> properties)
public java.util.Map<java.lang.String,java.lang.String> getProperties()
public void setAsSystemProperties()
public java.lang.String getProperty(java.lang.String key)
public boolean getBooleanProperty(java.lang.String propertyName)
public int getIntProperty(java.lang.String propertyName)
public java.io.File getFileProperty(java.lang.String key)
public java.util.List<java.lang.String> getStringList(java.lang.String propertyPrefix)
public TypeEncodedValue getTypeEncodedValue(java.lang.String key)
key
- The key for the properyClasspath getClasspath(java.lang.String prefix)
public void setClasspath(java.lang.String prefix, Classpath classpath)
public void setProperty(java.lang.String key, java.lang.String value)
public void addList(java.util.List items, java.lang.String propertyPrefix)
public void copyTo(java.util.Map<java.lang.Object,java.lang.Object> target)
copyTo
in interface KeyValueSource