org.kuali.rice.edl.impl.components
Class ValidationComponent

java.lang.Object
  extended by org.kuali.rice.edl.impl.components.SimpleWorkflowEDLConfigComponent
      extended by org.kuali.rice.edl.impl.components.ValidationComponent
All Implemented Interfaces:
EDLModelComponent

public class ValidationComponent
extends SimpleWorkflowEDLConfigComponent
implements EDLModelComponent

Executes validations that are defined on the EDL Definitions. These validation exist in a form similiar to the following: wf:field('grade') = 'other' and not(wf:empty(wf:field('otherGrade')) Other Grade is required when grade is marked as 'other'

Author:
Kuali Rice Team (rice.collab@kuali.org)

Field Summary
 
Fields inherited from class org.kuali.rice.edl.impl.components.SimpleWorkflowEDLConfigComponent
definitionElement
 
Constructor Summary
ValidationComponent()
           
 
Method Summary
protected  void executeValidation(XPath xpath, Document dom, EDLValidation validation, EDLContext edlContext)
           
protected  List<EDLValidation> parseValidations(Document document)
           
 void updateDOM(Document dom, Element configElement, EDLContext edlContext)
           
 
Methods inherited from class org.kuali.rice.edl.impl.components.SimpleWorkflowEDLConfigComponent
getDefinitionElement, getEdlContext, getErrorMessage, getMatchingParams, getReplacementConfigElement, setDefinitionElement, setEdlContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ValidationComponent

public ValidationComponent()
Method Detail

updateDOM

public void updateDOM(Document dom,
                      Element configElement,
                      EDLContext edlContext)
Specified by:
updateDOM in interface EDLModelComponent
Overrides:
updateDOM in class SimpleWorkflowEDLConfigComponent

parseValidations

protected List<EDLValidation> parseValidations(Document document)
                                        throws Exception
Throws:
Exception

executeValidation

protected void executeValidation(XPath xpath,
                                 Document dom,
                                 EDLValidation validation,
                                 EDLContext edlContext)
                          throws Exception
Throws:
Exception


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