Access keysTop, Summary, Constructors,
Instance properties,
Instance methodsValidationResult
| Kind of class: |
class |
| Inherits from: |
none |
| Author: |
Martijn de Visser |
| Classpath: |
org.asapframework.util.forms.validate.ValidationResult |
| File last modified: |
Thursday, 13 July 2006, 09:33:59 |
/*
Copyright 2005-2006 by the authors of asapframework, http://asapframework.org
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
import org.asapframework.util.forms.validate.ValidationError;
/**
Value Object class for returning the result of a form validation.
@author Martijn de Visser
*/
class org.asapframework.util.forms.validate.ValidationResult {
public var success:Boolean; /**< True if all validation rules executed ok, false if one or more fail. */
public var errors:Array; /**< If 'success' property is false, this array will contain one or more (@link ValidationError} objects. */
public function ValidationResult () {
errors = new Array();
}
public function addError (inError:ValidationError) : Void {
errors.push(inError);
}
}
Value Object class for returning the result of a form validation.
Constructor
ValidationResult
function ValidationResult (
)
Instance properties
errors
errors:Array
(read,write)
If 'success' property is false, this array will contain one or more (@link ValidationError} objects.
success
success:Boolean
(read,write)
True if all validation rules executed ok, false if one or more fail.