Packagecom.bourre.core
Classpublic class MultiAccessor
ImplementsAccessorComposer

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 Methods
 MethodDefined by
  
MultiAccessor(t:Object, setters:Array, getters:Array = null)
Creates a new MethodAccessor instance which allow access to the specified getter and setter methods of the passed-in object.
MultiAccessor
  
Returns the string name of all getters access used by this accessor to retreive data from its target object.
MultiAccessor
  
Returns the string name of all setters access used by this accessor to defines new data to its target object.
MultiAccessor
  
getTarget():Object
Returns the target object onto which this accessor operate.
MultiAccessor
  
getValue():Array
Returns an array of all values returned by the specified properties and methods of the object.
MultiAccessor
  
setValue(values:Array):void
Sets the new values for the properties and methods handled by the specified setter methods and properties defined during the creation of this instance.
MultiAccessor
  
toString():String
Returns the string representation of this object.
MultiAccessor
Constructor detail
MultiAccessor()constructor
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
Method detail
getGetterHelper()method
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
getSetterHelper()method 
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
getTarget()method 
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
getValue()method 
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.
setValue()method 
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.
toString()method 
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