本文整理汇总了Java中org.eclipse.bpmn2.CompensateEventDefinition类的典型用法代码示例。如果您正苦于以下问题:Java CompensateEventDefinition类的具体用法?Java CompensateEventDefinition怎么用?Java CompensateEventDefinition使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
CompensateEventDefinition类属于org.eclipse.bpmn2包,在下文中一共展示了CompensateEventDefinition类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getText
import org.eclipse.bpmn2.CompensateEventDefinition; //导入依赖的package包/类
/**
* This returns the label text for the adapted class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public String getText(Object object) {
String label = ((CompensateEventDefinition) object).getId();
return label == null || label.length() == 0 ? getString("_UI_CompensateEventDefinition_type")
: getString("_UI_CompensateEventDefinition_type") + " " + label;
}
示例2: notifyChanged
import org.eclipse.bpmn2.CompensateEventDefinition; //导入依赖的package包/类
/**
* This handles model notifications by calling {@link #updateChildren} to update any cached
* children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void notifyChanged(Notification notification) {
updateChildren(notification);
switch (notification.getFeatureID(CompensateEventDefinition.class)) {
case Bpmn2Package.COMPENSATE_EVENT_DEFINITION__WAIT_FOR_COMPLETION:
fireNotifyChanged(new ViewerNotification(notification,
notification.getNotifier(), false, true));
return;
}
super.notifyChanged(notification);
}
示例3: basicSetCompensateEventDefinition
import org.eclipse.bpmn2.CompensateEventDefinition; //导入依赖的package包/类
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public NotificationChain basicSetCompensateEventDefinition(
CompensateEventDefinition newCompensateEventDefinition,
NotificationChain msgs) {
return ((FeatureMap.Internal) getMixed())
.basicAdd(
Bpmn2Package.Literals.DOCUMENT_ROOT__COMPENSATE_EVENT_DEFINITION,
newCompensateEventDefinition, msgs);
}
示例4: setCompensateEventDefinition
import org.eclipse.bpmn2.CompensateEventDefinition; //导入依赖的package包/类
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setCompensateEventDefinition(
CompensateEventDefinition newCompensateEventDefinition) {
((FeatureMap.Internal) getMixed())
.set(Bpmn2Package.Literals.DOCUMENT_ROOT__COMPENSATE_EVENT_DEFINITION,
newCompensateEventDefinition);
}
示例5: basicSetCompensateEventDefinition
import org.eclipse.bpmn2.CompensateEventDefinition; //导入依赖的package包/类
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public NotificationChain basicSetCompensateEventDefinition(
CompensateEventDefinition newCompensateEventDefinition, NotificationChain msgs) {
return ((FeatureMap.Internal) getMixed()).basicAdd(
Bpmn2Package.Literals.DOCUMENT_ROOT__COMPENSATE_EVENT_DEFINITION,
newCompensateEventDefinition, msgs);
}
示例6: caseCompensateEventDefinition
import org.eclipse.bpmn2.CompensateEventDefinition; //导入依赖的package包/类
@Override
public Adapter caseCompensateEventDefinition(
CompensateEventDefinition object) {
return createCompensateEventDefinitionAdapter();
}
示例7: getCompensateEventDefinition
import org.eclipse.bpmn2.CompensateEventDefinition; //导入依赖的package包/类
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public CompensateEventDefinition getCompensateEventDefinition() {
return (CompensateEventDefinition) getMixed()
.get(Bpmn2Package.Literals.DOCUMENT_ROOT__COMPENSATE_EVENT_DEFINITION,
true);
}
示例8: caseCompensateEventDefinition
import org.eclipse.bpmn2.CompensateEventDefinition; //导入依赖的package包/类
@Override
public Adapter caseCompensateEventDefinition(CompensateEventDefinition object) {
return createCompensateEventDefinitionAdapter();
}
示例9: setCompensateEventDefinition
import org.eclipse.bpmn2.CompensateEventDefinition; //导入依赖的package包/类
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setCompensateEventDefinition(CompensateEventDefinition newCompensateEventDefinition) {
((FeatureMap.Internal) getMixed()).set(
Bpmn2Package.Literals.DOCUMENT_ROOT__COMPENSATE_EVENT_DEFINITION,
newCompensateEventDefinition);
}
示例10: marshallIntermediateCatchEvent
import org.eclipse.bpmn2.CompensateEventDefinition; //导入依赖的package包/类
protected void marshallIntermediateCatchEvent(IntermediateCatchEvent catchEvent,
BPMNPlane plane,
JsonGenerator generator,
float xOffset,
float yOffset,
Map<String, Object> properties) throws JsonGenerationException, IOException {
List<EventDefinition> eventDefinitions = catchEvent.getEventDefinitions();
// simulation properties
setSimulationProperties(catchEvent.getId(),
properties);
if (eventDefinitions.size() == 1) {
EventDefinition eventDefinition = eventDefinitions.get(0);
if (eventDefinition instanceof SignalEventDefinition) {
marshallNode(catchEvent,
properties,
"IntermediateSignalEventCatching",
plane,
generator,
xOffset,
yOffset);
} else if (eventDefinition instanceof MessageEventDefinition) {
marshallNode(catchEvent,
properties,
"IntermediateMessageEventCatching",
plane,
generator,
xOffset,
yOffset);
} else if (eventDefinition instanceof TimerEventDefinition) {
marshallNode(catchEvent,
properties,
"IntermediateTimerEvent",
plane,
generator,
xOffset,
yOffset);
} else if (eventDefinition instanceof ConditionalEventDefinition) {
marshallNode(catchEvent,
properties,
"IntermediateConditionalEvent",
plane,
generator,
xOffset,
yOffset);
} else if (eventDefinition instanceof ErrorEventDefinition) {
marshallNode(catchEvent,
properties,
"IntermediateErrorEvent",
plane,
generator,
xOffset,
yOffset);
} else if (eventDefinition instanceof EscalationEventDefinition) {
marshallNode(catchEvent,
properties,
"IntermediateEscalationEvent",
plane,
generator,
xOffset,
yOffset);
} else if (eventDefinition instanceof CompensateEventDefinition) {
marshallNode(catchEvent,
properties,
"IntermediateCompensationEventCatching",
plane,
generator,
xOffset,
yOffset);
} else {
throw new UnsupportedOperationException("Event definition not supported: " + eventDefinition);
}
} else {
throw new UnsupportedOperationException("Intermediate catch event does not have event definition.");
}
}
示例11: marshallIntermediateThrowEvent
import org.eclipse.bpmn2.CompensateEventDefinition; //导入依赖的package包/类
protected void marshallIntermediateThrowEvent(IntermediateThrowEvent throwEvent,
BPMNPlane plane,
JsonGenerator generator,
float xOffset,
float yOffset,
Map<String, Object> properties) throws JsonGenerationException, IOException {
List<EventDefinition> eventDefinitions = throwEvent.getEventDefinitions();
// simulation properties
setSimulationProperties(throwEvent.getId(),
properties);
if (eventDefinitions.size() == 0) {
marshallNode(throwEvent,
properties,
"IntermediateEvent",
plane,
generator,
xOffset,
yOffset);
} else if (eventDefinitions.size() == 1) {
EventDefinition eventDefinition = eventDefinitions.get(0);
if (eventDefinition instanceof SignalEventDefinition) {
marshallNode(throwEvent,
properties,
"IntermediateSignalEventThrowing",
plane,
generator,
xOffset,
yOffset);
} else if (eventDefinition instanceof MessageEventDefinition) {
marshallNode(throwEvent,
properties,
"IntermediateMessageEventThrowing",
plane,
generator,
xOffset,
yOffset);
} else if (eventDefinition instanceof EscalationEventDefinition) {
marshallNode(throwEvent,
properties,
"IntermediateEscalationEventThrowing",
plane,
generator,
xOffset,
yOffset);
} else if (eventDefinition instanceof CompensateEventDefinition) {
marshallNode(throwEvent,
properties,
"IntermediateCompensationEventThrowing",
plane,
generator,
xOffset,
yOffset);
} else {
throw new UnsupportedOperationException("Event definition not supported: " + eventDefinition);
}
} else {
throw new UnsupportedOperationException("None or multiple event definitions not supported for intermediate throw event");
}
}
示例12: getFixture
import org.eclipse.bpmn2.CompensateEventDefinition; //导入依赖的package包/类
/**
* Returns the fixture for this Compensate Event Definition test case.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
protected CompensateEventDefinition getFixture() {
return (CompensateEventDefinition) fixture;
}
示例13: caseCompensateEventDefinition
import org.eclipse.bpmn2.CompensateEventDefinition; //导入依赖的package包/类
/**
* Returns the result of interpreting the object as an instance of '<em>Compensate Event Definition</em>'.
* <!-- begin-user-doc -->
* This implementation returns null;
* returning a non-null result will terminate the switch.
* <!-- end-user-doc -->
* @param object the target of the switch.
* @return the result of interpreting the object as an instance of '<em>Compensate Event Definition</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T caseCompensateEventDefinition(CompensateEventDefinition object) {
return null;
}
示例14: createCompensateEventDefinition
import org.eclipse.bpmn2.CompensateEventDefinition; //导入依赖的package包/类
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public CompensateEventDefinition createCompensateEventDefinition() {
CompensateEventDefinitionImpl compensateEventDefinition = new CompensateEventDefinitionImpl();
return compensateEventDefinition;
}
示例15: caseCompensateEventDefinition
import org.eclipse.bpmn2.CompensateEventDefinition; //导入依赖的package包/类
/**
* Returns the result of interpreting the object as an instance of '<em>Compensate Event Definition</em>'.
* <!-- begin-user-doc -->
* This implementation returns null;
* returning a non-null result will terminate the switch.
* <!-- end-user-doc -->
* @param object the target of the switch.
* @return the result of interpreting the object as an instance of '<em>Compensate Event Definition</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T caseCompensateEventDefinition(CompensateEventDefinition object) {
return null;
}