本文整理汇总了Java中org.eclipse.bpmn2.GatewayDirection类的典型用法代码示例。如果您正苦于以下问题:Java GatewayDirection类的具体用法?Java GatewayDirection怎么用?Java GatewayDirection使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
GatewayDirection类属于org.eclipse.bpmn2包,在下文中一共展示了GatewayDirection类的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: setGatewayDirection
import org.eclipse.bpmn2.GatewayDirection; //导入依赖的package包/类
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setGatewayDirection(GatewayDirection newGatewayDirection) {
GatewayDirection oldGatewayDirection = gatewayDirection;
gatewayDirection = newGatewayDirection == null ? GATEWAY_DIRECTION_EDEFAULT
: newGatewayDirection;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET,
Bpmn2Package.GATEWAY__GATEWAY_DIRECTION,
oldGatewayDirection, gatewayDirection));
}
示例2: eSet
import org.eclipse.bpmn2.GatewayDirection; //导入依赖的package包/类
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void eSet(int featureID, Object newValue) {
switch (featureID) {
case Bpmn2Package.GATEWAY__GATEWAY_DIRECTION:
setGatewayDirection((GatewayDirection) newValue);
return;
}
super.eSet(featureID, newValue);
}
示例3: createGatewayDirectionFromString
import org.eclipse.bpmn2.GatewayDirection; //导入依赖的package包/类
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public GatewayDirection createGatewayDirectionFromString(
EDataType eDataType, String initialValue) {
GatewayDirection result = GatewayDirection.get(initialValue);
if (result == null)
throw new IllegalArgumentException("The value '" + initialValue
+ "' is not a valid enumerator of '" + eDataType.getName()
+ "'");
return result;
}
示例4: setGatewayDirection
import org.eclipse.bpmn2.GatewayDirection; //导入依赖的package包/类
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setGatewayDirection(GatewayDirection newGatewayDirection) {
GatewayDirection oldGatewayDirection = gatewayDirection;
gatewayDirection = newGatewayDirection == null ? GATEWAY_DIRECTION_EDEFAULT
: newGatewayDirection;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET,
Bpmn2Package.GATEWAY__GATEWAY_DIRECTION, oldGatewayDirection, gatewayDirection));
}
示例5: eSet
import org.eclipse.bpmn2.GatewayDirection; //导入依赖的package包/类
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void eSet(int featureID, Object newValue) {
switch (featureID) {
case Bpmn2Package.GATEWAY__GATEWAY_DIRECTION:
setGatewayDirection((GatewayDirection) newValue);
return;
}
super.eSet(featureID, newValue);
}
示例6: convertJsonToElement
import org.eclipse.bpmn2.GatewayDirection; //导入依赖的package包/类
protected FlowElement convertJsonToElement(JsonNode elementNode, JsonNode modelNode, Map<String, JsonNode> shapeMap) {
ParallelGateway gateway = Bpmn2Factory.eINSTANCE.createParallelGateway();// ParallelGateway();
String direction = getPropertyValueAsString(PROPERTY_GATEWAT_DIRECTION, elementNode);
if(StringUtil.isNotEmpty(direction)){
GatewayDirection gatewayDirection = GatewayDirection.getByName(direction);
gateway.setGatewayDirection(gatewayDirection);
}
return gateway;
}
示例7: getGatewayDirection
import org.eclipse.bpmn2.GatewayDirection; //导入依赖的package包/类
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public GatewayDirection getGatewayDirection() {
return gatewayDirection;
}
示例8: getGatewayDirection
import org.eclipse.bpmn2.GatewayDirection; //导入依赖的package包/类
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public GatewayDirection getGatewayDirection() {
return gatewayDirection;
}