ValidationRule
| Kind of class: | class |
|---|---|
| Inherits from: | none |
| Implements: | |
| Known subclasses: | |
| Author: | Martijn de Visser |
| Classpath: | org.asapframework.util.forms.validate.ValidationRule |
| File last modified: | Wednesday, 21 June 2006, 19:05:09 |
Base class for validation rule classes, subclasses must implement the IValidationRule interface.
Summary
Constructor
- ValidationRule (inTarget:Object, inCondition:Object)
Instance properties
- mTarget : Object
- mCondition : Object
Instance methods
- validate : Boolean
- Validates this rule, implement in subclass.
- getTarget : Object
- The (untyped) validation target.
- getValue : Object
- The (untyped) value of the validation target.
- getCondition : Object
- The (untyped) validation condition.
- toString : String
Constructor
ValidationRule
function ValidationRule (
inTarget:Object,
inCondition:Object)
Parameters:
inTarget :
Target object to validate, has to implement the IValidate interface. Except TextFields, these will be accessed through .text.
inCondition:
sometimes needed to test against (for example in a greater than validation)
Instance properties
mCondition
private mCondition:Object
(read)
mTarget
private mTarget:Object
(read)
Instance methods
getCondition
function getCondition (
) : Object
The (untyped) validation condition.
getTarget
function getTarget (
) : Object
The (untyped) validation target. Must either implement IValidate or be a TextField.
Specified by:
getValue
function getValue (
) : Object
The (untyped) value of the validation target.
validate
function validate (
) : Boolean
Validates this rule, implement in subclass.
Specified by: