use of org.camunda.bpm.model.xml.impl.instance.ModelTypeInstanceContext in project camunda-dmn-model by camunda.
the class ImportedElementImpl method registerType.
public static void registerType(ModelBuilder modelBuilder) {
ModelElementTypeBuilder typeBuilder = modelBuilder.defineType(ImportedElement.class, DMN_ELEMENT_IMPORTED_ELEMENT).namespaceUri(DMN11_NS).instanceProvider(new ModelTypeInstanceProvider<ImportedElement>() {
public ImportedElement newInstance(ModelTypeInstanceContext instanceContext) {
return new ImportedElementImpl(instanceContext);
}
});
typeBuilder.build();
}
use of org.camunda.bpm.model.xml.impl.instance.ModelTypeInstanceContext in project camunda-dmn-model by camunda.
the class InformationItemImpl method registerType.
public static void registerType(ModelBuilder modelBuilder) {
ModelElementTypeBuilder typeBuilder = modelBuilder.defineType(InformationItem.class, DMN_ELEMENT_INFORMATION_ITEM).namespaceUri(DMN11_NS).extendsType(NamedElement.class).instanceProvider(new ModelTypeInstanceProvider<InformationItem>() {
public InformationItem newInstance(ModelTypeInstanceContext instanceContext) {
return new InformationItemImpl(instanceContext);
}
});
typeRefAttribute = typeBuilder.stringAttribute(DMN_ATTRIBUTE_TYPE_REF).build();
typeBuilder.build();
}
use of org.camunda.bpm.model.xml.impl.instance.ModelTypeInstanceContext in project camunda-dmn-model by camunda.
the class InputClauseImpl method registerType.
public static void registerType(ModelBuilder modelBuilder) {
ModelElementTypeBuilder typeBuilder = modelBuilder.defineType(InputClause.class, DMN_ELEMENT_INPUT_CLAUSE).namespaceUri(DMN11_NS).extendsType(DmnElement.class).instanceProvider(new ModelTypeInstanceProvider<InputClause>() {
public InputClause newInstance(ModelTypeInstanceContext instanceContext) {
return new InputClauseImpl(instanceContext);
}
});
SequenceBuilder sequenceBuilder = typeBuilder.sequence();
inputExpressionChild = sequenceBuilder.element(InputExpression.class).required().build();
inputValuesChild = sequenceBuilder.element(InputValues.class).build();
// camunda extensions
camundaInputVariableAttribute = typeBuilder.stringAttribute(CAMUNDA_ATTRIBUTE_INPUT_VARIABLE).namespace(CAMUNDA_NS).build();
typeBuilder.build();
}
use of org.camunda.bpm.model.xml.impl.instance.ModelTypeInstanceContext in project camunda-dmn-model by camunda.
the class InputDataImpl method registerType.
public static void registerType(ModelBuilder modelBuilder) {
ModelElementTypeBuilder typeBuilder = modelBuilder.defineType(InputData.class, DMN_ELEMENT_INPUT_DATA).namespaceUri(DMN11_NS).extendsType(DrgElement.class).instanceProvider(new ModelTypeInstanceProvider<InputData>() {
public InputData newInstance(ModelTypeInstanceContext instanceContext) {
return new InputDataImpl(instanceContext);
}
});
SequenceBuilder sequenceBuilder = typeBuilder.sequence();
informationItemChild = sequenceBuilder.element(InformationItem.class).build();
typeBuilder.build();
}
use of org.camunda.bpm.model.xml.impl.instance.ModelTypeInstanceContext in project camunda-dmn-model by camunda.
the class InputDataReferenceImpl method registerType.
public static void registerType(ModelBuilder modelBuilder) {
ModelElementTypeBuilder typeBuilder = modelBuilder.defineType(InputDataReference.class, DMN_ELEMENT_INPUT_DATA_REFERENCE).namespaceUri(DMN11_NS).extendsType(DmnElementReference.class).instanceProvider(new ModelTypeInstanceProvider<InputDataReference>() {
public InputDataReference newInstance(ModelTypeInstanceContext instanceContext) {
return new InputDataReferenceImpl(instanceContext);
}
});
typeBuilder.build();
}
Aggregations