当前位置: 首页>>代码示例>>Java>>正文


Java Resource类代码示例

本文整理汇总了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);
}
 
开发者ID:logicalhacking,项目名称:SecureBPMN,代码行数:24,代码来源:ResourceItemProvider.java

示例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);
}
 
开发者ID:logicalhacking,项目名称:SecureBPMN,代码行数:27,代码来源:ResourceRoleImpl.java

示例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);
}
 
开发者ID:logicalhacking,项目名称:SecureBPMN,代码行数:24,代码来源:ResourceRoleImpl.java

示例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);
}
 
开发者ID:fixteam,项目名称:fixflow,代码行数:27,代码来源:ResourceRoleImpl.java

示例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);
}
 
开发者ID:fixteam,项目名称:fixflow,代码行数:24,代码来源:ResourceRoleImpl.java

示例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;
}
 
开发者ID:logicalhacking,项目名称:SecureBPMN,代码行数:13,代码来源:ResourceItemProvider.java

示例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));
}
 
开发者ID:logicalhacking,项目名称:SecureBPMN,代码行数:14,代码来源:ResourceRoleImpl.java

示例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);
}
 
开发者ID:logicalhacking,项目名称:SecureBPMN,代码行数:12,代码来源:DocumentRootImpl.java

示例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));
}
 
开发者ID:fixteam,项目名称:fixflow,代码行数:13,代码来源:ResourceRoleImpl.java

示例10: caseResource

import org.eclipse.bpmn2.Resource; //导入依赖的package包/类
@Override
public Adapter caseResource(Resource object) {
	return createResourceAdapter();
}
 
开发者ID:logicalhacking,项目名称:SecureBPMN,代码行数:5,代码来源:Bpmn2AdapterFactory.java

示例11: caseResource

import org.eclipse.bpmn2.Resource; //导入依赖的package包/类
@Override
public Adapter caseResource(Resource object) {
    return createResourceAdapter();
}
 
开发者ID:fixteam,项目名称:fixflow,代码行数:5,代码来源:Bpmn2AdapterFactory.java

示例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;
}
 
开发者ID:logicalhacking,项目名称:SecureBPMN,代码行数:11,代码来源:ResourceTest.java

示例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;
}
 
开发者ID:logicalhacking,项目名称:SecureBPMN,代码行数:15,代码来源:Bpmn2Switch.java

示例14: basicGetResourceRef

import org.eclipse.bpmn2.Resource; //导入依赖的package包/类
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public Resource basicGetResourceRef() {
	return resourceRef;
}
 
开发者ID:logicalhacking,项目名称:SecureBPMN,代码行数:9,代码来源:ResourceRoleImpl.java

示例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);
}
 
开发者ID:logicalhacking,项目名称:SecureBPMN,代码行数:10,代码来源:DocumentRootImpl.java


注:本文中的org.eclipse.bpmn2.Resource类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。