net.sf.sfac.editor
Class ValidatorImpl
java.lang.Object
net.sf.sfac.editor.ValidatorImpl
- All Implemented Interfaces:
- Validator
public class ValidatorImpl
- extends Object
- implements Validator
Base implementation of the Validator interface.
This implementation checks if the edited object implements the Validable interface, and if so, defers validation to it.
- Author:
- Olivier Berlanger
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ValidatorImpl
public ValidatorImpl()
ValidatorImpl
public ValidatorImpl(boolean continuous)
supportsContinuousValidation
public boolean supportsContinuousValidation()
- Specified by:
supportsContinuousValidation in interface Validator
initContinuousValidationReport
public void initContinuousValidationReport(Object editedObject,
ValidationReport report)
- Specified by:
initContinuousValidationReport in interface Validator
validateModification
public void validateModification(Object editedObject,
String fieldPath,
Object oldValue,
Object newValue,
ValidationReport report)
- Specified by:
validateModification in interface Validator
validateBeforeCommit
public void validateBeforeCommit(Object editedObject,
ValidationReport report)
- Specified by:
validateBeforeCommit in interface Validator
Copyright © 2012. All Rights Reserved.