All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.lionweb.java.emf.builtins.impl.BuiltinsPackageImpl Maven / Gradle / Ivy

The newest version!
/**
 */
package io.lionweb.java.emf.builtins.impl;

import io.lionweb.java.emf.builtins.BuiltinsFactory;
import io.lionweb.java.emf.builtins.BuiltinsPackage;
import io.lionweb.java.emf.builtins.INamed;

import org.eclipse.emf.ecore.EAttribute;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.EPackage;

import org.eclipse.emf.ecore.impl.EPackageImpl;

/**
 * 
 * An implementation of the model Package.
 * 
 * @generated
 */
public class BuiltinsPackageImpl extends EPackageImpl implements BuiltinsPackage
{
	/**
	 * 
	 * 
	 * @generated
	 */
	private EClass iNamedEClass = null;

	/**
	 * Creates an instance of the model Package, registered with
	 * {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package
	 * package URI value.
	 * 

Note: the correct way to create the package is via the static * factory method {@link #init init()}, which also performs * initialization of the package, or returns the registered package, * if one already exists. * * * @see org.eclipse.emf.ecore.EPackage.Registry * @see io.lionweb.java.emf.builtins.BuiltinsPackage#eNS_URI * @see #init() * @generated */ private BuiltinsPackageImpl() { super(eNS_URI, BuiltinsFactory.eINSTANCE); } /** * * * @generated */ private static boolean isInited = false; /** * Creates, registers, and initializes the Package for this model, and for any others upon which it depends. * *

This method is used to initialize {@link BuiltinsPackage#eINSTANCE} when that field is accessed. * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package. * * * @see #eNS_URI * @see #createPackageContents() * @see #initializePackageContents() * @generated */ public static BuiltinsPackage init() { if (isInited) return (BuiltinsPackage)EPackage.Registry.INSTANCE.getEPackage(BuiltinsPackage.eNS_URI); // Obtain or create and register package Object registeredBuiltinsPackage = EPackage.Registry.INSTANCE.get(eNS_URI); BuiltinsPackageImpl theBuiltinsPackage = registeredBuiltinsPackage instanceof BuiltinsPackageImpl ? (BuiltinsPackageImpl)registeredBuiltinsPackage : new BuiltinsPackageImpl(); isInited = true; // Create package meta-data objects theBuiltinsPackage.createPackageContents(); // Initialize created meta-data theBuiltinsPackage.initializePackageContents(); // Mark meta-data to indicate it can't be changed theBuiltinsPackage.freeze(); // Update the registry and return the package EPackage.Registry.INSTANCE.put(BuiltinsPackage.eNS_URI, theBuiltinsPackage); return theBuiltinsPackage; } /** * * * @generated */ @Override public EClass getINamed() { return iNamedEClass; } /** * * * @generated */ @Override public EAttribute getINamed_Name() { return (EAttribute)iNamedEClass.getEStructuralFeatures().get(0); } /** * * * @generated */ @Override public BuiltinsFactory getBuiltinsFactory() { return (BuiltinsFactory)getEFactoryInstance(); } /** * * * @generated */ private boolean isCreated = false; /** * Creates the meta-model objects for the package. This method is * guarded to have no affect on any invocation but its first. * * * @generated */ public void createPackageContents() { if (isCreated) return; isCreated = true; // Create classes and their features iNamedEClass = createEClass(INAMED); createEAttribute(iNamedEClass, INAMED__NAME); } /** * * * @generated */ private boolean isInitialized = false; /** * Complete the initialization of the package and its meta-model. This * method is guarded to have no affect on any invocation but its first. * * * @generated */ public void initializePackageContents() { if (isInitialized) return; isInitialized = true; // Initialize package setName(eNAME); setNsPrefix(eNS_PREFIX); setNsURI(eNS_URI); // Create type parameters // Set bounds for type parameters // Add supertypes to classes // Initialize classes, features, and operations; add parameters initEClass(iNamedEClass, INamed.class, "INamed", IS_ABSTRACT, IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); initEAttribute(getINamed_Name(), ecorePackage.getEString(), "name", null, 1, 1, INamed.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); // Create resource createResource(eNS_URI); } } //BuiltinsPackageImpl





© 2015 - 2024 Weber Informatics LLC | Privacy Policy