blob: 2bf023c142d94588bb67e876d006c40dddff0c0b [file] [log] [blame]
/**
* *******************************************************************************
* Copyright (c) 2009, 2019 Mia-Software and others.
* 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.cdo.impl;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.modisco.java.Comment;
import org.eclipse.modisco.java.cdo.meta.JavaPackage;
/**
* <!-- begin-user-doc -->
* An implementation of the model object '<em><b>Comment</b></em>'.
* <!-- end-user-doc -->
* <p>
* The following features are implemented:
* <ul>
* <li>{@link org.eclipse.modisco.java.cdo.impl.CommentImpl#getContent <em>Content</em>}</li>
* <li>{@link org.eclipse.modisco.java.cdo.impl.CommentImpl#isEnclosedByParent <em>Enclosed By Parent</em>}</li>
* <li>{@link org.eclipse.modisco.java.cdo.impl.CommentImpl#isPrefixOfParent <em>Prefix Of Parent</em>}</li>
* </ul>
* </p>
*
* @generated
*/
public abstract class CommentImpl extends ASTNodeImpl implements Comment {
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected CommentImpl() {
super();
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
protected EClass eStaticClass() {
return JavaPackage.eINSTANCE.getComment();
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public String getContent() {
return (String)eGet(JavaPackage.eINSTANCE.getComment_Content(), true);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setContent(String newContent) {
eSet(JavaPackage.eINSTANCE.getComment_Content(), newContent);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public boolean isEnclosedByParent() {
return (Boolean)eGet(JavaPackage.eINSTANCE.getComment_EnclosedByParent(), true);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setEnclosedByParent(boolean newEnclosedByParent) {
eSet(JavaPackage.eINSTANCE.getComment_EnclosedByParent(), newEnclosedByParent);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public boolean isPrefixOfParent() {
return (Boolean)eGet(JavaPackage.eINSTANCE.getComment_PrefixOfParent(), true);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setPrefixOfParent(boolean newPrefixOfParent) {
eSet(JavaPackage.eINSTANCE.getComment_PrefixOfParent(), newPrefixOfParent);
}
} //CommentImpl