Package Modeling :: Module Validation :: Class Validation
[show private | hide private]
[frames | no frames]

Class Validation


Mix-in class for validation: it defined the default mechanisms used in CustomObject.

This class is left as an example, but actual methods are now in CustomObject itself and this mix-in class is not used anymore.


Method Summary
  validateForDelete(self)
Default implementation simply sends validateObjectForDelete() to the receiver's ClassDescription.
  validateForInsert(self)
Simply calls validateForSave()
  validateForSave(self)
Default implementation simply forwards the message to the object's ClassDescription.
  validateForUpdate(self)
Simply calls validateForSave()
  validateObject(self)
  validateValueForKey(self, aValue, aKey)
Validate the value hold by 'aKey' attribute/relationship in the object

Class Variable Summary
tuple __implements__ = (<class Modeling.interfaces.Validation....

Method Details

validateForDelete(self)

Default implementation simply sends validateObjectForDelete() to the receiver's ClassDescription.

validateForInsert(self)

Simply calls validateForSave()

validateForSave(self)

Default implementation simply forwards the message to the object's ClassDescription.

validateForUpdate(self)

Simply calls validateForSave()

validateValueForKey(self, aValue, aKey)

Validate the value hold by 'aKey' attribute/relationship in the object

Default implementation forwards the message to the object's ClassDescription.


Class Variable Details

__implements__

Type:
tuple
Value:
(<class Modeling.interfaces.Validation.ValidationInterface at 0xb79178\
cc>,)                                                                  

Generated by Epydoc 2.1 on Sat Mar 4 13:36:23 2006 http://epydoc.sf.net