blob: e61cb6aae20e011269d9870cb3939389b616c313 [file] [log] [blame]
/*
* Copyright (c) 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: Feature.java,v 1.1 2005/11/14 22:26:01 khussey Exp $
*/
package org.eclipse.uml2.uml;
import java.util.List;
/**
* <!-- begin-user-doc -->
* A representation of the model object '<em><b>Feature</b></em>'.
* <!-- end-user-doc -->
*
* <!-- begin-model-doc -->
* A feature declares a behavioral or structural characteristic of instances of classifiers. Feature is an abstract metaclass.
* <!-- end-model-doc -->
*
* <p>
* The following features are supported:
* <ul>
* <li>{@link org.eclipse.uml2.uml.Feature#isStatic <em>Is Static</em>}</li>
* <li>{@link org.eclipse.uml2.uml.Feature#getFeaturingClassifiers <em>Featuring Classifier</em>}</li>
* </ul>
* </p>
*
* @see org.eclipse.uml2.uml.UMLPackage#getFeature()
* @model abstract="true"
* @generated
*/
public interface Feature
extends RedefinableElement {
/**
* Returns the value of the '<em><b>Is Static</b></em>' attribute.
* The default value is <code>"false"</code>.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* <!-- begin-model-doc -->
* Specifies whether this feature characterizes individual instances classified by the classifier (false) or the classifier itself (true).
* <!-- end-model-doc -->
* @return the value of the '<em>Is Static</em>' attribute.
* @see #setIsStatic(boolean)
* @see org.eclipse.uml2.uml.UMLPackage#getFeature_IsStatic()
* @model default="false" required="true" ordered="false"
* @generated
*/
boolean isStatic();
/**
* Sets the value of the '{@link org.eclipse.uml2.uml.Feature#isStatic <em>Is Static</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Is Static</em>' attribute.
* @see #isStatic()
* @generated
*/
void setIsStatic(boolean value);
/**
* Returns the value of the '<em><b>Featuring Classifier</b></em>' reference list.
* The list contents are of type {@link org.eclipse.uml2.uml.Classifier}.
* It is bidirectional and its opposite is '{@link org.eclipse.uml2.uml.Classifier#getFeatures <em>Feature</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* <!-- begin-model-doc -->
* Redefines the corresponding association in Abstractions.
* The Classifiers that have this Feature as a feature.
* <!-- end-model-doc -->
* @return the value of the '<em>Featuring Classifier</em>' reference list.
* @see org.eclipse.uml2.uml.UMLPackage#getFeature_FeaturingClassifier()
* @see org.eclipse.uml2.uml.Classifier#getFeatures
* @model type="org.eclipse.uml2.uml.Classifier" opposite="feature" transient="true" changeable="false" derived="true" ordered="false"
* @generated
*/
List getFeaturingClassifiers();
/**
* Retrieves the {@link org.eclipse.uml2.uml.Classifier} with the specified '<em><b>Name</b></em>' from the '<em><b>Featuring Classifier</b></em>' reference list.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param name The '<em><b>Name</b></em>' of the {@link org.eclipse.uml2.uml.Classifier} to retrieve.
* @return The {@link org.eclipse.uml2.uml.Classifier} with the specified '<em><b>Name</b></em>', or <code>null</code>.
* @see #getFeaturingClassifiers()
* @generated
*/
Classifier getFeaturingClassifier(String name);
} // Feature