Provides a way to trigger rules for propertyB when propertyA satisfies a certain condition:
if (propertyA satisfies the conditional constraint) { check the rules for propertyB }
with an optional part:
else { check the rules for propertyC }
More complex situations are possible by using compound constraints which leverages the previous to:
if (constraint(propertyA, propertyB,...) == true) { checkConstraint(property1, property2,...); } \\ optional part else { checkConstraint(propertyX, propertyY,...); }
This class can be compared to the {@link IfTrue} class: it applies the samepattern but on different properties instead of on a property value.
@author jh