eu.scape_project.xa.tw.util
Class PropertyUtil

java.lang.Object
  extended by 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
 
Method Summary
 Map<String,String> getKeyValuePairs()
           
 String getProp(String key)
          get a property value by key
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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
Method Detail

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.