org.jaffa.rules.fieldvalidators
Class DateTimeFieldValidator

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

public class DateTimeFieldValidator
extends AbstractFieldValidator

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


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

DateTimeFieldValidator

public DateTimeFieldValidator()
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 DateTime getMinValue()
Getter for property minValue.

Returns:
Value of property minValue.

setMinValue

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

Parameters:
minValue - New value of property minValue.

getMaxValue

public DateTime getMaxValue()
Getter for property maxValue.

Returns:
Value of property maxValue.

setMaxValue

public void setMaxValue(DateTime 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.