diff options
Diffstat (limited to 'examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/naturalId/impl/NaturalIdFactoryImpl.java')
-rw-r--r-- | examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/naturalId/impl/NaturalIdFactoryImpl.java | 110 |
1 files changed, 0 insertions, 110 deletions
diff --git a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/naturalId/impl/NaturalIdFactoryImpl.java b/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/naturalId/impl/NaturalIdFactoryImpl.java deleted file mode 100644 index 254590f52..000000000 --- a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/naturalId/impl/NaturalIdFactoryImpl.java +++ /dev/null @@ -1,110 +0,0 @@ -/** - * <copyright> - * </copyright> - * - * $Id: NaturalIdFactoryImpl.java,v 1.1 2008/06/29 14:23:14 mtaal Exp $ - */ -package org.eclipse.emf.teneo.samples.emf.annotations.naturalId.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.emf.teneo.samples.emf.annotations.naturalId.*; - -/** - * <!-- begin-user-doc --> - * An implementation of the model <b>Factory</b>. - * <!-- end-user-doc --> - * @generated - */ -public class NaturalIdFactoryImpl extends EFactoryImpl implements NaturalIdFactory { - /** - * Creates the default factory implementation. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public static NaturalIdFactory init() { - try { - NaturalIdFactory theNaturalIdFactory = (NaturalIdFactory)EPackage.Registry.INSTANCE.getEFactory("http://www.eclipse.org/emf/teneo/samples/emf/annotations/naturalid"); - if (theNaturalIdFactory != null) { - return theNaturalIdFactory; - } - } - catch (Exception exception) { - EcorePlugin.INSTANCE.log(exception); - } - return new NaturalIdFactoryImpl(); - } - - /** - * Creates an instance of the factory. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public NaturalIdFactoryImpl() { - super(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public EObject create(EClass eClass) { - switch (eClass.getClassifierID()) { - case NaturalIdPackage.PERSON: return createPerson(); - case NaturalIdPackage.FAMILY: return createFamily(); - default: - throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier"); - } - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public Person createPerson() { - PersonImpl person = new PersonImpl(); - return person; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public Family createFamily() { - FamilyImpl family = new FamilyImpl(); - return family; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public NaturalIdPackage getNaturalIdPackage() { - return (NaturalIdPackage)getEPackage(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @deprecated - * @generated - */ - @Deprecated - public static NaturalIdPackage getPackage() { - return NaturalIdPackage.eINSTANCE; - } - -} //NaturalIdFactoryImpl |