Search in sources :

Example 1 with BpmnLabel

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();
}
Also used : BpmnLabel(org.camunda.bpm.model.bpmn.instance.bpmndi.BpmnLabel) BpmnLabel(org.camunda.bpm.model.bpmn.instance.bpmndi.BpmnLabel) Label(org.camunda.bpm.model.bpmn.instance.di.Label) ModelElementTypeBuilder(org.camunda.bpm.model.xml.type.ModelElementTypeBuilder) ModelTypeInstanceContext(org.camunda.bpm.model.xml.impl.instance.ModelTypeInstanceContext)

Aggregations

BpmnLabel (org.camunda.bpm.model.bpmn.instance.bpmndi.BpmnLabel)1 Label (org.camunda.bpm.model.bpmn.instance.di.Label)1 ModelTypeInstanceContext (org.camunda.bpm.model.xml.impl.instance.ModelTypeInstanceContext)1 ModelElementTypeBuilder (org.camunda.bpm.model.xml.type.ModelElementTypeBuilder)1