public class PropertyReader
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
SCHEDULING |
static java.lang.String |
YAWL |
Modifier and Type | Method and Description |
---|---|
boolean |
getBooleanProperty(java.lang.String propFile,
java.lang.String key)
Gets a boolean type property value from a .properties file
|
static PropertyReader |
getInstance() |
int |
getIntProperty(java.lang.String propFile,
java.lang.String key)
Gets an integer type property value from a .properties file
|
long |
getLongProperty(java.lang.String propFile,
java.lang.String key)
Gets a long type property value from a .properties file
|
java.lang.String |
getProperty(java.lang.String propFile,
java.lang.String key)
Gets a property value from a .properties file
|
java.lang.String |
getSchedulingProperty(java.lang.String key)
Gets a property value from the yawl.properties file
|
java.lang.String |
getYAWLProperty(java.lang.String key)
Gets a property value from the yawl.properties file
|
public static final java.lang.String YAWL
public static final java.lang.String SCHEDULING
public static PropertyReader getInstance()
public java.lang.String getProperty(java.lang.String propFile, java.lang.String key) throws java.io.IOException
propFile
- the name of the .properties filekey
- the property key to get the value forjava.io.IOException
- if the file can't be loaded or if it doesn't contain the keypublic java.lang.String getYAWLProperty(java.lang.String key) throws java.io.IOException
key
- the property key to get the value forjava.io.IOException
- if the file can't be loaded or if it doesn't contain the keypublic java.lang.String getSchedulingProperty(java.lang.String key) throws java.io.IOException
key
- the property key to get the value forjava.io.IOException
- if the file can't be loaded or if it doesn't contain the keypublic boolean getBooleanProperty(java.lang.String propFile, java.lang.String key) throws java.io.IOException
propFile
- the name of the .properties filekey
- the property key to get the value forjava.io.IOException
- if the file can't be loaded or if it doesn't contain the keypublic int getIntProperty(java.lang.String propFile, java.lang.String key) throws java.io.IOException
propFile
- the name of the .properties filekey
- the property key to get the value forjava.io.IOException
- if the file can't be loaded or if it doesn't contain the key
or the value is not a valid integerpublic long getLongProperty(java.lang.String propFile, java.lang.String key) throws java.io.IOException
propFile
- the name of the .properties filekey
- the property key to get the value forjava.io.IOException
- if the file can't be loaded or if it doesn't contain the key
or the value is not a valid longCopyright © 2004-2014 The YAWL Foundation.