use of org.camunda.bpm.model.xml.type.ModelElementTypeBuilder in project camunda-dmn-model by camunda.
the class UsingProcessReferenceImpl method registerType.
public static void registerType(ModelBuilder modelBuilder) {
ModelElementTypeBuilder typeBuilder = modelBuilder.defineType(UsingProcessReference.class, DMN_ELEMENT_USING_PROCESS).namespaceUri(DMN11_NS).extendsType(DmnElementReference.class).instanceProvider(new ModelTypeInstanceProvider<UsingProcessReference>() {
public UsingProcessReference newInstance(ModelTypeInstanceContext instanceContext) {
return new UsingProcessReferenceImpl(instanceContext);
}
});
typeBuilder.build();
}
use of org.camunda.bpm.model.xml.type.ModelElementTypeBuilder in project camunda-dmn-model by camunda.
the class UsingTaskReferenceImpl method registerType.
public static void registerType(ModelBuilder modelBuilder) {
ModelElementTypeBuilder typeBuilder = modelBuilder.defineType(UsingTaskReference.class, DMN_ELEMENT_USING_TASK).namespaceUri(DMN11_NS).extendsType(DmnElementReference.class).instanceProvider(new ModelTypeInstanceProvider<UsingTaskReference>() {
public UsingTaskReference newInstance(ModelTypeInstanceContext instanceContext) {
return new UsingTaskReferenceImpl(instanceContext);
}
});
typeBuilder.build();
}
use of org.camunda.bpm.model.xml.type.ModelElementTypeBuilder in project camunda-dmn-model by camunda.
the class VariableImpl method registerType.
public static void registerType(ModelBuilder modelBuilder) {
ModelElementTypeBuilder typeBuilder = modelBuilder.defineType(Variable.class, DMN_ELEMENT_VARIABLE).namespaceUri(DMN11_NS).extendsType(InformationItem.class).instanceProvider(new ModelTypeInstanceProvider<Variable>() {
public Variable newInstance(ModelTypeInstanceContext instanceContext) {
return new VariableImpl(instanceContext);
}
});
typeBuilder.build();
}
use of org.camunda.bpm.model.xml.type.ModelElementTypeBuilder in project camunda-cmmn-model by camunda.
the class DocumentationImpl method registerType.
public static void registerType(ModelBuilder modelBuilder) {
ModelElementTypeBuilder typeBuilder = modelBuilder.defineType(Documentation.class, CMMN_ELEMENT_DOCUMENTATION).namespaceUri(CMMN11_NS).instanceProvider(new ModelTypeInstanceProvider<Documentation>() {
public Documentation newInstance(ModelTypeInstanceContext instanceContext) {
return new DocumentationImpl(instanceContext);
}
});
idAttribute = typeBuilder.stringAttribute(CMMN_ATTRIBUTE_ID).idAttribute().build();
textFormatAttribute = typeBuilder.stringAttribute(CMMN_ATTRIBUTE_TEXT_FORMAT).defaultValue("text/plain").build();
typeBuilder.build();
}
use of org.camunda.bpm.model.xml.type.ModelElementTypeBuilder in project camunda-cmmn-model by camunda.
the class EventImpl method registerType.
public static void registerType(ModelBuilder modelBuilder) {
ModelElementTypeBuilder typeBuilder = modelBuilder.defineType(Event.class, CMMN_ELEMENT_EVENT).namespaceUri(CMMN10_NS).extendsType(PlanItemDefinition.class).instanceProvider(new ModelTypeInstanceProvider<Event>() {
public Event newInstance(ModelTypeInstanceContext instanceContext) {
return new EventImpl(instanceContext);
}
});
typeBuilder.build();
}
Aggregations