eu.scape_project.xa.tw.util
Class PropertyUtil
java.lang.Object
eu.scape_project.xa.tw.util.PropertyUtil
public class PropertyUtil
- extends Object
PropertyUtils
- Version:
- 0.3
- Author:
- shsdev https://github.com/shsdev
Constructor Summary |
PropertyUtil(String propertiesFile)
Construct the property utils object from the properties file |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PropertyUtil
public PropertyUtil(String propertiesFile)
throws GeneratorException
- Construct the property utils object from the properties file
- Parameters:
propertiesFile
- a string path to a properties file
- Throws:
GeneratorException
getKeyValuePairs
public Map<String,String> getKeyValuePairs()
- Returns:
- the properties key value pair map
getProp
public String getProp(String key)
- get a property value by key
- Parameters:
key
- the property key
- Returns:
- the property value
Copyright © 2013. All Rights Reserved.