Models a property with type, setter and getter.
| Legato. | Models a property with type, setter and getter. |
| Properties | |
| type | {<Legato.Lang.AnyType>} Type of the property. |
| setter | {Function} Setter function for the property. |
| getter | {Function} Getter function for the property. |
| Functions | |
| initialize | Constructs a new property. |
| set | Sets value to the given object instance. |
| get | Gets value from the given object instance. |
set : function( instance, value )
Sets value to the given object instance. Throws {Legato.Lang.Exception} for read-only property.
| instance | instance to set value to. |
| value | value to be set. |
get : function( instance )
Gets value from the given object instance. Throws {Legato.Lang.Exception} for write-only property.
Value of the instance property returned by the getter function.
| instance | instance to set value to. |
Constructs a new property.
initialize : function( type, setter, getter )
Sets value to the given object instance.
set : function( instance, value )
Gets value from the given object instance.
get : function( instance )