use of org.camunda.bpm.model.bpmn.instance.bpmndi.BpmnLabelStyle in project camunda-bpmn-model by camunda.
the class BpmnLabelStyleImpl method registerType.
public static void registerType(ModelBuilder modelBuilder) {
ModelElementTypeBuilder typeBuilder = modelBuilder.defineType(BpmnLabelStyle.class, BPMNDI_ELEMENT_BPMN_LABEL_STYLE).namespaceUri(BPMNDI_NS).extendsType(Style.class).instanceProvider(new ModelTypeInstanceProvider<BpmnLabelStyle>() {
public BpmnLabelStyle newInstance(ModelTypeInstanceContext instanceContext) {
return new BpmnLabelStyleImpl(instanceContext);
}
});
SequenceBuilder sequenceBuilder = typeBuilder.sequence();
fontChild = sequenceBuilder.element(Font.class).required().build();
typeBuilder.build();
}
Aggregations