本文整理汇总了Java中org.eclipse.bpmn2.Bpmn2Package.SUB_PROCESS__FLOW_ELEMENTS属性的典型用法代码示例。如果您正苦于以下问题:Java Bpmn2Package.SUB_PROCESS__FLOW_ELEMENTS属性的具体用法?Java Bpmn2Package.SUB_PROCESS__FLOW_ELEMENTS怎么用?Java Bpmn2Package.SUB_PROCESS__FLOW_ELEMENTS使用的例子?那么恭喜您, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在类org.eclipse.bpmn2.Bpmn2Package
的用法示例。
在下文中一共展示了Bpmn2Package.SUB_PROCESS__FLOW_ELEMENTS属性的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: notifyChanged
/**
* 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(SubProcess.class)) {
case Bpmn2Package.SUB_PROCESS__TRIGGERED_BY_EVENT:
fireNotifyChanged(new ViewerNotification(notification,
notification.getNotifier(), false, true));
return;
case Bpmn2Package.SUB_PROCESS__LANE_SETS:
case Bpmn2Package.SUB_PROCESS__FLOW_ELEMENTS:
fireNotifyChanged(new ViewerNotification(notification,
notification.getNotifier(), true, false));
return;
}
super.notifyChanged(notification);
}
示例2: eInverseRemove
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public NotificationChain eInverseRemove(InternalEObject otherEnd,
int featureID, NotificationChain msgs) {
switch (featureID) {
case Bpmn2Package.SUB_PROCESS__LANE_SETS:
return ((InternalEList<?>) getLaneSets()).basicRemove(otherEnd,
msgs);
case Bpmn2Package.SUB_PROCESS__FLOW_ELEMENTS:
return ((InternalEList<?>) getFlowElements()).basicRemove(otherEnd,
msgs);
case Bpmn2Package.SUB_PROCESS__ARTIFACTS:
return ((InternalEList<?>) getArtifacts()).basicRemove(otherEnd,
msgs);
}
return super.eInverseRemove(otherEnd, featureID, msgs);
}
示例3: eSet
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@SuppressWarnings("unchecked")
@Override
public void eSet(int featureID, Object newValue) {
switch (featureID) {
case Bpmn2Package.SUB_PROCESS__LANE_SETS:
getLaneSets().clear();
getLaneSets().addAll((Collection<? extends LaneSet>) newValue);
return;
case Bpmn2Package.SUB_PROCESS__FLOW_ELEMENTS:
getFlowElements().clear();
getFlowElements().addAll(
(Collection<? extends FlowElement>) newValue);
return;
case Bpmn2Package.SUB_PROCESS__ARTIFACTS:
getArtifacts().clear();
getArtifacts().addAll((Collection<? extends Artifact>) newValue);
return;
case Bpmn2Package.SUB_PROCESS__TRIGGERED_BY_EVENT:
setTriggeredByEvent((Boolean) newValue);
return;
}
super.eSet(featureID, newValue);
}
示例4: eUnset
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void eUnset(int featureID) {
switch (featureID) {
case Bpmn2Package.SUB_PROCESS__LANE_SETS:
getLaneSets().clear();
return;
case Bpmn2Package.SUB_PROCESS__FLOW_ELEMENTS:
getFlowElements().clear();
return;
case Bpmn2Package.SUB_PROCESS__ARTIFACTS:
getArtifacts().clear();
return;
case Bpmn2Package.SUB_PROCESS__TRIGGERED_BY_EVENT:
setTriggeredByEvent(TRIGGERED_BY_EVENT_EDEFAULT);
return;
}
super.eUnset(featureID);
}
示例5: getFlowElements
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public List<FlowElement> getFlowElements() {
if (flowElements == null) {
flowElements = new EObjectContainmentEList<FlowElement>(
FlowElement.class, this,
Bpmn2Package.SUB_PROCESS__FLOW_ELEMENTS);
}
return flowElements;
}
示例6: eGet
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public Object eGet(int featureID, boolean resolve, boolean coreType) {
switch (featureID) {
case Bpmn2Package.SUB_PROCESS__LANE_SETS:
return getLaneSets();
case Bpmn2Package.SUB_PROCESS__FLOW_ELEMENTS:
return getFlowElements();
case Bpmn2Package.SUB_PROCESS__ARTIFACTS:
return getArtifacts();
case Bpmn2Package.SUB_PROCESS__TRIGGERED_BY_EVENT:
return isTriggeredByEvent();
}
return super.eGet(featureID, resolve, coreType);
}
示例7: eIsSet
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public boolean eIsSet(int featureID) {
switch (featureID) {
case Bpmn2Package.SUB_PROCESS__LANE_SETS:
return laneSets != null && !laneSets.isEmpty();
case Bpmn2Package.SUB_PROCESS__FLOW_ELEMENTS:
return flowElements != null && !flowElements.isEmpty();
case Bpmn2Package.SUB_PROCESS__ARTIFACTS:
return artifacts != null && !artifacts.isEmpty();
case Bpmn2Package.SUB_PROCESS__TRIGGERED_BY_EVENT:
return triggeredByEvent != TRIGGERED_BY_EVENT_EDEFAULT;
}
return super.eIsSet(featureID);
}
示例8: eBaseStructuralFeatureID
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public int eBaseStructuralFeatureID(int derivedFeatureID, Class<?> baseClass) {
if (baseClass == FlowElementsContainer.class) {
switch (derivedFeatureID) {
case Bpmn2Package.SUB_PROCESS__LANE_SETS:
return Bpmn2Package.FLOW_ELEMENTS_CONTAINER__LANE_SETS;
case Bpmn2Package.SUB_PROCESS__FLOW_ELEMENTS:
return Bpmn2Package.FLOW_ELEMENTS_CONTAINER__FLOW_ELEMENTS;
default:
return -1;
}
}
return super.eBaseStructuralFeatureID(derivedFeatureID, baseClass);
}
示例9: eDerivedStructuralFeatureID
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public int eDerivedStructuralFeatureID(int baseFeatureID, Class<?> baseClass) {
if (baseClass == FlowElementsContainer.class) {
switch (baseFeatureID) {
case Bpmn2Package.FLOW_ELEMENTS_CONTAINER__LANE_SETS:
return Bpmn2Package.SUB_PROCESS__LANE_SETS;
case Bpmn2Package.FLOW_ELEMENTS_CONTAINER__FLOW_ELEMENTS:
return Bpmn2Package.SUB_PROCESS__FLOW_ELEMENTS;
default:
return -1;
}
}
return super.eDerivedStructuralFeatureID(baseFeatureID, baseClass);
}