Search in sources :

Example 1 with TypeRef

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

the class TypeRefImpl method registerType.

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

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

Aggregations

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