org.jaffa.rules.fieldvalidators
Class IntegerFieldValidator

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

public class IntegerFieldValidator
extends AbstractFieldValidator

This implementation of the IFieldValidator ensures that the field has an Integer value.


Constructor Summary
IntegerFieldValidator()
           
 
Method Summary
 Integer getIntSize()
          Getter for property intSize.
 String getLayout()
          Getter for property layout.
 Long getMaxValue()
          Getter for property maxValue.
 Long getMinValue()
          Getter for property minValue.
 void setIntSize(Integer intSize)
          Setter for property intSize.
 void setLayout(String layout)
          Setter for property layout.
 void setMaxValue(Long maxValue)
          Setter for property maxValue.
 void setMinValue(Long 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

IntegerFieldValidator

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

Returns:
Value of property minValue.

setMinValue

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

Parameters:
minValue - New value of property minValue.

getMaxValue

public Long getMaxValue()
Getter for property maxValue.

Returns:
Value of property maxValue.

setMaxValue

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

Parameters:
maxValue - New value of property maxValue.

getIntSize

public Integer getIntSize()
Getter for property intSize.

Returns:
Value of property intSize.

setIntSize

public void setIntSize(Integer intSize)
Setter for property intSize.

Parameters:
intSize - New value of property intSize.

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.