|
Decision Center API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object ilog.rules.teamserver.web.validator.IlrComparablePropertyValidator
public class IlrComparablePropertyValidator
IlrComparablePropertyValidator
compares the property
it is attached to with a property specified with the
validator-compared-property
annotation.
Property comparison is achieved using the constraint specified with the
validator-constraint
annotation. A validator is attached to a
property using an annotation in the extension model. The property type must
implement java.lang.Comparable
and must be an attribute, not a
reference. The constraint must be choosen from the enum IlrComparablePropertyValidator.Constraint
.
Nested Class Summary | |
---|---|
static class |
IlrComparablePropertyValidator.Constraint
The list of available constraints that can be used with IlrComparablePropertyValidator . |
Constructor Summary | |
---|---|
IlrComparablePropertyValidator()
|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public IlrComparablePropertyValidator()
Method Detail |
---|
public boolean validate(org.eclipse.emf.ecore.EStructuralFeature property, Object value, IlrCommitableObject co)
IlrTypeValidator
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.
validate
in interface IlrTypeValidator
public String getInvalidMessage()
IlrTypeValidator
convertAndValidate
returns false.
getInvalidMessage
in interface IlrTypeValidator
|
Decision Center API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |