Search in sources :

Example 1 with OutputClause

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

the class OutputClauseImpl method registerType.

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

        public OutputClause newInstance(ModelTypeInstanceContext instanceContext) {
            return new OutputClauseImpl(instanceContext);
        }
    });
    nameAttribute = typeBuilder.stringAttribute(DMN_ATTRIBUTE_NAME).build();
    typeRefAttribute = typeBuilder.stringAttribute(DMN_ATTRIBUTE_TYPE_REF).build();
    SequenceBuilder sequenceBuilder = typeBuilder.sequence();
    outputValuesChild = sequenceBuilder.element(OutputValues.class).build();
    defaultOutputEntryChild = sequenceBuilder.element(DefaultOutputEntry.class).build();
    typeBuilder.build();
}
Also used : OutputClause(org.camunda.bpm.model.dmn.instance.OutputClause) 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)

Aggregations

DmnElement (org.camunda.bpm.model.dmn.instance.DmnElement)1 OutputClause (org.camunda.bpm.model.dmn.instance.OutputClause)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