Search in sources :

Example 1 with InformationModelPackageImpl

use of org.eclipse.vorto.core.api.model.informationmodel.impl.InformationModelPackageImpl in project vorto by eclipse.

the class ModelPackageImpl method init.

/**
 * Creates, registers, and initializes the <b>Package</b> for this model, and for any others upon which it depends.
 *
 * <p>This method is used to initialize {@link ModelPackage#eINSTANCE} when that field is accessed.
 * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @see #eNS_URI
 * @see #createPackageContents()
 * @see #initializePackageContents()
 * @generated
 */
public static ModelPackage init() {
    if (isInited)
        return (ModelPackage) EPackage.Registry.INSTANCE.getEPackage(ModelPackage.eNS_URI);
    // Obtain or create and register package
    ModelPackageImpl theModelPackage = (ModelPackageImpl) (EPackage.Registry.INSTANCE.get(eNS_URI) instanceof ModelPackageImpl ? EPackage.Registry.INSTANCE.get(eNS_URI) : new ModelPackageImpl());
    isInited = true;
    // Initialize simple dependencies
    FunctionblockPackage.eINSTANCE.eClass();
    org.eclipse.vorto.core.api.model.model.ModelPackage.eINSTANCE.eClass();
    // Obtain or create and register interdependencies
    InformationModelPackageImpl theInformationModelPackage = (InformationModelPackageImpl) (EPackage.Registry.INSTANCE.getEPackage(InformationModelPackage.eNS_URI) instanceof InformationModelPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(InformationModelPackage.eNS_URI) : InformationModelPackage.eINSTANCE);
    // Create package meta-data objects
    theModelPackage.createPackageContents();
    theInformationModelPackage.createPackageContents();
    // Initialize created meta-data
    theModelPackage.initializePackageContents();
    theInformationModelPackage.initializePackageContents();
    // Mark meta-data to indicate it can't be changed
    theModelPackage.freeze();
    // Update the registry and return the package
    EPackage.Registry.INSTANCE.put(ModelPackage.eNS_URI, theModelPackage);
    return theModelPackage;
}
Also used : InformationModelPackageImpl(org.eclipse.vorto.core.api.model.informationmodel.impl.InformationModelPackageImpl) InformationModelPackageImpl(org.eclipse.vorto.core.api.model.informationmodel.impl.InformationModelPackageImpl)

Aggregations

InformationModelPackageImpl (org.eclipse.vorto.core.api.model.informationmodel.impl.InformationModelPackageImpl)1