The Gravey Framework and RATS RIA

Class MVCEditRule

Object
   |
   +--GrvObject
         |
         +--MVCEditRule

class MVCEditRule
extends GrvObject


This class encapsulates edit rules. STD edit rules:

 MVCEditRule.kZero '0'  Read-Only; zero
 MVCEditRule.kCopy 'X'  Read-Only; copy of legal balance (HACK!)
 MVCEditRule.kRO   'R'  Read-Only; (current value)

 MVCEditRule.kEdit '?'  Read-Write; no validation
 MVCEditRule.kReqd '*'  Read-Write; non-empty required
 MVCEditRule.kNonZ '#'  Read-Write; non-zero required

 MVCEditRule.kPos  '+'  Read-Write; positive or zero
 MVCEditRule.kPOS  '{'  Read-Write; positive or zero (but not empty)
 MVCEditRule.kNeg  '-'  Read-Write; negative or zero
 MVCEditRule.kNEG  '}'  Read-Write; negative or zero (but not empty)
 MVCEditRule.kFone '('  Read-Write; phone number (or empty)
 MVCEditRule.kFONE ')'  Read-Write; phone number (required)
 MVCEditRule.kZip  'z'  Read-Write; zipcode (or empty)
 MVCEditRule.kZIP  'Z'  Read-Write; zipcode (required)
 MVCEditRule.kAlfa 'a'  Read-Write; letters[space] (or empty)
 MVCEditRule.kALFA 'A'  Read-Write; letters[space] (required)
 MVCEditRule.kDec  '.'  Read-Write; decimal number (or empty)
 MVCEditRule.kDEC  ':'  Read-Write; decimal number (required)
 MVCEditRule.kInt  '8'  Read-Write; 0-9 (or empty)
 MVCEditRule.kINT  '9'  Read-Write; 0-9 (required)
 MVCEditRule.kBool 'y'  Read-Write; Y,N,y,n,true,false (or empty)
 MVCEditRule.kBOOL 'Y'  Read-Write; Y,N,y,n,true,false (required)
 MVCEditRule.kDate 'd'  Read-Write; date (or empty)
 MVCEditRule.kDATE 'D'  Read-Write; date (required)
 MVCEditRule.kAlNo ';'  Read-Write; A-Za-z0-9 (or empty)
 MVCEditRule.kALNO '|'  Read-Write; A-Za-z0-9 (required)

Version: 2.0

Author: Bruce Wallace (PolyGlotInc.com)
Defined in grvMVC.js


Field Summary
<static>  Object kAlfa
          
<static>  Object kALFA
          
<static>  Object kAlNo
          
<static>  Object kALNO
          
<static>  Object kBool
          
<static>  Object kBOOL
          
<static>  Object kCopy
          
<static>  Object kDate
          
<static>  Object kDATE
          
<static>  Object kDec
          
<static>  Object kDEC
          
<static>  Object kEdit
          
<static>  Object kFone
          
<static>  Object kFONE
          
<static>  Object kInt
          
<static>  Object kINT
          
<static>  Object kNeg
          
<static>  Object kNEG
          
<static>  Object kNonZ
          
<static>  Object kPos
          
<static>  Object kPOS
          
<static>  Object kReqd
          
<static>  Object kRO
          
<static>  Object kZero
          
<static>  Object kZip
          
<static>  Object kZIP
          
 
Constructor Summary
MVCEditRule ()
           
 
Method Summary
 void konstructor()
           no-op constructor...not used
<static> boolean IsReadOnly(<char> rule)
           Static method to return whether specified edit rule is readonly.
<static> String Validate( <MVCScalarModel> model, <char> rule )
           Static method to validate value with STD edit rule.
 
Methods inherited from class GrvObject
souper
 

Field Detail

kAlfa

<static> Object kAlfa

kALFA

<static> Object kALFA

kAlNo

<static> Object kAlNo

kALNO

<static> Object kALNO

kBool

<static> Object kBool

kBOOL

<static> Object kBOOL

kCopy

<static> Object kCopy

kDate

<static> Object kDate

kDATE

<static> Object kDATE

kDec

<static> Object kDec

kDEC

<static> Object kDEC

kEdit

<static> Object kEdit

kFone

<static> Object kFone

kFONE

<static> Object kFONE

kInt

<static> Object kInt

kINT

<static> Object kINT

kNeg

<static> Object kNeg

kNEG

<static> Object kNEG

kNonZ

<static> Object kNonZ

kPos

<static> Object kPos

kPOS

<static> Object kPOS

kReqd

<static> Object kReqd

kRO

<static> Object kRO

kZero

<static> Object kZero

kZip

<static> Object kZip

kZIP

<static> Object kZIP

Constructor Detail

MVCEditRule

MVCEditRule()

Method Detail

konstructor

void konstructor()

IsReadOnly

<static> boolean IsReadOnly(<char> rule)

Validate

<static> String Validate( <MVCScalarModel> model, <char> rule )

The Gravey Framework and RATS RIA

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