edu.internet2.middleware.grouperClientExt.edu.internet2.middleware.morphString
Class MorphPropertyFileUtils

java.lang.Object
  extended by edu.internet2.middleware.grouperClientExt.edu.internet2.middleware.morphString.MorphPropertyFileUtils

public class MorphPropertyFileUtils
extends Object

If you need a property file, this will help cache and retrieve properties.

Version:
$Id: MorphPropertyFileUtils.java,v 1.1 2008-11-30 10:57:26 mchyzer Exp $
Author:
mchyzer

Field Summary
static String MORPH_STRING_PROPERTIES
          property file resource name
 
Constructor Summary
MorphPropertyFileUtils()
           
 
Method Summary
static Properties retrieveProperties()
          retrieve a property from the properties file
static Properties retrievePropertiesFromFile(String filePath)
          retrieve a property from the properties file
static boolean retrievePropertyBoolean(String key, boolean defaultValue)
          retrieve a property, it must exist in the properties file
static String retrievePropertyString(String key)
          retrieve a property, it must exist in the properties file
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MORPH_STRING_PROPERTIES

public static final String MORPH_STRING_PROPERTIES
property file resource name

See Also:
Constant Field Values
Constructor Detail

MorphPropertyFileUtils

public MorphPropertyFileUtils()
Method Detail

retrievePropertyBoolean

public static boolean retrievePropertyBoolean(String key,
                                              boolean defaultValue)
retrieve a property, it must exist in the properties file

Parameters:
key -
defaultValue -
Returns:
the property value

retrievePropertyString

public static String retrievePropertyString(String key)
retrieve a property, it must exist in the properties file

Parameters:
key -
Returns:
the property value or null if not found

retrieveProperties

public static Properties retrieveProperties()
retrieve a property from the properties file

Returns:
the value

retrievePropertiesFromFile

public static Properties retrievePropertiesFromFile(String filePath)
retrieve a property from the properties file

Parameters:
filePath -
Returns:
the value


Copyright © 2010 Internet2. All Rights Reserved.