yawlfoundation / yawl

Yet Another Workflow Language
http://www.yawlfoundation.org
GNU Lesser General Public License v3.0
88 stars 35 forks source link

YDataValidator does not expose SchemaHandler handler #626

Closed Marco-Sulla closed 4 years ago

Marco-Sulla commented 5 years ago

The class YDataValidator uses internally a SchemaHandler, and does not expose it publicly. SchemaHandler is full of useful methods. One of them is getTypeMap(), that returns all the schemas of the parameter types as a map of org.jdom2.Elements.

Please, can you add a simple getHandler() to YDataValidator? I have to use reflections for now.

PS: I get the YDataValidator with

parameter.getParentDecomposition().getSpecification().getDataValidator();

where parameter is one of the YParameter. Can't you simply pass the YDecomposition to the AbstractCodelet constructor?

adamsmj commented 4 years ago

added YDataValidator#getSchemaHandler