org.jaffa.rules.fieldvalidators
Class ForeignKeyFieldValidator

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

public class ForeignKeyFieldValidator
extends AbstractFieldValidator

This Field Validator ensures that the field value is a valid Foreign key in the specified domainClass.


Constructor Summary
ForeignKeyFieldValidator()
           
 
Method Summary
 String getDomainClass()
          Getter for property domainClass.
 String getProperty()
          Getter for property.
 void setDomainClass(String domainClass)
          Setter for property domainClass.
 void setProperty(String property)
          Setter for property.
 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

ForeignKeyFieldValidator

public ForeignKeyFieldValidator()
Method Detail

getDomainClass

public String getDomainClass()
Getter for property domainClass.

Returns:
Value of property domainClass.

setDomainClass

public void setDomainClass(String domainClass)
Setter for property domainClass.

Parameters:
domainClass - New value of property domainClass.

getProperty

public String getProperty()
Getter for property.

Returns:
Value of property.

setProperty

public void setProperty(String property)
Setter for property.

Parameters:
property - New value of property.

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.