blob: 677fc0909a523672a178eb993941058a83ec628b [file] [log] [blame]
/*
* Copyright (c) 2003, 2005 IBM Corporation 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:
* IBM - initial API and implementation
*
* $Id: Comment.java,v 1.10 2005/06/15 20:06:01 khussey Exp $
*/
package org.eclipse.uml2;
import org.eclipse.emf.common.util.EList;
import org.eclipse.emf.ecore.EClass;
/**
* <!-- begin-user-doc -->
* A representation of the model object '<em><b>Comment</b></em>'.
* <!-- end-user-doc -->
*
* <!-- begin-model-doc -->
* A comment gives the ability to attach various remarks to elements. A comment carries no semantic force, but may contain information that is useful to a modeler. A comment can be owned by any element.
* <!-- end-model-doc -->
*
* <p>
* The following features are supported:
* <ul>
* <li>{@link org.eclipse.uml2.Comment#getBody <em>Body</em>}</li>
* <li>{@link org.eclipse.uml2.Comment#getAnnotatedElements <em>Annotated Element</em>}</li>
* <li>{@link org.eclipse.uml2.Comment#getBodyExpression <em>Body Expression</em>}</li>
* </ul>
* </p>
*
* @see org.eclipse.uml2.UML2Package#getComment()
* @model
* @generated
*/
public interface Comment extends TemplateableElement{
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
String copyright = "Copyright (c) IBM Corporation and others."; //$NON-NLS-1$
/**
* Returns the value of the '<em><b>Body</b></em>' attribute.
* The default value is <code>""</code>.
* <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Body</em>' attribute isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* <!-- begin-model-doc -->
* Specifies a string that is the comment.
* <!-- end-model-doc -->
* @return the value of the '<em>Body</em>' attribute.
* @see #setBody(String)
* @see org.eclipse.uml2.UML2Package#getComment_Body()
* @model default="" dataType="org.eclipse.uml2.String"
* extendedMetaData="kind='element'"
* @generated
*/
String getBody();
/**
* Sets the value of the '{@link org.eclipse.uml2.Comment#getBody <em>Body</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Body</em>' attribute.
* @see #getBody()
* @generated
*/
void setBody(String value);
/**
* Returns the value of the '<em><b>Annotated Element</b></em>' reference list.
* The list contents are of type {@link org.eclipse.uml2.Element}.
* <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Annotated Element</em>' reference list isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* <!-- begin-model-doc -->
* References the Element(s) being commented.
* <!-- end-model-doc -->
* @return the value of the '<em>Annotated Element</em>' reference list.
* @see org.eclipse.uml2.UML2Package#getComment_AnnotatedElement()
* @model type="org.eclipse.uml2.Element" ordered="false"
* @generated
*/
EList getAnnotatedElements();
/**
* Returns the value of the '<em><b>Body Expression</b></em>' containment reference.
* <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Body Expression</em>' containment reference isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @return the value of the '<em>Body Expression</em>' containment reference.
* @see #setBodyExpression(StringExpression)
* @see org.eclipse.uml2.UML2Package#getComment_BodyExpression()
* @model containment="true"
* @generated
*/
StringExpression getBodyExpression();
/**
* Sets the value of the '{@link org.eclipse.uml2.Comment#getBodyExpression <em>Body Expression</em>}' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Body Expression</em>' containment reference.
* @see #getBodyExpression()
* @generated
*/
void setBodyExpression(StringExpression value);
/**
* Creates a {@link org.eclipse.uml2.StringExpression} and sets the '<em><b>Body Expression</b></em>' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param eClass The Ecore class of the {@link org.eclipse.uml2.StringExpression} to create.
* @return The new {@link org.eclipse.uml2.StringExpression}.
* @see #getBodyExpression()
* @generated NOT
* @deprecated Use #createBodyExpression() instead.
*/
StringExpression createBodyExpression(EClass eClass);
/**
* Creates a {@link org.eclipse.uml2.StringExpression} and sets the '<em><b>Body Expression</b></em>' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return The new {@link org.eclipse.uml2.StringExpression}.
* @see #getBodyExpression()
* @generated
*/
StringExpression createBodyExpression();
} // Comment