diff options
Diffstat (limited to 'plugins/sysml/sysml14/org.eclipse.papyrus.sysml14/src-gen/org/eclipse/papyrus/sysml14/constraintblocks/internal/impl/ConstraintblocksFactoryImpl.java')
-rw-r--r-- | plugins/sysml/sysml14/org.eclipse.papyrus.sysml14/src-gen/org/eclipse/papyrus/sysml14/constraintblocks/internal/impl/ConstraintblocksFactoryImpl.java | 101 |
1 files changed, 101 insertions, 0 deletions
diff --git a/plugins/sysml/sysml14/org.eclipse.papyrus.sysml14/src-gen/org/eclipse/papyrus/sysml14/constraintblocks/internal/impl/ConstraintblocksFactoryImpl.java b/plugins/sysml/sysml14/org.eclipse.papyrus.sysml14/src-gen/org/eclipse/papyrus/sysml14/constraintblocks/internal/impl/ConstraintblocksFactoryImpl.java new file mode 100644 index 00000000000..b863e38d03f --- /dev/null +++ b/plugins/sysml/sysml14/org.eclipse.papyrus.sysml14/src-gen/org/eclipse/papyrus/sysml14/constraintblocks/internal/impl/ConstraintblocksFactoryImpl.java @@ -0,0 +1,101 @@ +/** + * Copyright (c) 2015 CEA LIST. + * + * 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 + */ +package org.eclipse.papyrus.sysml14.constraintblocks.internal.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.papyrus.sysml14.constraintblocks.*; + +/** + * <!-- begin-user-doc --> + * An implementation of the model <b>Factory</b>. + * <!-- end-user-doc --> + * @generated + */ +public class ConstraintblocksFactoryImpl extends EFactoryImpl implements ConstraintblocksFactory { + /** + * Creates the default factory implementation. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public static ConstraintblocksFactory init() { + try { + ConstraintblocksFactory theConstraintblocksFactory = (ConstraintblocksFactory)EPackage.Registry.INSTANCE.getEFactory(ConstraintblocksPackage.eNS_URI); + if (theConstraintblocksFactory != null) { + return theConstraintblocksFactory; + } + } + catch (Exception exception) { + EcorePlugin.INSTANCE.log(exception); + } + return new ConstraintblocksFactoryImpl(); + } + + /** + * Creates an instance of the factory. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public ConstraintblocksFactoryImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public EObject create(EClass eClass) { + switch (eClass.getClassifierID()) { + case ConstraintblocksPackage.CONSTRAINT_BLOCK: return createConstraintBlock(); + default: + throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier"); //$NON-NLS-1$ //$NON-NLS-2$ + } + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public ConstraintBlock createConstraintBlock() { + ConstraintBlockImpl constraintBlock = new ConstraintBlockImpl(); + return constraintBlock; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public ConstraintblocksPackage getConstraintblocksPackage() { + return (ConstraintblocksPackage)getEPackage(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @deprecated + * @generated + */ + @Deprecated + public static ConstraintblocksPackage getPackage() { + return ConstraintblocksPackage.eINSTANCE; + } + +} //ConstraintblocksFactoryImpl |