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

java.lang.Object
  extended by org.kuali.rice.kew.edl.components.SimpleWorkflowEDLConfigComponent
      extended by org.kuali.rice.kew.edl.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.kew.edl.components.SimpleWorkflowEDLConfigComponent
definitionElement
 
Constructor Summary
ValidationComponent()
           
 
Method Summary
protected  void executeValidation(javax.xml.xpath.XPath xpath, org.w3c.dom.Document dom, EDLValidation validation, EDLContext edlContext)
           
protected  java.util.List<EDLValidation> parseValidations(org.w3c.dom.Document document)
           
 void updateDOM(org.w3c.dom.Document dom, org.w3c.dom.Element configElement, EDLContext edlContext)
           
 
Methods inherited from class org.kuali.rice.kew.edl.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(org.w3c.dom.Document dom,
                      org.w3c.dom.Element configElement,
                      EDLContext edlContext)
Specified by:
updateDOM in interface EDLModelComponent
Overrides:
updateDOM in class SimpleWorkflowEDLConfigComponent

parseValidations

protected java.util.List<EDLValidation> parseValidations(org.w3c.dom.Document document)
                                                  throws java.lang.Exception
Throws:
java.lang.Exception

executeValidation

protected void executeValidation(javax.xml.xpath.XPath xpath,
                                 org.w3c.dom.Document dom,
                                 EDLValidation validation,
                                 EDLContext edlContext)
                          throws java.lang.Exception
Throws:
java.lang.Exception


Copyright © 2004-2011 The Kuali Foundation. All Rights Reserved.