org.eclipse.ocl.utilities.impl.UtilitiesFactoryImpl Maven / Gradle / Ivy
/**
*
*
* Copyright (c) 2006, 2008 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 - Initial API and implementation
*
*
*
* $Id: UtilitiesFactoryImpl.java,v 1.7 2010/04/08 06:26:42 ewillink Exp $
* /
*
*
*
* $Id: UtilitiesFactoryImpl.java,v 1.7 2010/04/08 06:26:42 ewillink Exp $
*/
package org.eclipse.ocl.utilities.impl;
import org.eclipse.emf.ecore.EClass;
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.ocl.utilities.*;
import org.eclipse.ocl.utilities.UtilitiesFactory;
import org.eclipse.ocl.utilities.UtilitiesPackage;
/**
*
* An implementation of the model Factory.
*
* @generated
*/
public class UtilitiesFactoryImpl
extends EFactoryImpl
implements UtilitiesFactory {
/**
* Creates the default factory implementation.
*
*
* @generated
*/
public static UtilitiesFactory init() {
try {
UtilitiesFactory theUtilitiesFactory = (UtilitiesFactory) EPackage.Registry.INSTANCE
.getEFactory("http://www.eclipse.org/ocl/1.1.0/OCL/Utilities"); //$NON-NLS-1$
if (theUtilitiesFactory != null) {
return theUtilitiesFactory;
}
} catch (Exception exception) {
EcorePlugin.INSTANCE.log(exception);
}
return new UtilitiesFactoryImpl();
}
/**
* Creates an instance of the factory.
*
*
* @generated
*/
public UtilitiesFactoryImpl() {
super();
}
/**
*
*
* @generated
*/
@Override
public EObject create(EClass eClass) {
switch (eClass.getClassifierID()) {
default :
throw new IllegalArgumentException(
"The class '" + eClass.getName() + "' is not a valid classifier"); //$NON-NLS-1$ //$NON-NLS-2$
}
}
/**
*
*
* @generated
*/
public UtilitiesPackage getUtilitiesPackage() {
return (UtilitiesPackage) getEPackage();
}
/**
*
*
* @deprecated
* @generated
*/
@Deprecated
public static UtilitiesPackage getPackage() {
return UtilitiesPackage.eINSTANCE;
}
} //UtilitiesFactoryImpl