Main Page | Packages | Class Tree | Index | Help

xp.data

class FieldAccessor

Object
  |
  +--xp.data.FieldAccessor


class FieldAccessor
extends Object

Gets or set the value of a property on an object

Gets or set the value of a property on an object. Can handle any value type and any object. Can handle complex paths on both the get and set; "a.b.c['dog'].methodX().y[1].methodZ()"


Author:
ProWin Computers Ltd. - Rob Edgar

Version:
3.0.0.000

See also:


Method Summary

public static
getValue ( obj: Object, path: Object ): Object
Retreives a value from the object

public static
makeEndPoint ( path: String ): Object
Preparse a path

public static
setValue ( obj: Object, path: Object, v: Object )
Sets a value on the object



Method Documentation

getValue

public static function getValue(obj: Object,
 path: Object): Object
Retreives a value from the object

Parameters:
obj
The current target of this invoke call
path
The path on that object to be invoked
Returns:
The value retrived from the property

makeEndPoint

public static function makeEndPoint(path: String): Object
Preparse a path

Parameters:
path
The path on that object to be invoked
Returns:
A parsed end point declaration

setValue

public static function setValue(obj: Object,
 path: Object,
 v: Object)
Sets a value on the object

Parameters:
obj
The current target of this invoke call
path
The path on that object to be invoked
v
The value to be set

The documentation was generated from the following file:


Generated on 10/30/2005 9:34:02 PM by AS2Doc