Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
   /*
    * Copyright (c) 2011 CEA 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:
    *   CEA - initial API and implementation
   *
   */
  package org.eclipse.uml2.uml.profile.l2.internal.impl;
  
  
  
  
  
An implementation of the model Package.

Generated:
  
  public class L2PackageImpl
  		extends EPackageImpl
  		implements L2Package {

Generated:
  
  	private EClass auxiliaryEClass = null;

Generated:
  
  	private EClass callEClass = null;

Generated:
  
  	private EClass createEClass = null;

Generated:
  
  	private EClass deriveEClass = null;

Generated:
 
 	private EClass destroyEClass = null;

Generated:
 
 	private EClass documentEClass = null;

Generated:
 
 	private EClass fileEClass = null;

Generated:
 
 	private EClass entityEClass = null;

Generated:
 
 	private EClass executableEClass = null;

Generated:
 
 	private EClass focusEClass = null;

Generated:
 
 	private EClass frameworkEClass = null;

Generated:
 
 	private EClass implementEClass = null;

Generated:
 
 	private EClass implementationClassEClass = null;

Generated:
 
 	private EClass instantiateEClass = null;

Generated:
 
 	private EClass libraryEClass = null;

Generated:
 
 	private EClass metaclassEClass = null;

Generated:
 
 	private EClass modelLibraryEClass = null;

Generated:
 
 	private EClass processEClass = null;

Generated:
 
 	private EClass realizationEClass = null;

Generated:
 
 	private EClass refineEClass = null;

Generated:
 
 	private EClass responsibilityEClass = null;

Generated:
 
 	private EClass scriptEClass = null;

Generated:
 
 	private EClass sendEClass = null;

Generated:
 
 	private EClass serviceEClass = null;

Generated:
 
 	private EClass sourceEClass = null;

Generated:
 
 	private EClass specificationEClass = null;

Generated:
 
 	private EClass subsystemEClass = null;

Generated:
 
 	private EClass traceEClass = null;

Generated:
 
 	private EClass typeEClass = null;

Generated:
 
 	private EClass utilityEClass = null;

Creates an instance of the model Package, registered with EPackage.Registry by the package package URI value.

Note: the correct way to create the package is via the static factory method init(), which also performs initialization of the package, or returns the registered package, if one already exists.

 
 	private L2PackageImpl() {
 	}

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 org.eclipse.uml2.uml.profile.l2.L2Package.eINSTANCE when that field is accessed. Clients should not invoke it directly. Instead, they should simply access that field to obtain the package.

 
 	public static L2Package init() {
 		if ()
 
 		// Obtain or create and register package
 			.get(instanceof L2PackageImpl
 			: new L2PackageImpl());
 
 		 = true;
 
 		// Initialize simple dependencies
 
 		// Create package meta-data objects
 		theL2Package.createPackageContents();
 
 		// Initialize created meta-data
 		theL2Package.initializePackageContents();
 
 		// Register package validator
 
 				public EValidator getEValidator() {
 				}
 			});
 
 		// Mark meta-data to indicate it can't be changed
 		theL2Package.freeze();
 
 		// Update the registry and return the package
 		return theL2Package;
 	}

Generated:
 
 	public EClass getAuxiliary() {
 		return ;
 	}

Generated:
 
 	}

Generated:
 
 	public EClass getCall() {
 		return ;
 	}

Generated:
 
 	}

Generated:
 
 	}

Generated:
 
 	public EClass getCreate() {
 		return ;
 	}

Generated:
 
 	}

Generated:
 
 	}

Generated:
 
 	}

Generated:
 
 	public EClass getDerive() {
 		return ;
 	}

Generated:
 
 	}

Generated:
 
 	}

Generated:
 
 	public EClass getDestroy() {
 		return ;
 	}

Generated:
 
 	}

Generated:
 
 	public EClass getDocument() {
 		return ;
 	}

Generated:
 
 	public EClass getFile() {
 		return ;
 	}

Generated:
 
 	}

Generated:
 
 	public EClass getEntity() {
 		return ;
 	}

Generated:
 
 	}

Generated:
 
 	public EClass getExecutable() {
 	}

Generated:
 
 	public EClass getFocus() {
 		return ;
 	}

Generated:
 
 	}

Generated:
 
 	public EClass getFramework() {
 		return ;
 	}

Generated:
 
 	}

Generated:
 
 	public EClass getImplement() {
 		return ;
 	}

Generated:
 
 	}

Generated:
 
 	}

Generated:
 
 	}

Generated:
 
 			.get(0);
 	}

Generated:
 
 	}

Generated:
 
 	public EClass getInstantiate() {
 	}

Generated:
 
 	}

Generated:
 
 	}

Generated:
 
 	public EClass getLibrary() {
 		return ;
 	}

Generated:
 
 	public EClass getMetaclass() {
 		return ;
 	}

Generated:
 
 	}

Generated:
 
 	public EClass getModelLibrary() {
 	}

Generated:
 
 	}

Generated:
 
 	public EClass getProcess() {
 		return ;
 	}

Generated:
 
 	}

Generated:
 
 	public EClass getRealization() {
 	}

Generated:
 
 	}

Generated:
 
 	}

Generated:
 
 	public EClass getRefine() {
 		return ;
 	}

Generated:
 
 	}

Generated:
 
 	public EClass getResponsibility() {
 	}

Generated:
 
 			.get(0);
 	}

Generated:
 
 	public EClass getScript() {
 		return ;
 	}

Generated:
 
 	public EClass getSend() {
 		return ;
 	}

Generated:
 
 	}

Generated:
 
 	}

Generated:
 
 	public EClass getService() {
 		return ;
 	}

Generated:
 
 	}

Generated:
 
 	public EClass getSource() {
 		return ;
 	}

Generated:
 
 	public EClass getSpecification() {
 	}

Generated:
 
 	}

Generated:
 
 	}

Generated:
 
 	public EClass getSubsystem() {
 		return ;
 	}

Generated:
 
 	}

Generated:
 
 	public EClass getTrace() {
 		return ;
 	}

Generated:
 
 	}

Generated:
 
 	public EClass getType() {
 		return ;
 	}

Generated:
 
 	}

Generated:
 
 	}

Generated:
 
 	public EClass getUtility() {
 		return ;
 	}

Generated:
 
 	}

Generated:
 
 	}

Generated:
 
 	public L2Factory getL2Factory() {
 	}

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 ()
 			return;
 		 = true;
 
 		// Create classes and their features
 
 
	}

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() {
			return;
		// Initialize package
		// Obtain other dependent packages
		// Create type parameters
		// Set bounds for type parameters
		// Add supertypes to classes
		// Initialize classes, features, and operations; add parameters
			"Auxiliary", !, !); //$NON-NLS-1$
			theUMLPackage.getClass_(),
			null,
			"base_Class"null, 1, 1, Auxiliary.class, !, !, !, !, !, !); //$NON-NLS-1$
			theUMLPackage.getUsage(),
			null,
			"base_Usage"null, 1, 1, Call.class, !, !, !, !, !, !); //$NON-NLS-1$
			"validateClientAndSupplierAreOperations", 0, 1, ); //$NON-NLS-1$
			"diagnostics", 0, 1, ); //$NON-NLS-1$
		addEParameter(opg1"context", 0, 1, ); //$NON-NLS-1$
			"Create", !, !); //$NON-NLS-1$
			theUMLPackage.getBehavioralFeature(),
			null,
			"base_BehavioralFeature"null, 1, 1, Create.class, !, !, !, !, !, !); //$NON-NLS-1$
			theUMLPackage.getUsage(),
			null,
			"base_Usage"null, 1, 1, Create.class, !, !, !, !, !, !); //$NON-NLS-1$
			"validateClientAndSupplierAreClassifiers", 0, 1, ); //$NON-NLS-1$
			"diagnostics", 0, 1, ); //$NON-NLS-1$
		addEParameter(opg1"context", 0, 1, ); //$NON-NLS-1$
			"Derive", !, !); //$NON-NLS-1$
			theUMLPackage.getAbstraction(),
			null,
			"base_Abstraction"null, 1, 1, Derive.class, !, !, !, !, !, !); //$NON-NLS-1$
			theUMLPackage.getValueSpecification(),
			null,
			"computation"null, 1, 1, Derive.class, !, !, !, !, !); //$NON-NLS-1$
			"Destroy", !, !); //$NON-NLS-1$
			theUMLPackage.getBehavioralFeature(),
			null,
			"base_BehavioralFeature"null, 1, 1, Destroy.class, !, !, !, !, !, !); //$NON-NLS-1$
			Document.class,
			"Document", !, !); //$NON-NLS-1$
			theUMLPackage.getArtifact(),
			null,
			"base_Artifact"null, 1, 1, File.class, !, !, !, !, !, !); //$NON-NLS-1$
			"Entity", !, !); //$NON-NLS-1$
			theUMLPackage.getComponent(),
			null,
			"base_Component"null, 1, 1, Entity.class, !, !, !, !, !, !); //$NON-NLS-1$
			"Executable", !, !); //$NON-NLS-1$
			"Focus", !, !); //$NON-NLS-1$
			theUMLPackage.getClass_(),
			null,
			"base_Class"null, 1, 1, Focus.class, !, !, !, !, !, !); //$NON-NLS-1$
			"Framework", !, !); //$NON-NLS-1$
			theUMLPackage.getPackage(),
			null,
			"base_Package"null, 1, 1, Framework.class, !, !, !, !, !, !); //$NON-NLS-1$
			"Implement", !, !); //$NON-NLS-1$
			theUMLPackage.getComponent(),
			null,
			"base_Component"null, 1, 1, Implement.class, !, !, !, !, !, !); //$NON-NLS-1$
			"validateImplementsSpecification", 0, 1, ); //$NON-NLS-1$
			"diagnostics", 0, 1, ); //$NON-NLS-1$
		addEParameter(opg1"context", 0, 1, ); //$NON-NLS-1$
			"ImplementationClass", !, !); //$NON-NLS-1$
			theUMLPackage.getClass_(),
			null,
			"validateCannotBeRealization", 0, 1, ); //$NON-NLS-1$
			"diagnostics", 0, 1, ); //$NON-NLS-1$
		addEParameter(opg1"context", 0, 1, ); //$NON-NLS-1$
			"Instantiate", !, !); //$NON-NLS-1$
			theUMLPackage.getUsage(),
			null,
			"base_Usage"null, 1, 1, Instantiate.class, !, !, !, !, !, !); //$NON-NLS-1$
			"validateClientAndSupplierAreClassifiers", 0, 1, ); //$NON-NLS-1$
			"diagnostics", 0, 1, ); //$NON-NLS-1$
		addEParameter(opg1"context", 0, 1, ); //$NON-NLS-1$
			"Library", !, !); //$NON-NLS-1$
			"Metaclass", !, !); //$NON-NLS-1$
			theUMLPackage.getClass_(),
			null,
			"base_Class"null, 1, 1, Metaclass.class, !, !, !, !, !, !); //$NON-NLS-1$
			"ModelLibrary", !, !); //$NON-NLS-1$
			theUMLPackage.getPackage(),
			null,
			"base_Package"null, 1, 1, ModelLibrary.class, !, !, !, !, !, !); //$NON-NLS-1$
			"Process", !, !); //$NON-NLS-1$
			theUMLPackage.getComponent(),
			null,
			"base_Component"null, 1, 1, org.eclipse.uml2.uml.profile.l2.Process.class, !, !, !, !, !, !); //$NON-NLS-1$
			"Realization", !, !); //$NON-NLS-1$
			theUMLPackage.getClassifier(),
			null,
			"base_Classifier"null, 1, 1, Realization.class, !, !, !, !, !, !); //$NON-NLS-1$
			"validateCannotBeImplementationClass", 0, 1, ); //$NON-NLS-1$
			"diagnostics", 0, 1, ); //$NON-NLS-1$
		addEParameter(opg1"context", 0, 1, ); //$NON-NLS-1$
			"Refine", !, !); //$NON-NLS-1$
			theUMLPackage.getAbstraction(),
			null,
			"base_Abstraction"null, 1, 1, Refine.class, !, !, !, !, !, !); //$NON-NLS-1$
			"Responsibility", !, !); //$NON-NLS-1$
			theUMLPackage.getUsage(),
			null,
			"base_Usage"null, 1, 1, Responsibility.class, !, !, !, !, !, !); //$NON-NLS-1$