Overview | File | Class | Tree | Index | Help
| The Gravey Framework and RATS RIA
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## 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:

- konstructor()

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`

Field Detail

### kValidateSuffix

    <static> Object kValidateSuffix

The suffix added to the basic name to get the validate function name.

Constructor Detail

### MVCAttributeModel

    MVCAttributeModel()

Version: 2.0
Author: Bruce Wallace (PolyGlotInc.com)
See:

- konstructor()

Method Detail

### _setValidity

    void _setValidity( <String> errMsg )

set the validity attribute of this attribute but dont publish

Parameters:

`errMsg` - the validity attribute (as an error message)

### _setValue

    void _setValue(x)

set the value of base object attribute but dont publish

### getValidity

    String getValidity()

return the validity attribute of this attribute

### getValue

    Object getValue( )

return the value of base object attribute

### konstructor

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

Parameters:

`baseObject` - object whose property we are wrappering

`attribute` - name of baseObject's member we are wrappering

`optName` - optional name of this instance

### setValue

    void setValue(x)

set the value of base object attribute and publish

### validate

    Object validate()

return error message from custom validation method or null for no error

Overview | File | Class | Tree | Index | Help
| The Gravey Framework and RATS RIA
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Documentation generated by JSDoc on Thu Jan 6 12:46:18 2011