|
||||||||||
| 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.IsNullableValidRule
public class IsNullableValidRule

IsNullableValidRule is used to validate nullable properties to check whether null is allowed or not.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.deduced.rule.DeductionRuleLibrary |
|---|
DeductionRuleLibrary.CompareResult |
| Constructor Summary | |
|---|---|
IsNullableValidRule()
|
|
| Method Summary | |
|---|---|
java.lang.Object |
analyzeRule(java.lang.Object[] inputs,
RuleExecutionContext context,
PropertyCollection collection,
PropertyCollection rule)
(non-Javadoc) |
static java.lang.String |
validateNullableValue(java.lang.Object value,
java.lang.Boolean canBeNull)
validate that a nullable value is valid based on the canBeNull flag. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public IsNullableValidRule()
| 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 static java.lang.String validateNullableValue(java.lang.Object value,
java.lang.Boolean canBeNull)
value - the numeric valuecanBeNull - flag indicating if the object can be null. If the flag
is null, then the object is allowed to be null.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||