Search in sources :

Example 1 with Description

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

the class DescriptionImpl method registerType.

public static void registerType(ModelBuilder modelBuilder) {
    ModelElementTypeBuilder typeBuilder = modelBuilder.defineType(Description.class, DMN_ELEMENT_DESCRIPTION).namespaceUri(DMN11_NS).instanceProvider(new ModelTypeInstanceProvider<Description>() {

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

Aggregations

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