public class ObjectProperties extends Properties
defaults| Constructor and Description |
|---|
ObjectProperties() |
ObjectProperties(Properties defaults) |
| Modifier and Type | Method and Description |
|---|---|
Outcome |
convertToOutcome(String processName)
Convert the properties to an XML using SystemProperties.xsd.
|
void |
dumpProps(int logLevel) |
boolean |
getBoolean(String aPropertyName)
ogattaz proposal
|
boolean |
getBoolean(String aPropertyName,
boolean defaultValue)
ogattaz proposal
|
Object |
getInstance(String propName) |
Object |
getInstance(String propName,
Object defaultVal) |
ArrayList<?> |
getInstances(String propName) |
ArrayList<?> |
getInstances(String propName,
Object defaultVal) |
int |
getInt(String aPropertyName)
ogattaz proposal
|
int |
getInt(String aPropertyName,
int defaultValue)
ogattaz proposal
|
Object |
getObject(String propName)
ogattaz proposal
|
Object |
getObject(String propName,
Object defaultValue)
ogattaz proposal
|
String |
getString(String propName) |
String |
getString(String propName,
String defaultValue) |
void |
setProperty(String aPropertyName,
Object aPropertyValue)
Allow setting of properties as Objects
|
getProperty, getProperty, list, list, load, load, loadFromXML, propertyNames, save, setProperty, store, store, storeToXML, storeToXML, stringPropertyNamesclear, clone, compute, computeIfAbsent, computeIfPresent, contains, containsKey, containsValue, elements, entrySet, equals, forEach, get, getOrDefault, hashCode, isEmpty, keys, keySet, merge, put, putAll, putIfAbsent, rehash, remove, remove, replace, replace, replaceAll, size, toString, valuespublic ObjectProperties()
public ObjectProperties(Properties defaults)
public Object getObject(String propName)
propName - the name of the propertypublic Object getObject(String propName, Object defaultValue)
propName - the name of the propertydefaultValue - the default value.public boolean getBoolean(String aPropertyName)
aPropertyName - the name of the paropertypublic boolean getBoolean(String aPropertyName, boolean defaultValue)
aPropertyName - the name of the parameter stored in the clc filedefaultValue - the default valuepublic int getInt(String aPropertyName)
aPropertyName - the name of the propertypublic int getInt(String aPropertyName, int defaultValue)
aPropertyName - the name of the propertydefaultValue - the default valuepublic void setProperty(String aPropertyName, Object aPropertyValue)
aPropertyName - the name of the propertyaPropertyValue - the value of the propertypublic void dumpProps(int logLevel)
public Object getInstance(String propName, Object defaultVal) throws InstantiationException, IllegalAccessException, ClassNotFoundException
public Object getInstance(String propName) throws InstantiationException, IllegalAccessException, ClassNotFoundException
public ArrayList<?> getInstances(String propName, Object defaultVal) throws InstantiationException, IllegalAccessException, ClassNotFoundException
public ArrayList<?> getInstances(String propName) throws InstantiationException, IllegalAccessException, ClassNotFoundException
public Outcome convertToOutcome(String processName) throws IOException, InvalidDataException, ObjectNotFoundException
processName - the name of process of which properties are convertedIOException - could not load MVEL template from classpathObjectNotFoundException - SystemProperties Schema v0 was not foundInvalidDataException - The Schema is invalidCopyright © 1997–2020 CRISTAL-iSE. All rights reserved.