ERXSystem Class Reference

Inherits com::webobjects::foundation::NSKeyValueCoding, and com::webobjects::foundation::NSKeyValueCodingAdditions.

Collaboration diagram for ERXSystem:

Collaboration graph
[legend]

List of all members.

Public Member Functions

void takeValueForKey (Object value, String key)
void takeValueForKeyPath (Object value, String key)
Object valueForKey (String key)
Object valueForKeyPath (String key)

Static Public Member Functions

static void convertProperties (Properties originalProperties, Properties destinationProperties)
static Properties getProperties ()
static String getProperty (String key, String defaultValue)
static String getProperty (String key)
static void updateProperties ()

Private Member Functions

 ERXSystem ()

Static Private Attributes

static ERXSystem sharedInstance = new ERXSystem()


Detailed Description

ERXSystem provides support for variable replacement in Properties with

@key@ references in values. Additionally, it provides an NSKVC implementation on top of System properties.

Author:
david teran

Constructor & Destructor Documentation

ERXSystem (  )  [private]

Constructs an ERXSystem


Member Function Documentation

static void convertProperties ( Properties  originalProperties,
Properties  destinationProperties 
) [static]

Converts the property names defined in originalProperties with the ERXSystem.getProperty(..) method and puts the resulting values into the destinationProperties.

Parameters:
originalProperties the properties to convert
destinationProperties the properties to copy into

static Properties getProperties (  )  [static]

Returns a copy of NSProperties._getProperties() that has been passed variable evaluation.

Returns:
a converted copy of NSProperties._getProperties()

static String getProperty ( String  key,
String  defaultValue 
) [static]

Retrieves the value of the given key from the ERXSystem properties store, return defaultValue if the key does not exist.

Parameters:
key the key to lookup
defaultValue the default value to return
Returns:
the corresponding value or defaultValue if the key doesn't exist

static String getProperty ( String  key  )  [static]

Looks up the given key in the ERXSystem properties, converts any property variables, and returns the converted value.

Parameters:
key the key to lookup
Returns:
the converted value

void takeValueForKey ( Object  value,
String  key 
)

void takeValueForKeyPath ( Object  value,
String  key 
)

static void updateProperties (  )  [static]

Converts and evaluates the properties from NSProperties._getProperties() and replaces the converted values in-place.

Object valueForKey ( String  key  ) 

Object valueForKeyPath ( String  key  ) 


Member Data Documentation

ERXSystem sharedInstance = new ERXSystem() [static, private]

The singleton instance to share.


The documentation for this class was generated from the following file:

Generated on Sat May 26 06:43:15 2012 for Project Wonder by  doxygen 1.5.8