Search in sources :

Example 1 with ItemDefinitionReference

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

the class ItemDefinitionReferenceImpl method registerType.

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

        public ItemDefinitionReference newInstance(ModelTypeInstanceContext instanceContext) {
            return new ItemDefinitionReferenceImpl(instanceContext);
        }
    });
    typeBuilder.build();
}
Also used : ItemDefinitionReference(org.camunda.bpm.model.dmn.instance.ItemDefinitionReference) 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 ItemDefinitionReference (org.camunda.bpm.model.dmn.instance.ItemDefinitionReference)1 ModelTypeInstanceContext (org.camunda.bpm.model.xml.impl.instance.ModelTypeInstanceContext)1 ModelElementTypeBuilder (org.camunda.bpm.model.xml.type.ModelElementTypeBuilder)1