Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'extraplugins/eastadl/org.eclipse.papyrus.eastadl/src/org/eclipse/papyrus/eastadl/structure/functionmodeling/impl/FunctionmodelingFactoryImpl.java')
-rw-r--r--extraplugins/eastadl/org.eclipse.papyrus.eastadl/src/org/eclipse/papyrus/eastadl/structure/functionmodeling/impl/FunctionmodelingFactoryImpl.java126
1 files changed, 87 insertions, 39 deletions
diff --git a/extraplugins/eastadl/org.eclipse.papyrus.eastadl/src/org/eclipse/papyrus/eastadl/structure/functionmodeling/impl/FunctionmodelingFactoryImpl.java b/extraplugins/eastadl/org.eclipse.papyrus.eastadl/src/org/eclipse/papyrus/eastadl/structure/functionmodeling/impl/FunctionmodelingFactoryImpl.java
index 88ecd36eacc..37284d1b6ca 100644
--- a/extraplugins/eastadl/org.eclipse.papyrus.eastadl/src/org/eclipse/papyrus/eastadl/structure/functionmodeling/impl/FunctionmodelingFactoryImpl.java
+++ b/extraplugins/eastadl/org.eclipse.papyrus.eastadl/src/org/eclipse/papyrus/eastadl/structure/functionmodeling/impl/FunctionmodelingFactoryImpl.java
@@ -21,6 +21,7 @@ import org.eclipse.emf.ecore.EObject;
import org.eclipse.emf.ecore.EPackage;
import org.eclipse.emf.ecore.impl.EFactoryImpl;
import org.eclipse.emf.ecore.plugin.EcorePlugin;
+import org.eclipse.papyrus.eastadl.structure.functionmodeling.*;
import org.eclipse.papyrus.eastadl.structure.functionmodeling.Allocation;
import org.eclipse.papyrus.eastadl.structure.functionmodeling.AnalysisFunctionPrototype;
import org.eclipse.papyrus.eastadl.structure.functionmodeling.AnalysisFunctionType;
@@ -46,12 +47,14 @@ import org.eclipse.papyrus.eastadl.structure.functionmodeling.PortGroup;
/**
* <!-- begin-user-doc --> An implementation of the model <b>Factory</b>. <!-- end-user-doc -->
+ *
* @generated
*/
public class FunctionmodelingFactoryImpl extends EFactoryImpl implements FunctionmodelingFactory {
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
* @deprecated
* @generated
*/
@@ -63,16 +66,16 @@ public class FunctionmodelingFactoryImpl extends EFactoryImpl implements Functio
/**
* Creates the default factory implementation.
* <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
* @generated
*/
public static FunctionmodelingFactory init() {
try {
FunctionmodelingFactory theFunctionmodelingFactory = (FunctionmodelingFactory)EPackage.Registry.INSTANCE.getEFactory(FunctionmodelingPackage.eNS_URI);
- if (theFunctionmodelingFactory != null) {
+ if(theFunctionmodelingFactory != null) {
return theFunctionmodelingFactory;
}
- }
- catch (Exception exception) {
+ } catch (Exception exception) {
EcorePlugin.INSTANCE.log(exception);
}
return new FunctionmodelingFactoryImpl();
@@ -81,6 +84,7 @@ public class FunctionmodelingFactoryImpl extends EFactoryImpl implements Functio
/**
* Creates an instance of the factory.
* <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
* @generated
*/
public FunctionmodelingFactoryImpl() {
@@ -90,6 +94,7 @@ public class FunctionmodelingFactoryImpl extends EFactoryImpl implements Functio
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public String convertClientServerKindToString(EDataType eDataType, Object instanceValue) {
@@ -99,17 +104,20 @@ public class FunctionmodelingFactoryImpl extends EFactoryImpl implements Functio
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public EADirectionKind createEADirectionKindFromString(EDataType eDataType, String initialValue) {
EADirectionKind result = EADirectionKind.get(initialValue);
- if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'");
+ if(result == null)
+ throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'");
return result;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public String convertEADirectionKindToString(EDataType eDataType, Object instanceValue) {
@@ -119,52 +127,72 @@ public class FunctionmodelingFactoryImpl extends EFactoryImpl implements Functio
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
public String convertToString(EDataType eDataType, Object instanceValue) {
- switch (eDataType.getClassifierID()) {
- case FunctionmodelingPackage.CLIENT_SERVER_KIND:
- return convertClientServerKindToString(eDataType, instanceValue);
- case FunctionmodelingPackage.EA_DIRECTION_KIND:
- return convertEADirectionKindToString(eDataType, instanceValue);
- default:
- throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier");
+ switch(eDataType.getClassifierID()) {
+ case FunctionmodelingPackage.CLIENT_SERVER_KIND:
+ return convertClientServerKindToString(eDataType, instanceValue);
+ case FunctionmodelingPackage.EA_DIRECTION_KIND:
+ return convertEADirectionKindToString(eDataType, instanceValue);
+ default:
+ throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier");
}
}
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
* @generated
*/
@Override
public EObject create(EClass eClass) {
- switch (eClass.getClassifierID()) {
- case FunctionmodelingPackage.LOCAL_DEVICE_MANAGER: return createLocalDeviceManager();
- case FunctionmodelingPackage.DESIGN_FUNCTION_TYPE: return createDesignFunctionType();
- case FunctionmodelingPackage.PORT_GROUP: return createPortGroup();
- case FunctionmodelingPackage.FUNCTION_CONNECTOR: return createFunctionConnector();
- case FunctionmodelingPackage.DESIGN_FUNCTION_PROTOTYPE: return createDesignFunctionPrototype();
- case FunctionmodelingPackage.FUNCTIONAL_DEVICE: return createFunctionalDevice();
- case FunctionmodelingPackage.ANALYSIS_FUNCTION_TYPE: return createAnalysisFunctionType();
- case FunctionmodelingPackage.ANALYSIS_FUNCTION_PROTOTYPE: return createAnalysisFunctionPrototype();
- case FunctionmodelingPackage.FUNCTION_FLOW_PORT: return createFunctionFlowPort();
- case FunctionmodelingPackage.FUNCTION_CLIENT_SERVER_PORT: return createFunctionClientServerPort();
- case FunctionmodelingPackage.FUNCTION_CLIENT_SERVER_INTERFACE: return createFunctionClientServerInterface();
- case FunctionmodelingPackage.OPERATION: return createOperation();
- case FunctionmodelingPackage.BASIC_SOFTWARE_FUNCTION_TYPE: return createBasicSoftwareFunctionType();
- case FunctionmodelingPackage.HARDWARE_FUNCTION_TYPE: return createHardwareFunctionType();
- case FunctionmodelingPackage.FUNCTION_ALLOCATION: return createFunctionAllocation();
- case FunctionmodelingPackage.ALLOCATION: return createAllocation();
- case FunctionmodelingPackage.FUNCTION_POWER_PORT: return createFunctionPowerPort();
- default:
- throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier");
+ switch(eClass.getClassifierID()) {
+ case FunctionmodelingPackage.LOCAL_DEVICE_MANAGER:
+ return createLocalDeviceManager();
+ case FunctionmodelingPackage.DESIGN_FUNCTION_TYPE:
+ return createDesignFunctionType();
+ case FunctionmodelingPackage.PORT_GROUP:
+ return createPortGroup();
+ case FunctionmodelingPackage.FUNCTION_CONNECTOR:
+ return createFunctionConnector();
+ case FunctionmodelingPackage.DESIGN_FUNCTION_PROTOTYPE:
+ return createDesignFunctionPrototype();
+ case FunctionmodelingPackage.FUNCTIONAL_DEVICE:
+ return createFunctionalDevice();
+ case FunctionmodelingPackage.ANALYSIS_FUNCTION_TYPE:
+ return createAnalysisFunctionType();
+ case FunctionmodelingPackage.ANALYSIS_FUNCTION_PROTOTYPE:
+ return createAnalysisFunctionPrototype();
+ case FunctionmodelingPackage.FUNCTION_FLOW_PORT:
+ return createFunctionFlowPort();
+ case FunctionmodelingPackage.FUNCTION_CLIENT_SERVER_PORT:
+ return createFunctionClientServerPort();
+ case FunctionmodelingPackage.FUNCTION_CLIENT_SERVER_INTERFACE:
+ return createFunctionClientServerInterface();
+ case FunctionmodelingPackage.OPERATION:
+ return createOperation();
+ case FunctionmodelingPackage.BASIC_SOFTWARE_FUNCTION_TYPE:
+ return createBasicSoftwareFunctionType();
+ case FunctionmodelingPackage.HARDWARE_FUNCTION_TYPE:
+ return createHardwareFunctionType();
+ case FunctionmodelingPackage.FUNCTION_ALLOCATION:
+ return createFunctionAllocation();
+ case FunctionmodelingPackage.ALLOCATION:
+ return createAllocation();
+ case FunctionmodelingPackage.FUNCTION_POWER_PORT:
+ return createFunctionPowerPort();
+ default:
+ throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier");
}
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public Allocation createAllocation() {
@@ -175,6 +203,7 @@ public class FunctionmodelingFactoryImpl extends EFactoryImpl implements Functio
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public AnalysisFunctionPrototype createAnalysisFunctionPrototype() {
@@ -185,6 +214,7 @@ public class FunctionmodelingFactoryImpl extends EFactoryImpl implements Functio
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public AnalysisFunctionType createAnalysisFunctionType() {
@@ -195,6 +225,7 @@ public class FunctionmodelingFactoryImpl extends EFactoryImpl implements Functio
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public BasicSoftwareFunctionType createBasicSoftwareFunctionType() {
@@ -205,17 +236,20 @@ public class FunctionmodelingFactoryImpl extends EFactoryImpl implements Functio
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public ClientServerKind createClientServerKindFromString(EDataType eDataType, String initialValue) {
ClientServerKind result = ClientServerKind.get(initialValue);
- if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'");
+ if(result == null)
+ throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'");
return result;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public DesignFunctionPrototype createDesignFunctionPrototype() {
@@ -226,6 +260,7 @@ public class FunctionmodelingFactoryImpl extends EFactoryImpl implements Functio
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public DesignFunctionType createDesignFunctionType() {
@@ -236,22 +271,24 @@ public class FunctionmodelingFactoryImpl extends EFactoryImpl implements Functio
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
public Object createFromString(EDataType eDataType, String initialValue) {
- switch (eDataType.getClassifierID()) {
- case FunctionmodelingPackage.CLIENT_SERVER_KIND:
- return createClientServerKindFromString(eDataType, initialValue);
- case FunctionmodelingPackage.EA_DIRECTION_KIND:
- return createEADirectionKindFromString(eDataType, initialValue);
- default:
- throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier");
+ switch(eDataType.getClassifierID()) {
+ case FunctionmodelingPackage.CLIENT_SERVER_KIND:
+ return createClientServerKindFromString(eDataType, initialValue);
+ case FunctionmodelingPackage.EA_DIRECTION_KIND:
+ return createEADirectionKindFromString(eDataType, initialValue);
+ default:
+ throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier");
}
}
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
* @generated
*/
public FunctionalDevice createFunctionalDevice() {
@@ -262,6 +299,7 @@ public class FunctionmodelingFactoryImpl extends EFactoryImpl implements Functio
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public FunctionAllocation createFunctionAllocation() {
@@ -272,6 +310,7 @@ public class FunctionmodelingFactoryImpl extends EFactoryImpl implements Functio
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public FunctionClientServerInterface createFunctionClientServerInterface() {
@@ -282,6 +321,7 @@ public class FunctionmodelingFactoryImpl extends EFactoryImpl implements Functio
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public FunctionClientServerPort createFunctionClientServerPort() {
@@ -292,6 +332,7 @@ public class FunctionmodelingFactoryImpl extends EFactoryImpl implements Functio
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public FunctionConnector createFunctionConnector() {
@@ -302,6 +343,7 @@ public class FunctionmodelingFactoryImpl extends EFactoryImpl implements Functio
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public FunctionFlowPort createFunctionFlowPort() {
@@ -312,6 +354,7 @@ public class FunctionmodelingFactoryImpl extends EFactoryImpl implements Functio
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public FunctionPowerPort createFunctionPowerPort() {
@@ -322,6 +365,7 @@ public class FunctionmodelingFactoryImpl extends EFactoryImpl implements Functio
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public HardwareFunctionType createHardwareFunctionType() {
@@ -331,6 +375,7 @@ public class FunctionmodelingFactoryImpl extends EFactoryImpl implements Functio
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
* @generated
*/
public LocalDeviceManager createLocalDeviceManager() {
@@ -341,6 +386,7 @@ public class FunctionmodelingFactoryImpl extends EFactoryImpl implements Functio
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public Operation createOperation() {
@@ -351,6 +397,7 @@ public class FunctionmodelingFactoryImpl extends EFactoryImpl implements Functio
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public PortGroup createPortGroup() {
@@ -360,6 +407,7 @@ public class FunctionmodelingFactoryImpl extends EFactoryImpl implements Functio
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
* @generated
*/
public FunctionmodelingPackage getFunctionmodelingPackage() {

Back to the top