public class ERXSystem extends Object implements NSKeyValueCoding, NSKeyValueCodingAdditions
NSKeyValueCodingAdditions.DefaultImplementation, NSKeyValueCodingAdditions.Utility
NSKeyValueCoding._BooleanFieldBinding, NSKeyValueCoding._BooleanMethodBinding, NSKeyValueCoding._FieldBinding, NSKeyValueCoding._ForwardingBinding, NSKeyValueCoding._KeyBinding, NSKeyValueCoding._KeyBindingCreation, NSKeyValueCoding._MethodBinding, NSKeyValueCoding._NumberFieldBinding, NSKeyValueCoding._NumberMethodBinding, NSKeyValueCoding._ReflectionKeyBindingCreation, NSKeyValueCoding.ErrorHandling, NSKeyValueCoding.MapImplementation, NSKeyValueCoding.Null<T>, NSKeyValueCoding.UnknownKeyException, NSKeyValueCoding.ValueAccessor
_CLASS, _KeyPathSeparatorChar, KeyPathSeparator
NullValue
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 NSKeyValueCoding
public void takeValueForKey(Object value, String key)
takeValueForKey
in interface NSKeyValueCoding
public Object valueForKeyPath(String key)
valueForKeyPath
in interface NSKeyValueCodingAdditions
public void takeValueForKeyPath(Object value, String key)
takeValueForKeyPath
in interface NSKeyValueCodingAdditions
Copyright © 2002 – 2024 Project Wonder.