Search in sources :

Example 1 with UnaryTests

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

the class UnaryTestsImpl method registerType.

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

        public UnaryTests newInstance(ModelTypeInstanceContext instanceContext) {
            return new UnaryTestsImpl(instanceContext);
        }
    });
    expressionLanguageAttribute = typeBuilder.stringAttribute(DMN_ATTRIBUTE_EXPRESSION_LANGUAGE).build();
    SequenceBuilder sequenceBuilder = typeBuilder.sequence();
    textChild = sequenceBuilder.element(Text.class).build();
    typeBuilder.build();
}
Also used : DmnElement(org.camunda.bpm.model.dmn.instance.DmnElement) SequenceBuilder(org.camunda.bpm.model.xml.type.child.SequenceBuilder) ModelElementTypeBuilder(org.camunda.bpm.model.xml.type.ModelElementTypeBuilder) ModelTypeInstanceContext(org.camunda.bpm.model.xml.impl.instance.ModelTypeInstanceContext) UnaryTests(org.camunda.bpm.model.dmn.instance.UnaryTests)

Aggregations

DmnElement (org.camunda.bpm.model.dmn.instance.DmnElement)1 UnaryTests (org.camunda.bpm.model.dmn.instance.UnaryTests)1 ModelTypeInstanceContext (org.camunda.bpm.model.xml.impl.instance.ModelTypeInstanceContext)1 ModelElementTypeBuilder (org.camunda.bpm.model.xml.type.ModelElementTypeBuilder)1 SequenceBuilder (org.camunda.bpm.model.xml.type.child.SequenceBuilder)1