Skip to main content

This CGIT instance is deprecated, and repositories have been moved to Gitlab or Github. See the repository descriptions for specific locations.

summaryrefslogtreecommitdiffstats
blob: 52ce4a4a58aac9017325d9ec23ffa15990e1114b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
/*******************************************************************************
 * Copyright (c) 2003, 2004 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 * 
 * Contributors:
 * IBM Corporation - initial API and implementation
 *******************************************************************************/
package org.eclipse.jst.j2ee.internal.earcreation.modulemap;

import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.EObject;
import org.eclipse.emf.ecore.impl.EFactoryImpl;



/**
 * @lastgen class ModulemapFactoryImpl extends EFactoryImpl implements ModulemapFactory, EFactory {}
 * @deprecated
 * Use
 * <p>
 * 		Need to use the ModuleCore and WorkbenchComponent Api to get to the referenced modules
 * as with the Flexible project changes a .modulemaps file will not exist in an EAR module and
 * all the info that was captured in .modulemaps file will is now captured in the .component file
 */
public class ModulemapFactoryImpl extends EFactoryImpl implements ModulemapFactory {

	/**
	 * @generated This field/method will be replaced during code generation.
	 */
	public ModulemapFactoryImpl() {
		super();
	}

	/**
	 * <!-- begin-user-doc --> <!-- end-user-doc -->
	 * 
	 * @generated
	 */
	public EObject create(EClass eClass) {
		switch (eClass.getClassifierID()) {
			case ModulemapPackage.MODULE_MAPPING :
				return createModuleMapping();
			case ModulemapPackage.EAR_PROJECT_MAP :
				return createEARProjectMap();
			case ModulemapPackage.UTILITY_JAR_MAPPING :
				return createUtilityJARMapping();
		}
		return null;
	}

	/**
	 * @generated This field/method will be replaced during code generation.
	 */
	public EARProjectMap createEARProjectMap() {
		EARProjectMapImpl earProjectMap = new EARProjectMapImpl();
		return earProjectMap;
	}

	/**
	 * @generated This field/method will be replaced during code generation.
	 */
	public ModuleMapping createModuleMapping() {
		ModuleMappingImpl moduleMapping = new ModuleMappingImpl();
		return moduleMapping;
	}

	/**
	 * @generated This field/method will be replaced during code generation.
	 */
	public UtilityJARMapping createUtilityJARMapping() {
		UtilityJARMappingImpl utilityJARMapping = new UtilityJARMappingImpl();
		return utilityJARMapping;
	}

	/**
	 * @generated This field/method will be replaced during code generation.
	 */
	public ModulemapPackage getModulemapPackage() {
		return (ModulemapPackage) getEPackage();
	}

	/**
	 * @generated This field/method will be replaced during code generation.
	 */
	public static ModulemapPackage getPackage() {
		return ModulemapPackage.eINSTANCE;
	}

} //ModulemapFactoryImpl

Back to the top