| Player version: | Flash Player 9.0 |
| Language version: | ActionScript 3.0 |
The
MultiAccessor provides read and write access
to the specified methods and properties of a single object.
public function MultiAccessor(t:Object, setters:Array, getters:Array = null)
| Player version: | Flash Player 9.0 |
| Language version: | ActionScript 3.0 |
Creates a new MethodAccessor instance which
allow access to the specified getter and
setter methods of the passed-in object.
Parameters
| t:Object — object onto which access methods
|
| |
| setters:Array — names of the setter methods or properties on the object
|
| |
| getters:Array (default = null) — names of the getter methods on the object, use only
for function members
|
Throws
| — NullPointerException — Can't create an accessors
on a null object
|
| |
| — NoSuchMethodException — There is no setter method
of the specified name
|
| |
| — NoSuchMethodException — There is no getter method
of the specified name
|
public function getGetterHelper():Array
| Player version: | Flash Player 9.0 |
| Language version: | ActionScript 3.0 |
Returns the string name of all getters access used
by this accessor to retreive data from its target
object.
Returns
| Array — the string name of all getters access used
by this accessor
|
public function getSetterHelper():Array
| Player version: | Flash Player 9.0 |
| Language version: | ActionScript 3.0 |
Returns the string name of all setters access used
by this accessor to defines new data to its target
object.
Returns
| Array — the string name of all setters access used
by this accessor
|
public function getTarget():Object
| Player version: | Flash Player 9.0 |
| Language version: | ActionScript 3.0 |
Returns the target object onto which this accessor
operate.
Returns
| Object — the object onto which this accessor operate
|
public function getValue():Array
| Player version: | Flash Player 9.0 |
| Language version: | ActionScript 3.0 |
Returns an array of all values returned by the specified
properties and methods of the object.
Returns
| Array — current values returned by the target getter methods
|
Throws
| — ClassCastException — A getter method
doesn't return a number.
|
public function setValue(values:Array):void
| Player version: | Flash Player 9.0 |
| Language version: | ActionScript 3.0 |
Sets the new values for the properties and methods handled
by the specified setter methods and properties defined
during the creation of this instance.
Parameters
| values:Array — the new values for the target setter methods
and properties
|
Throws
| — ClassCastException — A target setter
methods doesn't accept number as argument.
|
public function toString():String
| Player version: | Flash Player 9.0 |
| Language version: | ActionScript 3.0 |
Returns the string representation of this object.
Returns
| String — the string representation of this object
|
LowRA API documentation 2008- 2009
Licensed under the MOZILLA PUBLIC LICENSE, Version 1.1
mer. févr. 25 2009, 9:22 AM GMT+01:00