org.igfay.util
Class PropertyUtility

java.lang.Object
  extended byorg.igfay.util.PropertyUtility

public class PropertyUtility
extends java.lang.Object

Description of the Class

Author:
bconrad

Constructor Summary
PropertyUtility()
          Constructor for the PropertyUtility object
 
Method Summary
static void addCommandLineProperties(java.lang.String[] args)
          addCommandLineProperties: Add properties from -D flags on the command line.
static void addPropertiesFromParameters(java.applet.Applet applet)
          addPropertiesFromParameters Add properties from applet tags
static java.lang.String getFileSeparator()
          Gets the FileSeparator attribute of the Utility class
static java.lang.String getHostName()
           
static java.lang.String getOSString()
           
static java.lang.String getProperty(java.lang.String propertyName)
          getProperty() General utility to return the value of a given property.
static java.lang.String getProperty(java.lang.String propertyName, java.lang.String defaultValue)
          getProperty General utility to return the value of a given property.
static java.lang.String getShortHostName()
           
static boolean isNeedingWindowsFileSeparator(java.lang.String aDirectory)
           
static boolean isWindows()
           
static void listProperties()
          listProperties List System Properties for debugging purposes.
static void main(java.lang.String[] args)
           
static void processSelectedProperties()
          Description of the Method
static boolean propertyEquals(java.lang.String propertyName, java.lang.String value)
          propertyEquals
static void replaceProperty(java.lang.String keyWord, java.lang.String valueString)
          replaceProperty replace a user passed string to the System Properties hashtable.
static void setProperty(java.lang.String keyWord, java.lang.String value)
          Set a user passed string to the System Properties hashtable.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PropertyUtility

public PropertyUtility()
Constructor for the PropertyUtility object

Method Detail

addCommandLineProperties

public static void addCommandLineProperties(java.lang.String[] args)
addCommandLineProperties: Add properties from -D flags on the command line.

Parameters:
args - The feature to be added to the CommandLineProperties attribute

addPropertiesFromParameters

public static void addPropertiesFromParameters(java.applet.Applet applet)
addPropertiesFromParameters Add properties from applet tags

Parameters:
applet - The feature to be added to the PropertiesFromParameters attribute

listProperties

public static void listProperties()
listProperties List System Properties for debugging purposes.


processSelectedProperties

public static void processSelectedProperties()
Description of the Method


propertyEquals

public static boolean propertyEquals(java.lang.String propertyName,
                                     java.lang.String value)
propertyEquals

Parameters:
propertyName - Description of Parameter
value - Description of Parameter
Returns:
Description of the Returned Value

replaceProperty

public static void replaceProperty(java.lang.String keyWord,
                                   java.lang.String valueString)
replaceProperty replace a user passed string to the System Properties hashtable.

Parameters:
keyWord - Description of Parameter
valueString - Description of Parameter

getProperty

public static java.lang.String getProperty(java.lang.String propertyName)
getProperty() General utility to return the value of a given property. Returns null if not found.

Parameters:
propertyName - Description of Parameter
Returns:
The Property value

getProperty

public static java.lang.String getProperty(java.lang.String propertyName,
                                           java.lang.String defaultValue)
getProperty General utility to return the value of a given property. Returns default value if not found.

Parameters:
propertyName - Description of Parameter
defaultValue - Description of Parameter
Returns:
The Property value

getHostName

public static java.lang.String getHostName()

getOSString

public static java.lang.String getOSString()

getShortHostName

public static java.lang.String getShortHostName()

getFileSeparator

public static java.lang.String getFileSeparator()
Gets the FileSeparator attribute of the Utility class

Returns:
The FileSeparator value

isNeedingWindowsFileSeparator

public static boolean isNeedingWindowsFileSeparator(java.lang.String aDirectory)

isWindows

public static boolean isWindows()

setProperty

public static void setProperty(java.lang.String keyWord,
                               java.lang.String value)
Set a user passed string to the System Properties hashtable.

Parameters:
keyWord - The new Property value
value - The new Property value

main

public static void main(java.lang.String[] args)