org.jaffa.rules.fieldvalidators
Class DateOnlyFieldValidator

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

public class DateOnlyFieldValidator
extends AbstractFieldValidator

This implementation of the IFieldValidator ensures that the field has a DateOnly value.


Constructor Summary
DateOnlyFieldValidator()
           
 
Method Summary
 String getLayout()
          Getter for property layout.
 DateOnly getMaxValue()
          Getter for property maxValue.
 DateOnly getMinValue()
          Getter for property minValue.
 void setLayout(String layout)
          Setter for property layout.
 void setMaxValue(DateOnly maxValue)
          Setter for property maxValue.
 void setMinValue(DateOnly minValue)
          Setter for property minValue.
 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

DateOnlyFieldValidator

public DateOnlyFieldValidator()
Method Detail

getLayout

public String getLayout()
Getter for property layout.

Returns:
Value of property layout.

setLayout

public void setLayout(String layout)
Setter for property layout.

Parameters:
layout - New value of property layout.

getMinValue

public DateOnly getMinValue()
Getter for property minValue.

Returns:
Value of property minValue.

setMinValue

public void setMinValue(DateOnly minValue)
Setter for property minValue.

Parameters:
minValue - New value of property minValue.

getMaxValue

public DateOnly getMaxValue()
Getter for property maxValue.

Returns:
Value of property maxValue.

setMaxValue

public void setMaxValue(DateOnly maxValue)
Setter for property maxValue.

Parameters:
maxValue - New value of property maxValue.

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.