AccessorComposer
| Kind of class: | public interface |
|---|---|
| Package: | com.bourre.core |
| Inherits from: | none |
| Implemented by: | |
| Author: | Cédric Néhémie |
| Classpath: | com.bourre.core.AccessorComposer |
| File last modified: | Saturday, 19 January 2008, 10:10:26 |
The
rules to create abstract access to properties or methods
of an object. That interface allow multi-tweens to get
and set both properties and methods of an object in a
transparent way.
AccessorComposer interface defines commonrules to create abstract access to properties or methods
of an object. That interface allow multi-tweens to get
and set both properties and methods of an object in a
transparent way.
An AccessorComposer could access as many properties
or getter/setter pair of methods as needed. Accessorinstance are composed by a AccessorComposer instance
according to passed-in parameters.
In order to the accessor to get or set value with methods, an accessor
must know both getter and setter methods name. If one of these information
is not available, the accessor must throw an exception in order to prevent
the tween to work on unavailable data.
Note : Of course, only public members of the target object could be accessed
by an accessor instance.
See also:
- Accessor
- com.bourre.transitions.AbstractTween
Summary
Instance methods
- getValue : Array
- Retreives the values from all target members acceeded
- setValue (values:Array) : void
- Defines the new values for all targets properties and methods.
- getTarget : Object
- Returns the target object onto which this accessor
- getGetterHelper : Array
- Returns the string name of all getters access used
- getSetterHelper : Array
- Returns the string name of all setters access used
Instance methods
getGetterHelper
public function getGetterHelper (
) : Array
Returns the string name of all getters access used
by this accessor to retreive data from its target
object.
by this accessor to retreive data from its target
object.
Returns:
- the string name of all getters access used
by this accessor
getSetterHelper
public function getSetterHelper (
) : Array
Returns the string name of all setters access used
by this accessor to defines new data to its target
object.
by this accessor to defines new data to its target
object.
Returns:
- the string name of all setters access used
by this accessor
getTarget
public function getTarget (
) : Object
Returns the target object onto which this accessor
operate.
operate.
Returns:
- the object onto which this accessor operate
getValue
public function getValue (
) : Array
Retreives the values from all target members acceeded
by this accessor. If the type of the data stored by a
member is not a number type, the call must fail with
an exception.
by this accessor. If the type of the data stored by a
member is not a number type, the call must fail with
an exception.
Returns:
- array of values stored by each properties/methods
Throws:
- {VISDOC_LINK_0}
ClassCastException— A property or a method
doesn't store a number.
setValue
public function setValue (
values:Array) : void
Defines the new values for all targets properties and methods.
If the type of the data stored by this object in one of this
properties or methods is not a number, the call must fail with
an exception.
If the type of the data stored by this object in one of this
properties or methods is not a number, the call must fail with
an exception.
Parameters:
value:
new numeric values for the target properties
and methods
and methods
Throws:
- {VISDOC_LINK_0}
ClassCastException— a target properties
or method doesn't store a number.