portal.core.validate.rule
Class ConditionalRule

java.lang.Object
  extended byportal.core.validate.rule.ValidationRule
      extended byportal.core.validate.rule.ConditionalRule
All Implemented Interfaces:
IValidatable, java.io.Serializable

public class ConditionalRule
extends ValidationRule

See Also:
Serialized Form

Constructor Summary
ConditionalRule(ISelectableModel condition, ValidationRule rule)
           
 
Method Summary
protected  boolean validateRule(IValidationContext ctx)
           
 
Methods inherited from class portal.core.validate.rule.ValidationRule
validate, validationFailed, validationPassed
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConditionalRule

public ConditionalRule(ISelectableModel condition,
                       ValidationRule rule)
Method Detail

validateRule

protected boolean validateRule(IValidationContext ctx)
Specified by:
validateRule in class ValidationRule