Search in sources :

Example 1 with AllowedValues

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

the class AllowedValuesImpl method registerType.

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

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

Aggregations

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