Search in sources :

Example 1 with TargetRef

use of org.camunda.bpm.model.dmn.instance.TargetRef in project camunda-dmn-model by camunda.

the class TargetRefImpl method registerType.

public static void registerType(ModelBuilder modelBuilder) {
    ModelElementTypeBuilder typeBuilder = modelBuilder.defineType(TargetRef.class, DMN_ELEMENT_TARGET_REF).namespaceUri(DMN11_NS).extendsType(DmnElementReference.class).instanceProvider(new ModelTypeInstanceProvider<TargetRef>() {

        public TargetRef newInstance(ModelTypeInstanceContext instanceContext) {
            return new TargetRefImpl(instanceContext);
        }
    });
    typeBuilder.build();
}
Also used : TargetRef(org.camunda.bpm.model.dmn.instance.TargetRef) ModelElementTypeBuilder(org.camunda.bpm.model.xml.type.ModelElementTypeBuilder) DmnElementReference(org.camunda.bpm.model.dmn.instance.DmnElementReference) ModelTypeInstanceContext(org.camunda.bpm.model.xml.impl.instance.ModelTypeInstanceContext)

Aggregations

DmnElementReference (org.camunda.bpm.model.dmn.instance.DmnElementReference)1 TargetRef (org.camunda.bpm.model.dmn.instance.TargetRef)1 ModelTypeInstanceContext (org.camunda.bpm.model.xml.impl.instance.ModelTypeInstanceContext)1 ModelElementTypeBuilder (org.camunda.bpm.model.xml.type.ModelElementTypeBuilder)1