|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.deduced.rule.DeductionRuleLibrary
org.deduced.validation.validator.rule.SetIsValidBasedOnErrorMessageRule
public class SetIsValidBasedOnErrorMessageRule

SetIsValidBasedOnErrorMessageRule implements the rule in validators to link the isValid flag with the error message input.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.deduced.rule.DeductionRuleLibrary |
|---|
DeductionRuleLibrary.CompareResult |
| Constructor Summary | |
|---|---|
SetIsValidBasedOnErrorMessageRule()
|
|
| Method Summary | |
|---|---|
java.lang.Object |
analyzeRule(java.lang.Object[] inputs,
RuleExecutionContext context,
PropertyCollection<?,?> collection,
PropertyCollection<?,?> rule)
(non-Javadoc) |
boolean |
isValidBasedOnErrorMessage(java.lang.String errorMessage)
test if a value is valid based on the error message. |
| Methods inherited from class org.deduced.rule.DeductionRuleLibrary |
|---|
addReferenceToList, and, bigger, biggerOrEqual, createDateIncrementList, createObject, createObjectsMatchingAllValues, createObjectsMatchingAllValues, debug, equalTo, fillList, filter, filterList, filterList, filterList, findParentOfType, formatDate, formatDate, formatTime, instanceOf, maximumCollection, maximumValue, merge, minimumCollection, minimumValue, not, or, property, same, smaller, smallerOrEqual, sum, sum |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SetIsValidBasedOnErrorMessageRule()
| Method Detail |
|---|
public java.lang.Object analyzeRule(java.lang.Object[] inputs,
RuleExecutionContext context,
PropertyCollection<?,?> collection,
PropertyCollection<?,?> rule)
inputs - the array of inputscontext - the rule execution contextcollection - the collection on which the rule is executedrule - the rule being executed
DeductionRuleAnalyzer.analyzeRule(java.lang.Object[],
org.deduced.RuleExecutionContext, org.deduced.PropertyCollection,
org.deduced.PropertyCollection)public boolean isValidBasedOnErrorMessage(java.lang.String errorMessage)
errorMessage - the error message
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||