The Gravey 2.5 Framework

Class MVCAttributeModel

Object
   |
   +--GrvObject
         |
         +--MVCObserver
               |
               +--MVCModel
                     |
                     +--MVCScalarModel
                           |
                           +--MVCAttributeModel
Direct Known Subclasses:
MVCROAttributeModel

class MVCAttributeModel
extends MVCScalarModel


This class encapsulates a "wrapper" data model for a specified attribute of a specified base object. The specified attribute can NOT be a method call.
Version: 2.0

Author: Bruce Wallace (PolyGlotInc.com)
See:

Defined in grvMVC.js


Field Summary
<static>  Object kValidateSuffix
          The suffix added to the basic name to get the validate function name.
 
Constructor Summary
MVCAttributeModel ()
           
 
Method Summary
 void _setValidity( <String> errMsg )
           set the validity attribute of this attribute but dont publish
 void _setValue(x)
           set the value of base object attribute but dont publish
 String getValidity()
           return the validity attribute of this attribute
 Object getValue( )
           return the value of base object attribute
 void konstructor( <Object> baseObject, <String> attribute, <String> optName )
          
 void setValue(x)
           set the value of base object attribute and publish
 Object validate()
           return error message from custom validation method or null for no error
 
Methods inherited from class MVCModel
dumpSubscribers, toString, dirty, clean, publish, GET, _SET, SET, updateStamp, BeginTransaction, EndTransaction, addObserver, delObserver, notifyObservers
   
Methods inherited from class MVCObserver
update, subscribe
   
Methods inherited from class GrvObject
souper, souper_, isInstanceOf
 

Field Detail

kValidateSuffix

<static> Object kValidateSuffix

Constructor Detail

MVCAttributeModel

MVCAttributeModel()

Method Detail

_setValidity

void _setValidity( <String> errMsg )

_setValue

void _setValue(x)

getValidity

String getValidity()

getValue

Object getValue( )

konstructor

void konstructor( <Object> baseObject, <String> attribute, <String> optName )

setValue

void setValue(x)

validate

Object validate()

The Gravey 2.5 Framework

Documentation generated by JSDoc on Thu Jan 6 12:47:09 2011