本文整理汇总了Java中org.eclipse.bpmn2.Bpmn2Package类的典型用法代码示例。如果您正苦于以下问题:Java Bpmn2Package类的具体用法?Java Bpmn2Package怎么用?Java Bpmn2Package使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
Bpmn2Package类属于org.eclipse.bpmn2包,在下文中一共展示了Bpmn2Package类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: eUnset
import org.eclipse.bpmn2.Bpmn2Package; //导入依赖的package包/类
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void eUnset(int featureID) {
switch (featureID) {
case Bpmn2Package.DATA_OUTPUT__OUTPUT_SET_WITH_OPTIONAL:
getOutputSetWithOptional().clear();
return;
case Bpmn2Package.DATA_OUTPUT__OUTPUT_SET_WITH_WHILE_EXECUTING:
getOutputSetWithWhileExecuting().clear();
return;
case Bpmn2Package.DATA_OUTPUT__OUTPUT_SET_REFS:
getOutputSetRefs().clear();
return;
case Bpmn2Package.DATA_OUTPUT__IS_COLLECTION:
setIsCollection(IS_COLLECTION_EDEFAULT);
return;
case Bpmn2Package.DATA_OUTPUT__NAME:
setName(NAME_EDEFAULT);
return;
}
super.eUnset(featureID);
}
示例2: getChildrenFeatures
import org.eclipse.bpmn2.Bpmn2Package; //导入依赖的package包/类
/**
* This specifies how to implement {@link #getChildren} and is used to deduce an appropriate feature for an
* {@link org.eclipse.emf.edit.command.AddCommand}, {@link org.eclipse.emf.edit.command.RemoveCommand} or
* {@link org.eclipse.emf.edit.command.MoveCommand} in {@link #createCommand}.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public Collection<? extends EStructuralFeature> getChildrenFeatures(
Object object) {
if (childrenFeatures == null) {
super.getChildrenFeatures(object);
childrenFeatures
.add(Bpmn2Package.Literals.THROW_EVENT__DATA_INPUTS);
childrenFeatures
.add(Bpmn2Package.Literals.THROW_EVENT__DATA_INPUT_ASSOCIATION);
childrenFeatures.add(Bpmn2Package.Literals.THROW_EVENT__INPUT_SET);
childrenFeatures
.add(Bpmn2Package.Literals.THROW_EVENT__EVENT_DEFINITIONS);
}
return childrenFeatures;
}
示例3: addElementVariablePropertyDescriptor
import org.eclipse.bpmn2.Bpmn2Package; //导入依赖的package包/类
/**
* This adds a property descriptor for the Element Variable feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected void addElementVariablePropertyDescriptor(Object object) {
itemPropertyDescriptors
.add(createItemPropertyDescriptor(
((ComposeableAdapterFactory) adapterFactory)
.getRootAdapterFactory(),
getResourceLocator(),
getString("_UI_MultiInstanceLoopCharacteristics_elementVariable_feature"),
getString(
"_UI_PropertyDescriptor_description",
"_UI_MultiInstanceLoopCharacteristics_elementVariable_feature",
"_UI_MultiInstanceLoopCharacteristics_type"),
Bpmn2Package.Literals.MULTI_INSTANCE_LOOP_CHARACTERISTICS__ELEMENT_VARIABLE,
true, false, false,
ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null));
}
示例4: eSet
import org.eclipse.bpmn2.Bpmn2Package; //导入依赖的package包/类
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void eSet(int featureID, Object newValue) {
switch (featureID) {
case Bpmn2Package.ASSOCIATION__ASSOCIATION_DIRECTION:
setAssociationDirection((AssociationDirection) newValue);
return;
case Bpmn2Package.ASSOCIATION__SOURCE_REF:
setSourceRef((BaseElement) newValue);
return;
case Bpmn2Package.ASSOCIATION__TARGET_REF:
setTargetRef((BaseElement) newValue);
return;
}
super.eSet(featureID, newValue);
}
示例5: eIsSet
import org.eclipse.bpmn2.Bpmn2Package; //导入依赖的package包/类
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public boolean eIsSet(int featureID) {
switch (featureID) {
case Bpmn2Package.ALFRESCO_SCRIPT_TASK__RUN_AS:
return RUN_AS_EDEFAULT == null ? runAs != null : !RUN_AS_EDEFAULT
.equals(runAs);
case Bpmn2Package.ALFRESCO_SCRIPT_TASK__SCRIPT_PROCESSOR:
return SCRIPT_PROCESSOR_EDEFAULT == null ? scriptProcessor != null
: !SCRIPT_PROCESSOR_EDEFAULT.equals(scriptProcessor);
case Bpmn2Package.ALFRESCO_SCRIPT_TASK__SCRIPT:
return SCRIPT_EDEFAULT == null ? script != null : !SCRIPT_EDEFAULT
.equals(script);
}
return super.eIsSet(featureID);
}
示例6: setLoopCondition
import org.eclipse.bpmn2.Bpmn2Package; //导入依赖的package包/类
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setLoopCondition(Expression newLoopCondition) {
if (newLoopCondition != loopCondition) {
NotificationChain msgs = null;
if (loopCondition != null)
msgs = ((InternalEObject) loopCondition)
.eInverseRemove(
this,
EOPPOSITE_FEATURE_BASE
- Bpmn2Package.STANDARD_LOOP_CHARACTERISTICS__LOOP_CONDITION,
null, msgs);
if (newLoopCondition != null)
msgs = ((InternalEObject) newLoopCondition)
.eInverseAdd(
this,
EOPPOSITE_FEATURE_BASE
- Bpmn2Package.STANDARD_LOOP_CHARACTERISTICS__LOOP_CONDITION,
null, msgs);
msgs = basicSetLoopCondition(newLoopCondition, msgs);
if (msgs != null)
msgs.dispatch();
} else if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET,
Bpmn2Package.STANDARD_LOOP_CHARACTERISTICS__LOOP_CONDITION,
newLoopCondition, newLoopCondition));
}
示例7: eSet
import org.eclipse.bpmn2.Bpmn2Package; //导入依赖的package包/类
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@SuppressWarnings("unchecked")
@Override
public void eSet(int featureID, Object newValue) {
switch (featureID) {
case Bpmn2Package.SUB_CHOREOGRAPHY__LANE_SETS:
getLaneSets().clear();
getLaneSets().addAll((Collection<? extends LaneSet>) newValue);
return;
case Bpmn2Package.SUB_CHOREOGRAPHY__FLOW_ELEMENTS:
getFlowElements().clear();
getFlowElements().addAll(
(Collection<? extends FlowElement>) newValue);
return;
case Bpmn2Package.SUB_CHOREOGRAPHY__ARTIFACTS:
getArtifacts().clear();
getArtifacts().addAll((Collection<? extends Artifact>) newValue);
return;
}
super.eSet(featureID, newValue);
}
示例8: setTimeDate
import org.eclipse.bpmn2.Bpmn2Package; //导入依赖的package包/类
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setTimeDate(Expression newTimeDate) {
if (newTimeDate != timeDate) {
NotificationChain msgs = null;
if (timeDate != null)
msgs = ((InternalEObject) timeDate)
.eInverseRemove(
this,
EOPPOSITE_FEATURE_BASE
- Bpmn2Package.TIMER_EVENT_DEFINITION__TIME_DATE,
null, msgs);
if (newTimeDate != null)
msgs = ((InternalEObject) newTimeDate)
.eInverseAdd(
this,
EOPPOSITE_FEATURE_BASE
- Bpmn2Package.TIMER_EVENT_DEFINITION__TIME_DATE,
null, msgs);
msgs = basicSetTimeDate(newTimeDate, msgs);
if (msgs != null)
msgs.dispatch();
} else if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET,
Bpmn2Package.TIMER_EVENT_DEFINITION__TIME_DATE,
newTimeDate, newTimeDate));
}
示例9: eGet
import org.eclipse.bpmn2.Bpmn2Package; //导入依赖的package包/类
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public Object eGet(int featureID, boolean resolve, boolean coreType) {
switch (featureID) {
case Bpmn2Package.DATA_OBJECT_REFERENCE__DATA_STATE:
return getDataState();
case Bpmn2Package.DATA_OBJECT_REFERENCE__ITEM_SUBJECT_REF:
if (resolve)
return getItemSubjectRef();
return basicGetItemSubjectRef();
case Bpmn2Package.DATA_OBJECT_REFERENCE__ITEM_AWARE_ELEMENT_ACTIONS:
return getItemAwareElementActions();
case Bpmn2Package.DATA_OBJECT_REFERENCE__DATA_OBJECT_REF:
return getDataObjectRef();
}
return super.eGet(featureID, resolve, coreType);
}
示例10: eSet
import org.eclipse.bpmn2.Bpmn2Package; //导入依赖的package包/类
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@SuppressWarnings("unchecked")
@Override
public void eSet(int featureID, Object newValue) {
switch (featureID) {
case Bpmn2Package.SEQUENCE_FLOW__CONDITION_EXPRESSION:
setConditionExpression((FormalExpression) newValue);
return;
case Bpmn2Package.SEQUENCE_FLOW__IS_IMMEDIATE:
setIsImmediate((Boolean) newValue);
return;
case Bpmn2Package.SEQUENCE_FLOW__SOURCE_REF:
setSourceRef((FlowNode) newValue);
return;
case Bpmn2Package.SEQUENCE_FLOW__TARGET_REF:
setTargetRef((FlowNode) newValue);
return;
case Bpmn2Package.SEQUENCE_FLOW__EXECUTION_LISTENERS:
getExecutionListeners().clear();
getExecutionListeners().addAll(
(Collection<? extends ActivitiListener>) newValue);
return;
}
super.eSet(featureID, newValue);
}
示例11: collectNewChildDescriptors
import org.eclipse.bpmn2.Bpmn2Package; //导入依赖的package包/类
/**
* This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children
* that can be created under this object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
protected void collectNewChildDescriptors(
Collection<Object> newChildDescriptors, Object object) {
super.collectNewChildDescriptors(newChildDescriptors, object);
newChildDescriptors.add(createChildParameter(
Bpmn2Package.Literals.INPUT_OUTPUT_SPECIFICATION__DATA_INPUTS,
Bpmn2Factory.eINSTANCE.createDataInput()));
newChildDescriptors.add(createChildParameter(
Bpmn2Package.Literals.INPUT_OUTPUT_SPECIFICATION__DATA_OUTPUTS,
Bpmn2Factory.eINSTANCE.createDataOutput()));
newChildDescriptors.add(createChildParameter(
Bpmn2Package.Literals.INPUT_OUTPUT_SPECIFICATION__INPUT_SETS,
Bpmn2Factory.eINSTANCE.createInputSet()));
newChildDescriptors.add(createChildParameter(
Bpmn2Package.Literals.INPUT_OUTPUT_SPECIFICATION__OUTPUT_SETS,
Bpmn2Factory.eINSTANCE.createOutputSet()));
}
示例12: eInverseRemove
import org.eclipse.bpmn2.Bpmn2Package; //导入依赖的package包/类
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public NotificationChain eInverseRemove(InternalEObject otherEnd,
int featureID, NotificationChain msgs) {
switch (featureID) {
case Bpmn2Package.DATA_OUTPUT__OUTPUT_SET_WITH_OPTIONAL:
return ((InternalEList<?>) getOutputSetWithOptional()).basicRemove(
otherEnd, msgs);
case Bpmn2Package.DATA_OUTPUT__OUTPUT_SET_WITH_WHILE_EXECUTING:
return ((InternalEList<?>) getOutputSetWithWhileExecuting())
.basicRemove(otherEnd, msgs);
case Bpmn2Package.DATA_OUTPUT__OUTPUT_SET_REFS:
return ((InternalEList<?>) getOutputSetRefs()).basicRemove(
otherEnd, msgs);
}
return super.eInverseRemove(otherEnd, featureID, msgs);
}
示例13: notifyChanged
import org.eclipse.bpmn2.Bpmn2Package; //导入依赖的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(MailTask.class)) {
case Bpmn2Package.MAIL_TASK__TO:
case Bpmn2Package.MAIL_TASK__FROM:
case Bpmn2Package.MAIL_TASK__SUBJECT:
case Bpmn2Package.MAIL_TASK__CC:
case Bpmn2Package.MAIL_TASK__BCC:
case Bpmn2Package.MAIL_TASK__HTML:
case Bpmn2Package.MAIL_TASK__TEXT:
fireNotifyChanged(new ViewerNotification(notification,
notification.getNotifier(), false, true));
return;
}
super.notifyChanged(notification);
}
示例14: basicSetConversationAssociations
import org.eclipse.bpmn2.Bpmn2Package; //导入依赖的package包/类
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public NotificationChain basicSetConversationAssociations(
ConversationAssociation newConversationAssociations,
NotificationChain msgs) {
ConversationAssociation oldConversationAssociations = conversationAssociations;
conversationAssociations = newConversationAssociations;
if (eNotificationRequired()) {
ENotificationImpl notification = new ENotificationImpl(this,
Notification.SET,
Bpmn2Package.COLLABORATION__CONVERSATION_ASSOCIATIONS,
oldConversationAssociations, newConversationAssociations);
if (msgs == null)
msgs = notification;
else
msgs.add(notification);
}
return msgs;
}
示例15: eSet
import org.eclipse.bpmn2.Bpmn2Package; //导入依赖的package包/类
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@SuppressWarnings("unchecked")
@Override
public void eSet(int featureID, Object newValue) {
switch (featureID) {
case Bpmn2Package.FLOW_ELEMENT__AUDITING:
setAuditing((Auditing) newValue);
return;
case Bpmn2Package.FLOW_ELEMENT__MONITORING:
setMonitoring((Monitoring) newValue);
return;
case Bpmn2Package.FLOW_ELEMENT__CATEGORY_VALUE_REF:
getCategoryValueRef().clear();
getCategoryValueRef().addAll(
(Collection<? extends CategoryValue>) newValue);
return;
case Bpmn2Package.FLOW_ELEMENT__NAME:
setName((String) newValue);
return;
}
super.eSet(featureID, newValue);
}