portal.core.validate.rule
Class ValidationRule

java.lang.Object
  extended byportal.core.validate.rule.ValidationRule
All Implemented Interfaces:
IValidatable, java.io.Serializable
Direct Known Subclasses:
CalendarNotNull, CollectionNotEmpty, ConditionalRule, NumericalString, ObjectsEqual, StringNotEmpty, ValidEmailAddress

public abstract class ValidationRule
extends java.lang.Object
implements IValidatable

See Also:
Serialized Form

Constructor Summary
ValidationRule()
           
 
Method Summary
 void validate(IValidationContext validationContext)
           
protected abstract  boolean validateRule(IValidationContext validationContext)
           
protected  void validationFailed(IValidationContext validationContext, java.lang.String description)
           
protected  void validationPassed(IValidationContext validationContext)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ValidationRule

public ValidationRule()
Method Detail

validationFailed

protected final void validationFailed(IValidationContext validationContext,
                                      java.lang.String description)

validationPassed

protected final void validationPassed(IValidationContext validationContext)

validate

public final void validate(IValidationContext validationContext)
Specified by:
validate in interface IValidatable

validateRule

protected abstract boolean validateRule(IValidationContext validationContext)