Search in sources :

Example 1 with Row

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

the class RowImpl method registerType.

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

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

Aggregations

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