use of org.camunda.bpm.model.xml.type.child.SequenceBuilder in project camunda-bpmn-model by camunda.
the class PlaneImpl method registerType.
public static void registerType(ModelBuilder modelBuilder) {
ModelElementTypeBuilder typeBuilder = modelBuilder.defineType(Plane.class, DI_ELEMENT_PLANE).namespaceUri(DI_NS).extendsType(Node.class).abstractType();
SequenceBuilder sequenceBuilder = typeBuilder.sequence();
diagramElementCollection = sequenceBuilder.elementCollection(DiagramElement.class).build();
typeBuilder.build();
}
use of org.camunda.bpm.model.xml.type.child.SequenceBuilder in project camunda-bpmn-model by camunda.
the class ShapeImpl method registerType.
public static void registerType(ModelBuilder modelBuilder) {
ModelElementTypeBuilder typeBuilder = modelBuilder.defineType(Shape.class, DI_ELEMENT_SHAPE).namespaceUri(DI_NS).extendsType(Node.class).abstractType();
SequenceBuilder sequenceBuilder = typeBuilder.sequence();
boundsChild = sequenceBuilder.element(Bounds.class).required().build();
typeBuilder.build();
}
use of org.camunda.bpm.model.xml.type.child.SequenceBuilder 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();
}
use of org.camunda.bpm.model.xml.type.child.SequenceBuilder in project camunda-bpmn-model by camunda.
the class LaneImpl method registerType.
public static void registerType(ModelBuilder modelBuilder) {
ModelElementTypeBuilder typeBuilder = modelBuilder.defineType(Lane.class, BPMN_ELEMENT_LANE).namespaceUri(BPMN20_NS).extendsType(BaseElement.class).instanceProvider(new ModelTypeInstanceProvider<Lane>() {
public Lane newInstance(ModelTypeInstanceContext instanceContext) {
return new LaneImpl(instanceContext);
}
});
nameAttribute = typeBuilder.stringAttribute(BPMN_ATTRIBUTE_NAME).build();
partitionElementRefAttribute = typeBuilder.stringAttribute(BPMN_ATTRIBUTE_PARTITION_ELEMENT_REF).qNameAttributeReference(PartitionElement.class).build();
SequenceBuilder sequenceBuilder = typeBuilder.sequence();
partitionElementChild = sequenceBuilder.element(PartitionElement.class).build();
flowNodeRefCollection = sequenceBuilder.elementCollection(FlowNodeRef.class).idElementReferenceCollection(FlowNode.class).build();
childLaneSetChild = sequenceBuilder.element(ChildLaneSet.class).build();
typeBuilder.build();
}
use of org.camunda.bpm.model.xml.type.child.SequenceBuilder in project camunda-bpmn-model by camunda.
the class LaneSetImpl method registerType.
public static void registerType(ModelBuilder modelBuilder) {
ModelElementTypeBuilder typeBuilder = modelBuilder.defineType(LaneSet.class, BPMN_ELEMENT_LANE_SET).namespaceUri(BPMN20_NS).extendsType(BaseElement.class).instanceProvider(new ModelTypeInstanceProvider<LaneSet>() {
public LaneSet newInstance(ModelTypeInstanceContext instanceContext) {
return new LaneSetImpl(instanceContext);
}
});
nameAttribute = typeBuilder.stringAttribute(BPMN_ATTRIBUTE_NAME).build();
SequenceBuilder sequenceBuilder = typeBuilder.sequence();
laneCollection = sequenceBuilder.elementCollection(Lane.class).build();
typeBuilder.build();
}
Aggregations