Packagecom.bourre.core
Classpublic class PropertyAccessor
ImplementsAccessor

Player version: Flash Player 9.0
Language version: ActionScript 3.0

The PropertyAccessor provides read and write access to the specified property of an object.



Public Methods
 MethodDefined by
  
PropertyAccessor(o:Object, p:String)
Creates a new PropertyAccessor instance which allow access to the specified property of the passed-in object.
PropertyAccessor
  
getGetterHelper():String
Returns the string name of the getter access used by this accessor to retreive data from its target object.
PropertyAccessor
  
getProperty():String
Returns the property's name onto which this accessor operate.
PropertyAccessor
  
getSetterHelper():String
Returns the string name of the setter access used by this accessor to defines new data to its target object.
PropertyAccessor
  
getTarget():Object
Returns the target object onto which this accessor operate.
PropertyAccessor
  
getValue():Number
Returns the numeric value stored in the property specified during the creation of the object.
PropertyAccessor
  
setValue(value:Number):void
Sets the new value for the property handled by this accessor defined during the creation of this instance.
PropertyAccessor
  
toString():String
Returns the string representation of this object.
PropertyAccessor
Constructor detail
PropertyAccessor()constructor
public function PropertyAccessor(o:Object, p:String)

Player version: Flash Player 9.0
Language version: ActionScript 3.0

Creates a new PropertyAccessor instance which allow access to the specified property of the passed-in object.

Parameters
o:Object — object onto which access methods
 
p:String — name of the property of the object

Throws
NullPointerException — Can't create an accessor on a null object
 
NoSuchFieldException — There is no property of the specified name
Method detail
getGetterHelper()method
public function getGetterHelper():String

Player version: Flash Player 9.0
Language version: ActionScript 3.0

Returns the string name of the getter access used by this accessor to retreive data from its target object.

Returns
String — the string name of the getter access used by this accessor
getProperty()method 
public function getProperty():String

Player version: Flash Player 9.0
Language version: ActionScript 3.0

Returns the property's name onto which this accessor operate.

Returns
String — the property's name onto which this accessor operate
getSetterHelper()method 
public function getSetterHelper():String

Player version: Flash Player 9.0
Language version: ActionScript 3.0

Returns the string name of the setter access used by this accessor to defines new data to its target object.

Returns
String — the string name of the setter 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():Number

Player version: Flash Player 9.0
Language version: ActionScript 3.0

Returns the numeric value stored in the property specified during the creation of the object.

Returns
Number — current value stored in the target property

Throws
ClassCastException — The target property doesn't store a number.
setValue()method 
public function setValue(value:Number):void

Player version: Flash Player 9.0
Language version: ActionScript 3.0

Sets the new value for the property handled by this accessor defined during the creation of this instance.

Parameters
value:Number — the new value for the target property

Throws
ClassCastException — The target property doesn't store a number.
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