public class ERXSystem extends Object implements com.webobjects.foundation.NSKeyValueCoding, com.webobjects.foundation.NSKeyValueCodingAdditions
com.webobjects.foundation.NSKeyValueCodingAdditions.DefaultImplementation, com.webobjects.foundation.NSKeyValueCodingAdditions.Utilitycom.webobjects.foundation.NSKeyValueCoding._BooleanFieldBinding, com.webobjects.foundation.NSKeyValueCoding._BooleanMethodBinding, com.webobjects.foundation.NSKeyValueCoding._FieldBinding, com.webobjects.foundation.NSKeyValueCoding._ForwardingBinding, com.webobjects.foundation.NSKeyValueCoding._KeyBinding, com.webobjects.foundation.NSKeyValueCoding._KeyBindingCreation, com.webobjects.foundation.NSKeyValueCoding._MethodBinding, com.webobjects.foundation.NSKeyValueCoding._NumberFieldBinding, com.webobjects.foundation.NSKeyValueCoding._NumberMethodBinding, com.webobjects.foundation.NSKeyValueCoding._ReflectionKeyBindingCreation, com.webobjects.foundation.NSKeyValueCoding.ErrorHandling, com.webobjects.foundation.NSKeyValueCoding.MapImplementation, com.webobjects.foundation.NSKeyValueCoding.Null<T>, com.webobjects.foundation.NSKeyValueCoding.UnknownKeyException, com.webobjects.foundation.NSKeyValueCoding.ValueAccessor| Modifier and Type | Method and Description |
|---|---|
static void |
convertProperties(Properties originalProperties,
Properties destinationProperties)
Converts the property names defined in originalProperties with the
ERXSystem.getProperty(..) method and puts the resulting values into the
destinationProperties.
|
static Properties |
getProperties()
Returns a copy of NSProperties._getProperties() that has been passed
variable evaluation.
|
static String |
getProperty(String key)
Looks up the given key in the ERXSystem properties, converts any property
variables, and returns the converted value.
|
static String |
getProperty(String key,
Properties properties)
Looks up the given key in the given properties, converts any property
variables, and returns the converted value.
|
static String |
getProperty(String key,
String defaultValue)
Retrieves the value of the given key from the ERXSystem properties store,
return defaultValue if the key does not exist.
|
void |
takeValueForKey(Object value,
String key) |
void |
takeValueForKeyPath(Object value,
String key) |
static void |
updateProperties()
Converts and evaluates the properties from NSProperties._getProperties() and replaces
the converted values in-place.
|
static void |
updateProperties(Properties properties)
Converts and evaluates the properties from the given properties and replaces
the converted values in-place.
|
Object |
valueForKey(String key) |
Object |
valueForKeyPath(String key) |
public static String getProperty(String key)
key - the key to lookuppublic static String getProperty(String key, Properties properties)
key - the key to lookupproperties - The given propertiespublic static String getProperty(String key, String defaultValue)
key - the key to lookupdefaultValue - the default value to returnpublic static void convertProperties(Properties originalProperties, Properties destinationProperties)
originalProperties - the properties to convertdestinationProperties - the properties to copy intopublic static Properties getProperties()
public static void updateProperties()
public static void updateProperties(Properties properties)
properties - the properties to convert and evaluatepublic Object valueForKey(String key)
valueForKey in interface com.webobjects.foundation.NSKeyValueCodingpublic void takeValueForKey(Object value, String key)
takeValueForKey in interface com.webobjects.foundation.NSKeyValueCodingpublic Object valueForKeyPath(String key)
valueForKeyPath in interface com.webobjects.foundation.NSKeyValueCodingAdditionsCopyright © 2002 – 2020 Project Wonder.