public class PropertiesWrapper extends Object implements KeyValueSource
Constructor and Description |
---|
PropertiesWrapper(Map<String,String> properties) |
Modifier and Type | Method and Description |
---|---|
void |
addList(List items,
String propertyPrefix) |
void |
copyTo(Map<Object,Object> target) |
boolean |
getBooleanProperty(String propertyName) |
File |
getFileProperty(String key) |
int |
getIntProperty(String propertyName) |
Long |
getLongProperty(String propertyName) |
Map<String,String> |
getProperties() |
String |
getProperty(String key) |
List<String> |
getStringList(String propertyPrefix) |
TypeEncodedValue |
getTypeEncodedValue(String key)
Retrieves as single object that is persisted with type encoding
|
void |
setAsSystemProperties() |
void |
setClasspath(String prefix,
Classpath classpath) |
void |
setProperty(String key,
String value) |
public void setAsSystemProperties()
public boolean getBooleanProperty(String propertyName)
public int getIntProperty(String propertyName)
public TypeEncodedValue getTypeEncodedValue(String key)
key
- The key for the properypublic void copyTo(Map<Object,Object> target)
copyTo
in interface KeyValueSource
Copyright © 2004–2020 The Apache Software Foundation. All rights reserved.