001: /**
002: * <copyright>
003: * </copyright>
004: *
005: * $Id: WfsvFactoryImpl.java 7988 2007-12-12 20:29:15Z aaime $
006: */package net.opengis.wfsv.impl;
007:
008: import net.opengis.wfsv.*;
009:
010: import org.eclipse.emf.ecore.EClass;
011: import org.eclipse.emf.ecore.EObject;
012: import org.eclipse.emf.ecore.EPackage;
013:
014: import org.eclipse.emf.ecore.impl.EFactoryImpl;
015:
016: import org.eclipse.emf.ecore.plugin.EcorePlugin;
017:
018: /**
019: * <!-- begin-user-doc -->
020: * An implementation of the model <b>Factory</b>.
021: * <!-- end-user-doc -->
022: * @generated
023: */
024: public class WfsvFactoryImpl extends EFactoryImpl implements
025: WfsvFactory {
026: /**
027: * Creates the default factory implementation.
028: * <!-- begin-user-doc -->
029: * <!-- end-user-doc -->
030: * @generated
031: */
032: public static WfsvFactory init() {
033: try {
034: WfsvFactory theWfsvFactory = (WfsvFactory) EPackage.Registry.INSTANCE
035: .getEFactory("http://www.opengis.net/wfsv");
036: if (theWfsvFactory != null) {
037: return theWfsvFactory;
038: }
039: } catch (Exception exception) {
040: EcorePlugin.INSTANCE.log(exception);
041: }
042: return new WfsvFactoryImpl();
043: }
044:
045: /**
046: * Creates an instance of the factory.
047: * <!-- begin-user-doc -->
048: * <!-- end-user-doc -->
049: * @generated
050: */
051: public WfsvFactoryImpl() {
052: super ();
053: }
054:
055: /**
056: * <!-- begin-user-doc -->
057: * <!-- end-user-doc -->
058: * @generated
059: */
060: public EObject create(EClass eClass) {
061: switch (eClass.getClassifierID()) {
062: case WfsvPackage.DESCRIBE_VERSIONED_FEATURE_TYPE_TYPE:
063: return createDescribeVersionedFeatureTypeType();
064: case WfsvPackage.DIFFERENCE_QUERY_TYPE:
065: return createDifferenceQueryType();
066: case WfsvPackage.DOCUMENT_ROOT:
067: return createDocumentRoot();
068: case WfsvPackage.GET_DIFF_TYPE:
069: return createGetDiffType();
070: case WfsvPackage.GET_LOG_TYPE:
071: return createGetLogType();
072: case WfsvPackage.GET_VERSIONED_FEATURE_TYPE:
073: return createGetVersionedFeatureType();
074: case WfsvPackage.ROLLBACK_TYPE:
075: return createRollbackType();
076: case WfsvPackage.VERSIONED_DELETE_ELEMENT_TYPE:
077: return createVersionedDeleteElementType();
078: case WfsvPackage.VERSIONED_FEATURE_COLLECTION_TYPE:
079: return createVersionedFeatureCollectionType();
080: case WfsvPackage.VERSIONED_UPDATE_ELEMENT_TYPE:
081: return createVersionedUpdateElementType();
082: default:
083: throw new IllegalArgumentException("The class '"
084: + eClass.getName() + "' is not a valid classifier");
085: }
086: }
087:
088: /**
089: * <!-- begin-user-doc -->
090: * <!-- end-user-doc -->
091: * @generated
092: */
093: public DescribeVersionedFeatureTypeType createDescribeVersionedFeatureTypeType() {
094: DescribeVersionedFeatureTypeTypeImpl describeVersionedFeatureTypeType = new DescribeVersionedFeatureTypeTypeImpl();
095: return describeVersionedFeatureTypeType;
096: }
097:
098: /**
099: * <!-- begin-user-doc -->
100: * <!-- end-user-doc -->
101: * @generated
102: */
103: public DifferenceQueryType createDifferenceQueryType() {
104: DifferenceQueryTypeImpl differenceQueryType = new DifferenceQueryTypeImpl();
105: return differenceQueryType;
106: }
107:
108: /**
109: * <!-- begin-user-doc -->
110: * <!-- end-user-doc -->
111: * @generated
112: */
113: public DocumentRoot createDocumentRoot() {
114: DocumentRootImpl documentRoot = new DocumentRootImpl();
115: return documentRoot;
116: }
117:
118: /**
119: * <!-- begin-user-doc -->
120: * <!-- end-user-doc -->
121: * @generated
122: */
123: public GetDiffType createGetDiffType() {
124: GetDiffTypeImpl getDiffType = new GetDiffTypeImpl();
125: return getDiffType;
126: }
127:
128: /**
129: * <!-- begin-user-doc -->
130: * <!-- end-user-doc -->
131: * @generated
132: */
133: public GetLogType createGetLogType() {
134: GetLogTypeImpl getLogType = new GetLogTypeImpl();
135: return getLogType;
136: }
137:
138: /**
139: * <!-- begin-user-doc -->
140: * <!-- end-user-doc -->
141: * @generated
142: */
143: public GetVersionedFeatureType createGetVersionedFeatureType() {
144: GetVersionedFeatureTypeImpl getVersionedFeatureType = new GetVersionedFeatureTypeImpl();
145: return getVersionedFeatureType;
146: }
147:
148: /**
149: * <!-- begin-user-doc -->
150: * <!-- end-user-doc -->
151: * @generated
152: */
153: public RollbackType createRollbackType() {
154: RollbackTypeImpl rollbackType = new RollbackTypeImpl();
155: return rollbackType;
156: }
157:
158: /**
159: * <!-- begin-user-doc -->
160: * <!-- end-user-doc -->
161: * @generated
162: */
163: public VersionedDeleteElementType createVersionedDeleteElementType() {
164: VersionedDeleteElementTypeImpl versionedDeleteElementType = new VersionedDeleteElementTypeImpl();
165: return versionedDeleteElementType;
166: }
167:
168: /**
169: * <!-- begin-user-doc -->
170: * <!-- end-user-doc -->
171: * @generated
172: */
173: public VersionedFeatureCollectionType createVersionedFeatureCollectionType() {
174: VersionedFeatureCollectionTypeImpl versionedFeatureCollectionType = new VersionedFeatureCollectionTypeImpl();
175: return versionedFeatureCollectionType;
176: }
177:
178: /**
179: * <!-- begin-user-doc -->
180: * <!-- end-user-doc -->
181: * @generated
182: */
183: public VersionedUpdateElementType createVersionedUpdateElementType() {
184: VersionedUpdateElementTypeImpl versionedUpdateElementType = new VersionedUpdateElementTypeImpl();
185: return versionedUpdateElementType;
186: }
187:
188: /**
189: * <!-- begin-user-doc -->
190: * <!-- end-user-doc -->
191: * @generated
192: */
193: public WfsvPackage getWfsvPackage() {
194: return (WfsvPackage) getEPackage();
195: }
196:
197: /**
198: * <!-- begin-user-doc -->
199: * <!-- end-user-doc -->
200: * @deprecated
201: * @generated
202: */
203: public static WfsvPackage getPackage() {
204: return WfsvPackage.eINSTANCE;
205: }
206:
207: } //WfsvFactoryImpl
|