/** | |
* ******************************************************************************* | |
* Copyright (c) 2009 Mia-Software. | |
* All rights reserved. This program and the accompanying materials | |
* are made available under the terms of the Eclipse Public License v2.0 | |
* which accompanies this distribution, and is available at | |
* http://www.eclipse.org/legal/epl-v20.html | |
* | |
* Contributors: | |
* | |
* Fabien Giquel (Mia-Software) - initial API and implementation | |
* Gregoire DUPE (Mia-Software) - initial API and implementation | |
* ******************************************************************************* | |
* | |
* $Id$ | |
*/ | |
package org.eclipse.modisco.java.nousages.cdo.impl; | |
import org.eclipse.emf.common.util.EList; | |
import org.eclipse.emf.ecore.EClass; | |
import org.eclipse.modisco.java.AbstractTypeDeclaration; | |
import org.eclipse.modisco.java.ClassFile; | |
import org.eclipse.modisco.java.CompilationUnit; | |
import org.eclipse.modisco.java.ImportDeclaration; | |
import org.eclipse.modisco.java.nousages.cdo.meta.JavaPackage; | |
/** | |
* <!-- begin-user-doc --> An implementation of the model object ' | |
* <em><b>Class File</b></em>'. <!-- end-user-doc --> | |
* <p> | |
* The following features are implemented: | |
* <ul> | |
* <li>{@link org.eclipse.modisco.java.nousages.cdo.impl.ClassFileImpl#getOriginalFilePath <em>Original File Path</em>}</li> | |
* <li>{@link org.eclipse.modisco.java.nousages.cdo.impl.ClassFileImpl#getType <em>Type</em>}</li> | |
* <li>{@link org.eclipse.modisco.java.nousages.cdo.impl.ClassFileImpl#getAttachedSource <em>Attached Source</em>}</li> | |
* <li>{@link org.eclipse.modisco.java.nousages.cdo.impl.ClassFileImpl#getPackage <em>Package</em>}</li> | |
* </ul> | |
* </p> | |
* | |
* @generated | |
*/ | |
public class ClassFileImpl extends NamedElementImpl implements ClassFile { | |
/** | |
* <!-- begin-user-doc --> <!-- end-user-doc --> | |
* @generated | |
*/ | |
protected ClassFileImpl() { | |
super(); | |
} | |
/** | |
* <!-- begin-user-doc --> <!-- end-user-doc --> | |
* @generated | |
*/ | |
@Override | |
protected EClass eStaticClass() { | |
return JavaPackage.eINSTANCE.getClassFile(); | |
} | |
/** | |
* <!-- begin-user-doc --> <!-- end-user-doc --> | |
* @generated | |
*/ | |
public String getOriginalFilePath() { | |
return (String)eGet(JavaPackage.eINSTANCE.getClassFile_OriginalFilePath(), true); | |
} | |
/** | |
* <!-- begin-user-doc --> <!-- end-user-doc --> | |
* @generated | |
*/ | |
public void setOriginalFilePath(String newOriginalFilePath) { | |
eSet(JavaPackage.eINSTANCE.getClassFile_OriginalFilePath(), newOriginalFilePath); | |
} | |
/** | |
* <!-- begin-user-doc --> <!-- end-user-doc --> | |
* @generated | |
*/ | |
public AbstractTypeDeclaration getType() { | |
return (AbstractTypeDeclaration)eGet(JavaPackage.eINSTANCE.getClassFile_Type(), true); | |
} | |
/** | |
* <!-- begin-user-doc --> <!-- end-user-doc --> | |
* @generated | |
*/ | |
public void setType(AbstractTypeDeclaration newType) { | |
eSet(JavaPackage.eINSTANCE.getClassFile_Type(), newType); | |
} | |
/** | |
* <!-- begin-user-doc --> <!-- end-user-doc --> | |
* @generated | |
*/ | |
public CompilationUnit getAttachedSource() { | |
return (CompilationUnit)eGet(JavaPackage.eINSTANCE.getClassFile_AttachedSource(), true); | |
} | |
/** | |
* <!-- begin-user-doc --> <!-- end-user-doc --> | |
* @generated | |
*/ | |
public void setAttachedSource(CompilationUnit newAttachedSource) { | |
eSet(JavaPackage.eINSTANCE.getClassFile_AttachedSource(), newAttachedSource); | |
} | |
/** | |
* <!-- begin-user-doc --> <!-- end-user-doc --> | |
* @generated | |
*/ | |
public org.eclipse.modisco.java.Package getPackage() { | |
return (org.eclipse.modisco.java.Package)eGet(JavaPackage.eINSTANCE.getClassFile_Package(), true); | |
} | |
/** | |
* <!-- begin-user-doc --> <!-- end-user-doc --> | |
* @generated | |
*/ | |
public void setPackage(org.eclipse.modisco.java.Package newPackage) { | |
eSet(JavaPackage.eINSTANCE.getClassFile_Package(), newPackage); | |
} | |
public EList<ImportDeclaration> getUsagesInImports() { | |
// no usages references | |
return null; | |
} | |
} // ClassFileImpl |