本文整理汇总了Java中org.eclipse.bpmn2.Resource类的典型用法代码示例。如果您正苦于以下问题:Java Resource类的具体用法?Java Resource怎么用?Java Resource使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
Resource类属于org.eclipse.bpmn2包,在下文中一共展示了Resource类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: notifyChanged
import org.eclipse.bpmn2.Resource; //导入依赖的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(Resource.class)) {
case Bpmn2Package.RESOURCE__NAME:
fireNotifyChanged(new ViewerNotification(notification,
notification.getNotifier(), false, true));
return;
case Bpmn2Package.RESOURCE__RESOURCE_PARAMETERS:
fireNotifyChanged(new ViewerNotification(notification,
notification.getNotifier(), true, false));
return;
}
super.notifyChanged(notification);
}
示例2: eSet
import org.eclipse.bpmn2.Resource; //导入依赖的package包/类
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@SuppressWarnings("unchecked")
@Override
public void eSet(int featureID, Object newValue) {
switch (featureID) {
case Bpmn2Package.RESOURCE_ROLE__RESOURCE_REF:
setResourceRef((Resource) newValue);
return;
case Bpmn2Package.RESOURCE_ROLE__RESOURCE_PARAMETER_BINDINGS:
getResourceParameterBindings().clear();
getResourceParameterBindings().addAll(
(Collection<? extends ResourceParameterBinding>) newValue);
return;
case Bpmn2Package.RESOURCE_ROLE__RESOURCE_ASSIGNMENT_EXPRESSION:
setResourceAssignmentExpression((ResourceAssignmentExpression) newValue);
return;
case Bpmn2Package.RESOURCE_ROLE__NAME:
setName((String) newValue);
return;
}
super.eSet(featureID, newValue);
}
示例3: eUnset
import org.eclipse.bpmn2.Resource; //导入依赖的package包/类
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void eUnset(int featureID) {
switch (featureID) {
case Bpmn2Package.RESOURCE_ROLE__RESOURCE_REF:
setResourceRef((Resource) null);
return;
case Bpmn2Package.RESOURCE_ROLE__RESOURCE_PARAMETER_BINDINGS:
getResourceParameterBindings().clear();
return;
case Bpmn2Package.RESOURCE_ROLE__RESOURCE_ASSIGNMENT_EXPRESSION:
setResourceAssignmentExpression((ResourceAssignmentExpression) null);
return;
case Bpmn2Package.RESOURCE_ROLE__NAME:
setName(NAME_EDEFAULT);
return;
}
super.eUnset(featureID);
}
示例4: eSet
import org.eclipse.bpmn2.Resource; //导入依赖的package包/类
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@SuppressWarnings("unchecked")
@Override
public void eSet(int featureID, Object newValue) {
switch (featureID) {
case Bpmn2Package.RESOURCE_ROLE__RESOURCE_REF:
setResourceRef((Resource) newValue);
return;
case Bpmn2Package.RESOURCE_ROLE__RESOURCE_PARAMETER_BINDINGS:
getResourceParameterBindings().clear();
getResourceParameterBindings().addAll(
(Collection<? extends ResourceParameterBinding>) newValue);
return;
case Bpmn2Package.RESOURCE_ROLE__RESOURCE_ASSIGNMENT_EXPRESSION:
setResourceAssignmentExpression((ResourceAssignmentExpression) newValue);
return;
case Bpmn2Package.RESOURCE_ROLE__NAME:
setName((String) newValue);
return;
}
super.eSet(featureID, newValue);
}
示例5: eUnset
import org.eclipse.bpmn2.Resource; //导入依赖的package包/类
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void eUnset(int featureID) {
switch (featureID) {
case Bpmn2Package.RESOURCE_ROLE__RESOURCE_REF:
setResourceRef((Resource) null);
return;
case Bpmn2Package.RESOURCE_ROLE__RESOURCE_PARAMETER_BINDINGS:
getResourceParameterBindings().clear();
return;
case Bpmn2Package.RESOURCE_ROLE__RESOURCE_ASSIGNMENT_EXPRESSION:
setResourceAssignmentExpression((ResourceAssignmentExpression) null);
return;
case Bpmn2Package.RESOURCE_ROLE__NAME:
setName(NAME_EDEFAULT);
return;
}
super.eUnset(featureID);
}
示例6: getText
import org.eclipse.bpmn2.Resource; //导入依赖的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 = ((Resource) object).getName();
return label == null || label.length() == 0 ? getString("_UI_Resource_type")
: getString("_UI_Resource_type") + " " + label;
}
示例7: setResourceRef
import org.eclipse.bpmn2.Resource; //导入依赖的package包/类
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setResourceRef(Resource newResourceRef) {
Resource oldResourceRef = resourceRef;
resourceRef = newResourceRef;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET,
Bpmn2Package.RESOURCE_ROLE__RESOURCE_REF, oldResourceRef,
resourceRef));
}
示例8: basicSetResource
import org.eclipse.bpmn2.Resource; //导入依赖的package包/类
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public NotificationChain basicSetResource(Resource newResource,
NotificationChain msgs) {
return ((FeatureMap.Internal) getMixed()).basicAdd(
Bpmn2Package.Literals.DOCUMENT_ROOT__RESOURCE, newResource,
msgs);
}
示例9: setResourceRef
import org.eclipse.bpmn2.Resource; //导入依赖的package包/类
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setResourceRef(Resource newResourceRef) {
Resource oldResourceRef = resourceRef;
resourceRef = newResourceRef;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET,
Bpmn2Package.RESOURCE_ROLE__RESOURCE_REF, oldResourceRef, resourceRef));
}
示例10: caseResource
import org.eclipse.bpmn2.Resource; //导入依赖的package包/类
@Override
public Adapter caseResource(Resource object) {
return createResourceAdapter();
}
示例11: caseResource
import org.eclipse.bpmn2.Resource; //导入依赖的package包/类
@Override
public Adapter caseResource(Resource object) {
return createResourceAdapter();
}
示例12: getFixture
import org.eclipse.bpmn2.Resource; //导入依赖的package包/类
/**
* Returns the fixture for this Resource test case.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
protected Resource getFixture() {
return (Resource) fixture;
}
示例13: caseResource
import org.eclipse.bpmn2.Resource; //导入依赖的package包/类
/**
* Returns the result of interpreting the object as an instance of '<em>Resource</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>Resource</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T caseResource(Resource object) {
return null;
}
示例14: basicGetResourceRef
import org.eclipse.bpmn2.Resource; //导入依赖的package包/类
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public Resource basicGetResourceRef() {
return resourceRef;
}
示例15: getResource
import org.eclipse.bpmn2.Resource; //导入依赖的package包/类
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public Resource getResource() {
return (Resource) getMixed().get(
Bpmn2Package.Literals.DOCUMENT_ROOT__RESOURCE, true);
}