use of org.camunda.bpm.model.xml.impl.instance.ModelTypeInstanceContext 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();
}
use of org.camunda.bpm.model.xml.impl.instance.ModelTypeInstanceContext in project camunda-dmn-model by camunda.
the class OutputValuesImpl method registerType.
public static void registerType(ModelBuilder modelBuilder) {
ModelElementTypeBuilder typeBuilder = modelBuilder.defineType(OutputValues.class, DMN_ELEMENT_OUTPUT_VALUES).namespaceUri(DMN11_NS).extendsType(UnaryTests.class).instanceProvider(new ModelTypeInstanceProvider<OutputValues>() {
public OutputValues newInstance(ModelTypeInstanceContext instanceContext) {
return new OutputValuesImpl(instanceContext);
}
});
typeBuilder.build();
}
use of org.camunda.bpm.model.xml.impl.instance.ModelTypeInstanceContext in project camunda-dmn-model by camunda.
the class OwnerReferenceImpl method registerType.
public static void registerType(ModelBuilder modelBuilder) {
ModelElementTypeBuilder typeBuilder = modelBuilder.defineType(OwnerReference.class, DMN_ELEMENT_OWNER).namespaceUri(DMN11_NS).extendsType(DmnElementReference.class).instanceProvider(new ModelTypeInstanceProvider<OwnerReference>() {
public OwnerReference newInstance(ModelTypeInstanceContext instanceContext) {
return new OwnerReferenceImpl(instanceContext);
}
});
typeBuilder.build();
}
use of org.camunda.bpm.model.xml.impl.instance.ModelTypeInstanceContext in project camunda-dmn-model by camunda.
the class PerformanceIndicatorImpl method registerType.
public static void registerType(ModelBuilder modelBuilder) {
ModelElementTypeBuilder typeBuilder = modelBuilder.defineType(PerformanceIndicator.class, DMN_ELEMENT_PERFORMANCE_INDICATOR).namespaceUri(DMN11_NS).extendsType(BusinessContextElement.class).instanceProvider(new ModelTypeInstanceProvider<PerformanceIndicator>() {
public PerformanceIndicator newInstance(ModelTypeInstanceContext instanceContext) {
return new PerformanceIndicatorImpl(instanceContext);
}
});
SequenceBuilder sequenceBuilder = typeBuilder.sequence();
impactingDecisionRefCollection = sequenceBuilder.elementCollection(ImpactingDecisionReference.class).uriElementReferenceCollection(Decision.class).build();
typeBuilder.build();
}
use of org.camunda.bpm.model.xml.impl.instance.ModelTypeInstanceContext in project camunda-dmn-model by camunda.
the class QuestionImpl method registerType.
public static void registerType(ModelBuilder modelBuilder) {
ModelElementTypeBuilder typeBuilder = modelBuilder.defineType(Question.class, DMN_ELEMENT_QUESTION).namespaceUri(DMN11_NS).instanceProvider(new ModelTypeInstanceProvider<Question>() {
public Question newInstance(ModelTypeInstanceContext instanceContext) {
return new QuestionImpl(instanceContext);
}
});
typeBuilder.build();
}
Aggregations