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 Factory.

Generated:
 
 public class L2FactoryImpl
 		extends EFactoryImpl
 		implements L2Factory {

Creates the default factory implementation.

Generated:
 
 	public static L2Factory init() {
 		try {
 				.getEFactory("http://www.eclipse.org/uml2/4.0.0/UML/Profile/L2"); //$NON-NLS-1$ 
 			if (theL2Factory != null) {
 				return theL2Factory;
 			}
 		} catch (Exception exception) {
 			..log(exception);
 		}
 		return new L2FactoryImpl();
 	}

Creates an instance of the factory.

Generated:
 
 	public L2FactoryImpl() {
 		super();
 	}

Generated:
 
 	public EObject create(EClass eClass) {
 		switch (eClass.getClassifierID()) {
				return createAuxiliary();
			case . :
				return createCall();
				return createCreate();
				return createDerive();
				return createDestroy();
				return createDocument();
				return createEntity();
				return createFocus();
				return createFramework();
				return createImplement();
				return createLibrary();
				return createMetaclass();
				return createProcess();
				return createRefine();
				return createScript();
			case . :
				return createSend();
				return createService();
				return createSource();
				return createSubsystem();
				return createTrace();
			case . :
				return createType();
				return createUtility();
			default :
					"The class '" + eClass.getName() + "' is not a valid classifier"); //$NON-NLS-1$ //$NON-NLS-2$
		}
	}

Generated:
		AuxiliaryImpl auxiliary = new AuxiliaryImpl();
		return auxiliary;
	}

Generated:
	public Call createCall() {
		CallImpl call = new CallImpl();
		return call;
	}

Generated:
	public Create createCreate() {
		CreateImpl create = new CreateImpl();
		return create;
	}

Generated:
	public Derive createDerive() {
		DeriveImpl derive = new DeriveImpl();
		return derive;
	}

Generated:
	public Destroy createDestroy() {
		DestroyImpl destroy = new DestroyImpl();
		return destroy;
	}

Generated:
		DocumentImpl document = new DocumentImpl();
		return document;
	}

Generated:
	public Entity createEntity() {
		EntityImpl entity = new EntityImpl();
		return entity;
	}

Generated:
		ExecutableImpl executable = new ExecutableImpl();
		return executable;
	}

Generated:
	public Focus createFocus() {
		FocusImpl focus = new FocusImpl();
		return focus;
	}

Generated:
		FrameworkImpl framework = new FrameworkImpl();
		return framework;
	}

Generated:
		ImplementImpl implement = new ImplementImpl();
		return implement;
	}

Generated:
		ImplementationClassImpl implementationClass = new ImplementationClassImpl();
		return implementationClass;
	}

Generated:
		InstantiateImpl instantiate = new InstantiateImpl();
		return instantiate;
	}

Generated:
	public Library createLibrary() {
		LibraryImpl library = new LibraryImpl();
		return library;
	}

Generated:
		MetaclassImpl metaclass = new MetaclassImpl();
		return metaclass;
	}

Generated:
		ModelLibraryImpl modelLibrary = new ModelLibraryImpl();
		return modelLibrary;
	}

Generated:
		ProcessImpl process = new ProcessImpl();
		return process;
	}

Generated:
		RealizationImpl realization = new RealizationImpl();
		return realization;
	}

Generated:
	public Refine createRefine() {
		RefineImpl refine = new RefineImpl();
		return refine;
	}

Generated:
		ResponsibilityImpl responsibility = new ResponsibilityImpl();
		return responsibility;
	}

Generated:
	public Script createScript() {
		ScriptImpl script = new ScriptImpl();
		return script;
	}

Generated:
	public Send createSend() {
		SendImpl send = new SendImpl();
		return send;
	}

Generated:
	public Service createService() {
		ServiceImpl service = new ServiceImpl();
		return service;
	}

Generated:
	public Source createSource() {
		SourceImpl source = new SourceImpl();
		return source;
	}

Generated:
		SpecificationImpl specification = new SpecificationImpl();
		return specification;
	}

Generated:
		SubsystemImpl subsystem = new SubsystemImpl();
		return subsystem;
	}

Generated:
	public Trace createTrace() {
		TraceImpl trace = new TraceImpl();
		return trace;
	}

Generated:
	public Type createType() {
		TypeImpl type = new TypeImpl();
		return type;
	}

Generated:
	public Utility createUtility() {
		UtilityImpl utility = new UtilityImpl();
		return utility;
	}

Generated:
	public L2Package getL2Package() {
		return (L2PackagegetEPackage();
	}

Deprecated:
Generated:
	public static L2Package getPackage() {
	}
//L2FactoryImpl
New to GrepCode? Check out our FAQ X