org.openbp.jaspira.propertybrowser
Interface ObjectValidator

All Superinterfaces:
PropertyValidator
All Known Implementing Classes:
ComplexTypeValidator, DataMemberValidator, DescriptionObjectValidator, DisplayObjectValidator, InitialNodeValidator, JavaActivityItemValidator, ModelObjectValidator, ModelValidator, NodeSocketValidator, ValidatorBase, VariablesContainerValidator, WorkflowTaskValidator

public interface ObjectValidator
extends PropertyValidator

Object validator interface. Called after a property of an object has been edited or an object is about to be saved. Checks the value of the object's properties and optionally modifies them.

Author:
Heiko Erhardt

Method Summary
 boolean validateObject(java.lang.Object editedObject, PropertyBrowser propertyBrowser)
          Validates the entire object before it will be saved.
 
Methods inherited from interface org.openbp.jaspira.propertybrowser.editor.PropertyValidator
validateProperty
 

Method Detail

validateObject

boolean validateObject(java.lang.Object editedObject,
                       PropertyBrowser propertyBrowser)
Validates the entire object before it will be saved.

Parameters:
editedObject - Edited object that contains the property
propertyBrowser - Property browser that edits the object
Returns:
true The object value is valid and can be saved.
false The object value is invalid. In this case, the save operation should be aborted and the focus should not be set outside the property browser.


Copyright © 2011. All Rights Reserved.