|
|||||||||
| Home >> All >> com >> aendvari >> griffin >> [ validation overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
com.aendvari.griffin.validation
Class Validation

java.lang.Objectcom.aendvari.griffin.validation.Validation
- public class Validation
- extends java.lang.Object
Constructs a Validation for validating a com.aendvari.griffin.validation.dataset.Dataset.
Constructs a Map.get(Object)>Map.get(Object) 55 of ValidationHandler's
for looking up methods for validation/error calls.
| Field Summary | |
private java.lang.String |
configurationFile
The configuration file |
private java.util.HashMap |
handlers
An HashMap of ValidationHandler objects to use for looking up methods for validation/error calls. |
private ValidationReader |
reader
The ValidationReader class. |
| Constructor Summary | |
Validation(com.aendvari.common.model.ModelTreeFactory modelTreeFactory,
java.lang.Class resourceLoader)
Constructs a Validation instance. |
|
| Method Summary | |
private void |
executeValidation(com.aendvari.common.model.ModelNode datasetNode)
Executes all validate methods on each com.aendvari.griffin.validation.dataset.Property of each com.aendvari.griffin.validation.dataset.Dataset. |
private void |
intializeHandlers(ValidationHandler[] setHandlers)
Initialize this Validation with given handlers. |
private void |
prepareValidation(com.aendvari.common.model.ModelTreeFactory modelTreeFactory,
java.lang.Class resourceLoader)
Prepares the validation for execution. |
void |
validate(com.aendvari.common.model.ModelNode datasetNode)
Validate the data at the given com.aendvari.common.model.ModelNode using the validators defined in the given validation configuration file. |
void |
validate(com.aendvari.common.model.ModelNode datasetNode,
ValidationHandler[] setHandlers)
Validate the data at the given com.aendvari.common.model.ModelNode using the validators defined in the given validation configuration file. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
handlers
private java.util.HashMap handlers
- An
HashMapofValidationHandlerobjects to use for looking up methods for validation/error calls.
configurationFile
private java.lang.String configurationFile
- The configuration file
reader
private ValidationReader reader
- The ValidationReader class.
| Constructor Detail |
Validation
public Validation(com.aendvari.common.model.ModelTreeFactory modelTreeFactory, java.lang.Class resourceLoader) throws java.lang.Exception
- Constructs a
Validationinstance.
| Method Detail |
intializeHandlers
private void intializeHandlers(ValidationHandler[] setHandlers)
- Initialize this
Validationwith given handlers.
prepareValidation
private void prepareValidation(com.aendvari.common.model.ModelTreeFactory modelTreeFactory, java.lang.Class resourceLoader) throws java.lang.Exception
- Prepares the validation for execution.
validate
public void validate(com.aendvari.common.model.ModelNode datasetNode) throws java.lang.Exception
- Validate the data at the given com.aendvari.common.model.ModelNode using the validators defined in the given
validation configuration file.
validate
public void validate(com.aendvari.common.model.ModelNode datasetNode, ValidationHandler[] setHandlers) throws java.lang.Exception
- Validate the data at the given com.aendvari.common.model.ModelNode using the validators defined in the given
validation configuration file.
executeValidation
private void executeValidation(com.aendvari.common.model.ModelNode datasetNode) throws java.lang.Exception
- Executes all validate methods on each com.aendvari.griffin.validation.dataset.Property of each com.aendvari.griffin.validation.dataset.Dataset.
|
|||||||||
| Home >> All >> com >> aendvari >> griffin >> [ validation overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC
com.aendvari.griffin.validation.Validation