org.openbp.jaspira.propertybrowser.editor
Interface PropertyValidator

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

public interface PropertyValidator

Property validator interface. Called after a property has been edited. Checks the value of an edited property.

Author:
Andreas Putz

Method Summary
 boolean validateProperty(java.lang.String propertyName, java.lang.Object propertyValue, java.lang.Object editedObject, PropertyEditor propertyEditor, boolean complete)
          Validates an edited property.
 

Method Detail

validateProperty

boolean validateProperty(java.lang.String propertyName,
                         java.lang.Object propertyValue,
                         java.lang.Object editedObject,
                         PropertyEditor propertyEditor,
                         boolean complete)
Validates an edited property.

Parameters:
propertyName - Name of the edited property
propertyValue - Current value of the property
editedObject - Edited object that contains the property
propertyEditor - Property editor that edits the property value
complete - true The value has been completely entered. This is the case if the user wishes to leave the field.
false The value is being typed/edited.
Returns:
true The property value is valid.
false The property value is invalid. In this case, the focus should not be set to the next component.


Copyright © 2011. All Rights Reserved.