Search in sources :

Example 1 with ModelBuildOperation

use of org.camunda.bpm.model.xml.impl.ModelBuildOperation in project camunda-xml-model by camunda.

the class ChildElementCollectionBuilderImpl method performModelBuild.

public void performModelBuild(Model model) {
    ModelElementType elementType = model.getType(childElementType);
    if (elementType == null) {
        throw new ModelException(parentElementType + " declares undefined child element of type " + childElementType + ".");
    }
    parentElementType.registerChildElementType(elementType);
    parentElementType.registerChildElementCollection(collection);
    for (ModelBuildOperation modelBuildOperation : modelBuildOperations) {
        modelBuildOperation.performModelBuild(model);
    }
}
Also used : ModelElementType(org.camunda.bpm.model.xml.type.ModelElementType) ModelException(org.camunda.bpm.model.xml.ModelException) ModelBuildOperation(org.camunda.bpm.model.xml.impl.ModelBuildOperation)

Aggregations

ModelException (org.camunda.bpm.model.xml.ModelException)1 ModelBuildOperation (org.camunda.bpm.model.xml.impl.ModelBuildOperation)1 ModelElementType (org.camunda.bpm.model.xml.type.ModelElementType)1