org.jaffa.rules.fieldvalidators
Class MandatoryFieldValidator

java.lang.Object
  extended byorg.jaffa.rules.fieldvalidators.AbstractFieldValidator
      extended byorg.jaffa.rules.fieldvalidators.MandatoryFieldValidator
All Implemented Interfaces:
IFieldValidator

public class MandatoryFieldValidator
extends AbstractFieldValidator

This implementation of the IFieldValidator ensures that the field is not null.


Constructor Summary
MandatoryFieldValidator()
           
 
Method Summary
 void validate()
          The RulesEngine will invoke this method to perform the field validation.
 
Methods inherited from class org.jaffa.rules.fieldvalidators.AbstractFieldValidator
cleanup, getLabelToken, getUow, getValue, init, setLabelToken, setUow, setValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MandatoryFieldValidator

public MandatoryFieldValidator()
Method Detail

validate

public void validate()
              throws ValidationException,
                     FrameworkException
The RulesEngine will invoke this method to perform the field validation.

Specified by:
validate in interface IFieldValidator
Specified by:
validate in class AbstractFieldValidator
Throws:
ValidationException - if any validation rule fails.
FrameworkException - if any framework error occurs.


Copyright © 2002-2004 JAFFA Project.