Class AbstractBaseElementBuilder<B extends AbstractBaseElementBuilder<B,E>,E extends BaseElement>
- java.lang.Object
-
- org.camunda.bpm.model.bpmn.builder.AbstractBpmnModelElementBuilder<B,E>
-
- org.camunda.bpm.model.bpmn.builder.AbstractBaseElementBuilder<B,E>
-
- Direct Known Subclasses:
AbstractFlowElementBuilder,AbstractMultiInstanceLoopCharacteristicsBuilder,AbstractRootElementBuilder
public abstract class AbstractBaseElementBuilder<B extends AbstractBaseElementBuilder<B,E>,E extends BaseElement> extends AbstractBpmnModelElementBuilder<B,E>
- Author:
- Sebastian Menski
-
-
Field Summary
Fields Modifier and Type Field Description static doubleSPACE-
Fields inherited from class org.camunda.bpm.model.bpmn.builder.AbstractBpmnModelElementBuilder
element, modelInstance, myself
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractBaseElementBuilder(BpmnModelInstance modelInstance, E element, java.lang.Class<?> selfType)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description BaddExtensionElement(BpmnModelElementInstance extensionElement)Add an extension element to the element.BpmnEdgecreateBpmnEdge(SequenceFlow sequenceFlow)Deprecated.usecreateEdge(BaseElement)insteadBpmnShapecreateBpmnShape(FlowNode node)protected <T extends BpmnModelElementInstance>
TcreateChild(java.lang.Class<T> typeClass)protected <T extends BaseElement>
TcreateChild(java.lang.Class<T> typeClass, java.lang.String identifier)protected <T extends BpmnModelElementInstance>
TcreateChild(BpmnModelElementInstance parent, java.lang.Class<T> typeClass)protected <T extends BaseElement>
TcreateChild(BpmnModelElementInstance parent, java.lang.Class<T> typeClass, java.lang.String identifier)protected CompensateEventDefinitioncreateCompensateEventDefinition()BpmnEdgecreateEdge(BaseElement baseElement)protected ErrorEventDefinitioncreateEmptyErrorEventDefinition()protected MessageEventDefinitioncreateEmptyMessageEventDefinition()protected ErrorEventDefinitioncreateErrorEventDefinition(java.lang.String errorCode)protected ErrorEventDefinitioncreateErrorEventDefinition(java.lang.String errorCode, java.lang.String errorMessage)protected EscalationEventDefinitioncreateEscalationEventDefinition(java.lang.String escalationCode)protected <T extends BpmnModelElementInstance>
TcreateInstance(java.lang.Class<T> typeClass)protected <T extends BaseElement>
TcreateInstance(java.lang.Class<T> typeClass, java.lang.String identifier)protected MessageEventDefinitioncreateMessageEventDefinition(java.lang.String messageName)protected <T extends BpmnModelElementInstance>
TcreateSibling(java.lang.Class<T> typeClass)protected <T extends BaseElement>
TcreateSibling(java.lang.Class<T> typeClass, java.lang.String identifier)protected SignalEventDefinitioncreateSignalEventDefinition(java.lang.String signalName)protected TimerEventDefinitioncreateTimeCycle(java.lang.String timerCycle)protected TimerEventDefinitioncreateTimeDate(java.lang.String timerDate)protected TimerEventDefinitioncreateTimeDuration(java.lang.String timerDuration)Bdocumentation(java.lang.String documentation)Sets the documentation of the element.protected BpmnEdgefindBpmnEdge(BaseElement sequenceFlow)protected BpmnPlanefindBpmnPlane()protected BpmnShapefindBpmnShape(BaseElement node)protected ErrorEventDefinitionfindErrorDefinitionForCode(java.lang.String errorCode)protected ErrorfindErrorForNameAndCode(java.lang.String errorCode)protected ErrorfindErrorForNameAndCode(java.lang.String errorCode, java.lang.String errorMessage)protected EscalationfindEscalationForCode(java.lang.String escalationCode)protected MessagefindMessageForName(java.lang.String messageName)protected SignalfindSignalForName(java.lang.String signalName)protected <T extends BpmnModelElementInstance>
TgetCreateSingleChild(java.lang.Class<T> typeClass)protected <T extends BpmnModelElementInstance>
TgetCreateSingleChild(BpmnModelElementInstance parent, java.lang.Class<T> typeClass)protected <T extends BpmnModelElementInstance>
TgetCreateSingleExtensionElement(java.lang.Class<T> typeClass)Bid(java.lang.String identifier)Sets the identifier of the element.protected voidresizeSubProcess(BpmnShape innerShape)protected voidsetCoordinates(BpmnShape shape)protected voidsetWaypoints(BpmnEdge edge)protected voidsetWaypointsWithSourceAndTarget(BpmnEdge edge, FlowNode edgeSource, FlowNode edgeTarget)-
Methods inherited from class org.camunda.bpm.model.bpmn.builder.AbstractBpmnModelElementBuilder
done, getElement, subProcessDone, throwEventDefinitionDone, transactionDone
-
-
-
-
Field Detail
-
SPACE
public static final double SPACE
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
AbstractBaseElementBuilder
protected AbstractBaseElementBuilder(BpmnModelInstance modelInstance, E element, java.lang.Class<?> selfType)
-
-
Method Detail
-
createInstance
protected <T extends BpmnModelElementInstance> T createInstance(java.lang.Class<T> typeClass)
-
createInstance
protected <T extends BaseElement> T createInstance(java.lang.Class<T> typeClass, java.lang.String identifier)
-
createChild
protected <T extends BpmnModelElementInstance> T createChild(java.lang.Class<T> typeClass)
-
createChild
protected <T extends BaseElement> T createChild(java.lang.Class<T> typeClass, java.lang.String identifier)
-
createChild
protected <T extends BpmnModelElementInstance> T createChild(BpmnModelElementInstance parent, java.lang.Class<T> typeClass)
-
createChild
protected <T extends BaseElement> T createChild(BpmnModelElementInstance parent, java.lang.Class<T> typeClass, java.lang.String identifier)
-
createSibling
protected <T extends BpmnModelElementInstance> T createSibling(java.lang.Class<T> typeClass)
-
createSibling
protected <T extends BaseElement> T createSibling(java.lang.Class<T> typeClass, java.lang.String identifier)
-
getCreateSingleChild
protected <T extends BpmnModelElementInstance> T getCreateSingleChild(java.lang.Class<T> typeClass)
-
getCreateSingleChild
protected <T extends BpmnModelElementInstance> T getCreateSingleChild(BpmnModelElementInstance parent, java.lang.Class<T> typeClass)
-
getCreateSingleExtensionElement
protected <T extends BpmnModelElementInstance> T getCreateSingleExtensionElement(java.lang.Class<T> typeClass)
-
findMessageForName
protected Message findMessageForName(java.lang.String messageName)
-
createMessageEventDefinition
protected MessageEventDefinition createMessageEventDefinition(java.lang.String messageName)
-
createEmptyMessageEventDefinition
protected MessageEventDefinition createEmptyMessageEventDefinition()
-
findSignalForName
protected Signal findSignalForName(java.lang.String signalName)
-
createSignalEventDefinition
protected SignalEventDefinition createSignalEventDefinition(java.lang.String signalName)
-
findErrorDefinitionForCode
protected ErrorEventDefinition findErrorDefinitionForCode(java.lang.String errorCode)
-
findErrorForNameAndCode
protected Error findErrorForNameAndCode(java.lang.String errorCode)
-
findErrorForNameAndCode
protected Error findErrorForNameAndCode(java.lang.String errorCode, java.lang.String errorMessage)
-
createEmptyErrorEventDefinition
protected ErrorEventDefinition createEmptyErrorEventDefinition()
-
createErrorEventDefinition
protected ErrorEventDefinition createErrorEventDefinition(java.lang.String errorCode)
-
createErrorEventDefinition
protected ErrorEventDefinition createErrorEventDefinition(java.lang.String errorCode, java.lang.String errorMessage)
-
findEscalationForCode
protected Escalation findEscalationForCode(java.lang.String escalationCode)
-
createEscalationEventDefinition
protected EscalationEventDefinition createEscalationEventDefinition(java.lang.String escalationCode)
-
createCompensateEventDefinition
protected CompensateEventDefinition createCompensateEventDefinition()
-
id
public B id(java.lang.String identifier)
Sets the identifier of the element.- Parameters:
identifier- the identifier to set- Returns:
- the builder object
-
documentation
public B documentation(java.lang.String documentation)
Sets the documentation of the element.- Parameters:
documentation- the documentation to set- Returns:
- the builder object
-
addExtensionElement
public B addExtensionElement(BpmnModelElementInstance extensionElement)
Add an extension element to the element.- Parameters:
extensionElement- the extension element to add- Returns:
- the builder object
-
setCoordinates
protected void setCoordinates(BpmnShape shape)
-
createBpmnEdge
@Deprecated public BpmnEdge createBpmnEdge(SequenceFlow sequenceFlow)
Deprecated.usecreateEdge(BaseElement)instead
-
createEdge
public BpmnEdge createEdge(BaseElement baseElement)
-
setWaypoints
protected void setWaypoints(BpmnEdge edge)
-
setWaypointsWithSourceAndTarget
protected void setWaypointsWithSourceAndTarget(BpmnEdge edge, FlowNode edgeSource, FlowNode edgeTarget)
-
findBpmnPlane
protected BpmnPlane findBpmnPlane()
-
findBpmnShape
protected BpmnShape findBpmnShape(BaseElement node)
-
findBpmnEdge
protected BpmnEdge findBpmnEdge(BaseElement sequenceFlow)
-
resizeSubProcess
protected void resizeSubProcess(BpmnShape innerShape)
-
createTimeCycle
protected TimerEventDefinition createTimeCycle(java.lang.String timerCycle)
-
createTimeDate
protected TimerEventDefinition createTimeDate(java.lang.String timerDate)
-
createTimeDuration
protected TimerEventDefinition createTimeDuration(java.lang.String timerDuration)
-
-