A PropertyResolver is responsible for resolving properties of resolved variables.
Example: For the expression
"${user.age}" a
VariableResolver will be requested to resolve the variable
"user".
The
age property will then be resolved by a PropertyResolver.
The term
property may be interpreted in any way. You could, for example,
implement a PropertyResolver for
DisplayObjectContainers and use the
"property" name as a parameter for
getChildByName.
public function resolveProperty(baseObject:Object, propertyName:String):*
Resolves the property with the specified name in the given base object.
The term "property" may be loosely interpreted and does not necessarily
have to refer to a real property in the base object. If the property cannot be resolved
this method should return undefined.
Parameters
| baseObject:Object — the object to extract the property from
|
| |
| propertyName:String — the name of the property to resolve
|
Returns | * — the resolved property value or undefined if
the variable cannot be resolved
|
Mon Feb 6 2012, 01:04 AM +01:00