net.sf.sfac.editor
Interface Validable


public interface Validable

An interface to be implemented by objects able to validate themselves.
This validable can perform only the part of validations not needing a wider context. For example mandatory fields, field length, max values ... but not unicity of ids, cross references, comparing to old values or validation specific to the context action (add, update, remove).

Author:
Olivier Berlanger

Method Summary
 void validate(ValidationReport report)
          Validate this object.
 

Method Detail

validate

void validate(ValidationReport report)
Validate this object.
Any problem (info/warning/error) is added in the given ValidationReport. If this object contains Validable sub-objects, it can forward the validation call to them. In this case, the path must be correctly updated.

Parameters:
report - the ValidationReport where to add any info/warning/error raised by the validation.


Copyright © 2012. All Rights Reserved.