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 double
SPACE
-
Fields inherited from class org.camunda.bpm.model.bpmn.builder.AbstractBpmnModelElementBuilder
element, modelInstance, myself
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractBaseElementBuilder(BpmnModelInstance modelInstance, E element, java.lang.Class<?> selfType)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description B
addExtensionElement(BpmnModelElementInstance extensionElement)
Add an extension element to the element.BpmnEdge
createBpmnEdge(SequenceFlow sequenceFlow)
Deprecated.usecreateEdge(BaseElement)
insteadBpmnShape
createBpmnShape(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 CompensateEventDefinition
createCompensateEventDefinition()
BpmnEdge
createEdge(BaseElement baseElement)
protected ErrorEventDefinition
createEmptyErrorEventDefinition()
protected MessageEventDefinition
createEmptyMessageEventDefinition()
protected ErrorEventDefinition
createErrorEventDefinition(java.lang.String errorCode)
protected ErrorEventDefinition
createErrorEventDefinition(java.lang.String errorCode, java.lang.String errorMessage)
protected EscalationEventDefinition
createEscalationEventDefinition(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 MessageEventDefinition
createMessageEventDefinition(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 SignalEventDefinition
createSignalEventDefinition(java.lang.String signalName)
protected TimerEventDefinition
createTimeCycle(java.lang.String timerCycle)
protected TimerEventDefinition
createTimeDate(java.lang.String timerDate)
protected TimerEventDefinition
createTimeDuration(java.lang.String timerDuration)
B
documentation(java.lang.String documentation)
Sets the documentation of the element.protected BpmnEdge
findBpmnEdge(BaseElement sequenceFlow)
protected BpmnPlane
findBpmnPlane()
protected BpmnShape
findBpmnShape(BaseElement node)
protected ErrorEventDefinition
findErrorDefinitionForCode(java.lang.String errorCode)
protected Error
findErrorForNameAndCode(java.lang.String errorCode)
protected Error
findErrorForNameAndCode(java.lang.String errorCode, java.lang.String errorMessage)
protected Escalation
findEscalationForCode(java.lang.String escalationCode)
protected Message
findMessageForName(java.lang.String messageName)
protected Signal
findSignalForName(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)
B
id(java.lang.String identifier)
Sets the identifier of the element.protected void
resizeSubProcess(BpmnShape innerShape)
protected void
setCoordinates(BpmnShape shape)
protected void
setWaypoints(BpmnEdge edge)
protected void
setWaypointsWithSourceAndTarget(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)
-
-