Search in sources :

Example 1 with DmnElementReference

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

the class DmnElementReferenceImpl method registerType.

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

        public DmnElementReference newInstance(ModelTypeInstanceContext instanceContext) {
            return new DmnElementReferenceImpl(instanceContext);
        }
    });
    hrefAttribute = typeBuilder.stringAttribute(DMN_ATTRIBUTE_HREF).required().build();
    typeBuilder.build();
}
Also used : 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 ModelTypeInstanceContext (org.camunda.bpm.model.xml.impl.instance.ModelTypeInstanceContext)1 ModelElementTypeBuilder (org.camunda.bpm.model.xml.type.ModelElementTypeBuilder)1