org.jaffa.rules.fieldvalidators
Class CurrencyFieldValidator

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

public class CurrencyFieldValidator
extends AbstractFieldValidator

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


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

CurrencyFieldValidator

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

Returns:
Value of property minValue.

setMinValue

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

Parameters:
minValue - New value of property minValue.

getMaxValue

public Currency getMaxValue()
Getter for property maxValue.

Returns:
Value of property maxValue.

setMaxValue

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

getFracSize

public Integer getFracSize()
Getter for property fracSize.

Returns:
Value of property fracSize.

setFracSize

public void setFracSize(Integer fracSize)
Setter for property fracSize.

Parameters:
fracSize - New value of property fracSize.

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.