ETAdaptiveModelObject class documentation

Authors

Eric Wasylishen (ewasylishen@gmail.com)

Copyright: (C) 2009 Eric Wasylishen

Software documentation for the ETAdaptiveModelObject class

ETAdaptiveModelObject : NSObject

Declared in:
ETAdaptiveModelObject.h

@group Model and Metamodel

WARNING: This class is under development and must be ignored.

Very simple implementation of an adaptive model object that is causally connected to its description. This means that changes to the entity description immediately take effect in the instance of ETAdaptiveModelObject.

Causal connection is ensured through the implementation of -valueForProperty: and -setValue:forProperty: .

Method summary

setValue: forProperty: 

- (BOOL) setValue: (id)value forProperty: (NSString*)key;

Sets the property value and returns YES when the property is declared in the metamodel and it allows the value to be set. In all other cases, does nothing and returns NO.


valueForProperty: 

- (id) valueForProperty: (NSString*)key;

@taskunit Property Value Coding

Returns the property value if the property is declared in the metamodel (aka entity description).