org.kuali.kfs.sys.document.validation
Class ParameterizedValidation

java.lang.Object
  extended by org.kuali.kfs.sys.document.validation.ParameterizedValidation
Direct Known Subclasses:
BranchingValidation, GenericValidation

public abstract class ParameterizedValidation
extends Object

An abstract class that defines methods needed to act on parameter properties for a validation.


Constructor Summary
ParameterizedValidation()
           
 
Method Summary
protected  List<ValidationFieldConvertible> getParameterProperties()
          Gets the parameterProperties attribute.
protected  void populateParameterFromEvent(AttributedDocumentEvent event, ValidationFieldConvertible conversion)
          Populates a single parameter field based on a field conversion, given an event to populate data from
 void populateParametersFromEvent(AttributedDocumentEvent event)
          Given an event and the parameterProperties given by the validations, copies the values from the events to the proper fields in the validation.
 void setParameterProperties(List<ValidationFieldConvertible> parameterProperties)
          Sets the parameterProperties attribute value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ParameterizedValidation

public ParameterizedValidation()
Method Detail

getParameterProperties

protected List<ValidationFieldConvertible> getParameterProperties()
Gets the parameterProperties attribute.

Returns:
Returns the parameterProperties.

setParameterProperties

public void setParameterProperties(List<ValidationFieldConvertible> parameterProperties)
Sets the parameterProperties attribute value.

Parameters:
parameterProperties - The parameterProperties to set.

populateParametersFromEvent

public void populateParametersFromEvent(AttributedDocumentEvent event)
Given an event and the parameterProperties given by the validations, copies the values from the events to the proper fields in the validation.

Parameters:
event - an array to derive properties from
the - parameter to set the parameters on

populateParameterFromEvent

protected void populateParameterFromEvent(AttributedDocumentEvent event,
                                          ValidationFieldConvertible conversion)
Populates a single parameter field based on a field conversion, given an event to populate data from

Parameters:
event - the event which acts as the source of data
validation - the validation to populate
conversion - the conversion information


Copyright © 2005-2012 The Kuali Foundation. All Rights Reserved.