use of org.camunda.bpm.model.bpmn.instance.bpmndi.BpmnLabel in project camunda-bpmn-model by camunda.
the class BpmnLabelImpl method registerType.
public static void registerType(ModelBuilder modelBuilder) {
ModelElementTypeBuilder typeBuilder = modelBuilder.defineType(BpmnLabel.class, BPMNDI_ELEMENT_BPMN_LABEL).namespaceUri(BPMNDI_NS).extendsType(Label.class).instanceProvider(new ModelTypeInstanceProvider<BpmnLabel>() {
public BpmnLabel newInstance(ModelTypeInstanceContext instanceContext) {
return new BpmnLabelImpl(instanceContext);
}
});
labelStyleAttribute = typeBuilder.stringAttribute(BPMNDI_ATTRIBUTE_LABEL_STYLE).qNameAttributeReference(BpmnLabelStyle.class).build();
typeBuilder.build();
}
Aggregations