Class ValidationComponent
- java.lang.Object
-
- org.kuali.rice.edl.impl.components.SimpleWorkflowEDLConfigComponent
-
- 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
Constructors Constructor Description ValidationComponent()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidexecuteValidation(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)voidupdateDOM(org.w3c.dom.Document dom, org.w3c.dom.Element configElement, EDLContext edlContext)-
Methods inherited from class org.kuali.rice.edl.impl.components.SimpleWorkflowEDLConfigComponent
getDefinitionElement, getEdlContext, getErrorMessage, getMatchingParams, getReplacementConfigElement, setDefinitionElement, setEdlContext
-
-
-
-
Method Detail
-
updateDOM
public void updateDOM(org.w3c.dom.Document dom, org.w3c.dom.Element configElement, EDLContext edlContext)- Specified by:
updateDOMin interfaceEDLModelComponent- Overrides:
updateDOMin classSimpleWorkflowEDLConfigComponent
-
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
-
-