com.acsinet_solutions.util.validator
Interface Validator

All Known Implementing Classes:
AbstractValidator

public interface Validator

This interface may be implemented by classes that perform validation tasks. As not all methods need to be always implemented, AbstractValidator convenience superclass may be implemented by classes that want to fill this contract in an easy way.

Author:
Santiago Arriaga - santiago.arriaga@acsinet-solutions.com

Method Summary
 void performInsertValidations(ValidationIssueBuilder builder, java.lang.Object obj)
          Perform insert validations and fill the given builder.
 void performUpdateValidations(ValidationIssueBuilder builder, java.lang.Object obj)
          Perform update validations and fill the given builder.
 void validate(ValidationIssueBuilder builder, java.lang.Object obj)
          Generic validate method.
 void validateInsert(java.lang.Object obj)
          Perform an update validation over an object, and throw a ValidationException if any issues are raised.
 void validateUpdate(java.lang.Object obj)
          Perform an update validation over an object, and throw a ValidationException if any issues are raised.
 

Method Detail

validateInsert

void validateInsert(java.lang.Object obj)
                    throws ValidationException,
                           SystemException
Perform an update validation over an object, and throw a ValidationException if any issues are raised.

Throws:
ValidationException
SystemException

validateUpdate

void validateUpdate(java.lang.Object obj)
                    throws ValidationException,
                           SystemException
Perform an update validation over an object, and throw a ValidationException if any issues are raised.

Throws:
ValidationException
SystemException

performInsertValidations

void performInsertValidations(ValidationIssueBuilder builder,
                              java.lang.Object obj)
                              throws SystemException
Perform insert validations and fill the given builder.

Throws:
SystemException

performUpdateValidations

void performUpdateValidations(ValidationIssueBuilder builder,
                              java.lang.Object obj)
                              throws SystemException
Perform update validations and fill the given builder.

Throws:
SystemException

validate

void validate(ValidationIssueBuilder builder,
              java.lang.Object obj)
              throws SystemException
Generic validate method. Implemented when the validation procedure needed is very simple and no distinction between update and insert is needed.

Throws:
SystemException