ValidationResult

Kind of class:class
Inherits from:none
Author:Martijn de Visser
Classpath:org.asapframework.util.forms.validate.ValidationResult
File last modified:Wednesday, 21 June 2006, 19:05:09
Value Object class for returning the result of a form validation.

Summary


Constructor
Instance properties
  • success : Boolean
    • True if all validation rules executed ok, false if one or more fail.
  • errors : Array
    • If 'success' property is false, this array will contain one or more (@link ValidationError} objects.
Instance methods

Constructor

ValidationResult

function ValidationResult (
)

Instance properties

errors

errors:Array
(read)

If 'success' property is false, this array will contain one or more (@link ValidationError} objects.

success

success:Boolean
(read)

True if all validation rules executed ok, false if one or more fail.

Instance methods

addError

function addError (
inError:ValidationError) : Void