Decision Center API

ilog.rules.teamserver.web.validator
Interface IlrTypeValidator

All Known Implementing Classes:
IlrComparablePropertyValidator

public interface IlrTypeValidator

This interface can be be implemented to customize the validation process before an element is committed.

Please refer to the documentation for further details.


Method Summary
 String getInvalidMessage()
          Gets the message that will be displayed in case convertAndValidate returns false.
 boolean validate(org.eclipse.emf.ecore.EStructuralFeature property, Object value, IlrCommitableObject co)
          This method validates a given value of a a given committable object, given its property.
 

Method Detail

validate

boolean validate(org.eclipse.emf.ecore.EStructuralFeature property,
                 Object value,
                 IlrCommitableObject co)
This method validates a given value of a a given committable object, given its property.

The type of value corresponds to the type of property. For instance, if the property is of type int, the value is of type Integer. If the property is of type date, the value is of type Date.

Returns:
true If the value is valid, and false otherwise.

getInvalidMessage

String getInvalidMessage()
Gets the message that will be displayed in case convertAndValidate returns false.

Returns:
The message.

Decision Center API

© Copyright IBM Corp. 1987, 2013