org.apache.oodt.cas.metadata.util
Class PropertiesUtils

java.lang.Object
  extended by org.apache.oodt.cas.metadata.util.PropertiesUtils

public final class PropertiesUtils
extends Object

Version:
$Revision$

Utility methods for handing property values

.
Author:
bfoster, mattmann

Constructor Summary
PropertiesUtils()
           
 
Method Summary
static String[] getProperties(String property)
          Loads and parses a given property
static String[] getProperties(String property, String[] defaultValues)
          Loads a set of System properties that are specified as comma-delimited strings and returns an array of String values for the specified property.
static String getProperty(String property)
          Loads and parses a given property
static String getProperty(String property, String defaultValue)
          Loads and parses a given property
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PropertiesUtils

public PropertiesUtils()
Method Detail

getProperties

public static String[] getProperties(String property,
                                     String[] defaultValues)
Loads a set of System properties that are specified as comma-delimited strings and returns an array of String values for the specified property.

Parameters:
property - The property to read from the system properties.
defaultValues - A set of default values to use for the property.
Returns:
An array of String property values for the specified property.

getProperties

public static String[] getProperties(String property)
Loads and parses a given property

Parameters:
property - The property to be loaded and parsed
Returns:
A string array of properties values

getProperty

public static String getProperty(String property,
                                 String defaultValue)
Loads and parses a given property

Parameters:
property - The property to read from the system properties.
defaultValues - A default value to use for the property.
Returns:
A string properties value

getProperty

public static String getProperty(String property)
Loads and parses a given property

Parameters:
property - The property to be loaded and parsed
Returns:
A string properties value


Copyright © 1999-2011 Apache Incubator. All Rights Reserved.