org.eclipse.uml2.uml.RedefinableElement Maven / Gradle / Ivy
The newest version!
/*
* Copyright (c) 2005, 2014 IBM Corporation, Embarcadero Technologies, 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:
* IBM - initial API and implementation
* Kenn Hussey (Embarcadero Technologies) - 205188
* Kenn Hussey (CEA) - 327039, 418466
* Christian W. Damus (CEA) - 251963
*
*/
package org.eclipse.uml2.uml;
import java.util.Map;
import org.eclipse.emf.common.util.DiagnosticChain;
import org.eclipse.emf.common.util.EList;
import org.eclipse.emf.ecore.EClass;
/**
*
* A representation of the model object 'Redefinable Element'.
*
*
*
* A RedefinableElement is an element that, when defined in the context of a Classifier, can be redefined more specifically or differently in the context of another Classifier that specializes (directly or indirectly) the context Classifier.
* From package UML::Classification.
*
*
*
* The following features are supported:
*
* - {@link org.eclipse.uml2.uml.RedefinableElement#isLeaf Is Leaf}
* - {@link org.eclipse.uml2.uml.RedefinableElement#getRedefinedElements Redefined Element}
* - {@link org.eclipse.uml2.uml.RedefinableElement#getRedefinitionContexts Redefinition Context}
*
*
*
* @see org.eclipse.uml2.uml.UMLPackage#getRedefinableElement()
* @model abstract="true"
* @generated
*/
public interface RedefinableElement
extends NamedElement {
/**
* Returns the value of the 'Is Leaf' attribute.
* The default value is "false"
.
*
*
*
* Indicates whether it is possible to further redefine a RedefinableElement. If the value is true, then it is not possible to further redefine the RedefinableElement.
* From package UML::Classification.
*
* @return the value of the 'Is Leaf' attribute.
* @see #setIsLeaf(boolean)
* @see org.eclipse.uml2.uml.UMLPackage#getRedefinableElement_IsLeaf()
* @model default="false" dataType="org.eclipse.uml2.types.Boolean" required="true" ordered="false"
* @generated
*/
boolean isLeaf();
/**
* Sets the value of the '{@link org.eclipse.uml2.uml.RedefinableElement#isLeaf Is Leaf}' attribute.
*
*
* @param value the new value of the 'Is Leaf' attribute.
* @see #isLeaf()
* @generated
*/
void setIsLeaf(boolean value);
/**
* Returns the value of the 'Redefined Element' reference list.
* The list contents are of type {@link org.eclipse.uml2.uml.RedefinableElement}.
* This feature is a derived union.
*
*
*
* The RedefinableElement that is being redefined by this element.
* From package UML::Classification.
*
* @return the value of the 'Redefined Element' reference list.
* @see org.eclipse.uml2.uml.UMLPackage#getRedefinableElement_RedefinedElement()
* @model transient="true" changeable="false" volatile="true" derived="true" ordered="false"
* @generated
*/
EList getRedefinedElements();
/**
* Retrieves the first {@link org.eclipse.uml2.uml.RedefinableElement} with the specified 'Name' from the 'Redefined Element' reference list.
*
*
* @param name The 'Name' of the {@link org.eclipse.uml2.uml.RedefinableElement} to retrieve, or null
.
* @return The first {@link org.eclipse.uml2.uml.RedefinableElement} with the specified 'Name', or null
.
* @see #getRedefinedElements()
* @generated
*/
RedefinableElement getRedefinedElement(String name);
/**
* Retrieves the first {@link org.eclipse.uml2.uml.RedefinableElement} with the specified 'Name' from the 'Redefined Element' reference list.
*
*
* @param name The 'Name' of the {@link org.eclipse.uml2.uml.RedefinableElement} to retrieve, or null
.
* @param ignoreCase Whether to ignore case in {@link java.lang.String} comparisons.
* @param eClass The Ecore class of the {@link org.eclipse.uml2.uml.RedefinableElement} to retrieve, or null
.
* @return The first {@link org.eclipse.uml2.uml.RedefinableElement} with the specified 'Name', or null
.
* @see #getRedefinedElements()
* @generated
*/
RedefinableElement getRedefinedElement(String name, boolean ignoreCase,
EClass eClass);
/**
* Returns the value of the 'Redefinition Context' reference list.
* The list contents are of type {@link org.eclipse.uml2.uml.Classifier}.
* This feature is a derived union.
*
*
*
* The contexts that this element may be redefined from.
* From package UML::Classification.
*
* @return the value of the 'Redefinition Context' reference list.
* @see org.eclipse.uml2.uml.UMLPackage#getRedefinableElement_RedefinitionContext()
* @model transient="true" changeable="false" volatile="true" derived="true" ordered="false"
* @generated
*/
EList getRedefinitionContexts();
/**
* Retrieves the first {@link org.eclipse.uml2.uml.Classifier} with the specified 'Name' from the 'Redefinition Context' reference list.
*
*
* @param name The 'Name' of the {@link org.eclipse.uml2.uml.Classifier} to retrieve, or null
.
* @return The first {@link org.eclipse.uml2.uml.Classifier} with the specified 'Name', or null
.
* @see #getRedefinitionContexts()
* @generated
*/
Classifier getRedefinitionContext(String name);
/**
* Retrieves the first {@link org.eclipse.uml2.uml.Classifier} with the specified 'Name' from the 'Redefinition Context' reference list.
*
*
* @param name The 'Name' of the {@link org.eclipse.uml2.uml.Classifier} to retrieve, or null
.
* @param ignoreCase Whether to ignore case in {@link java.lang.String} comparisons.
* @param eClass The Ecore class of the {@link org.eclipse.uml2.uml.Classifier} to retrieve, or null
.
* @return The first {@link org.eclipse.uml2.uml.Classifier} with the specified 'Name', or null
.
* @see #getRedefinitionContexts()
* @generated
*/
Classifier getRedefinitionContext(String name, boolean ignoreCase,
EClass eClass);
/**
*
*
*
* At least one of the redefinition contexts of the redefining element must be a specialization of at least one of the redefinition contexts for each redefined element.
* redefinedElement->forAll(re | self.isRedefinitionContextValid(re))
* @param diagnostics The chain of diagnostics to which problems are to be appended.
* @param context The cache of context-specific information.
*
* @model
* @generated
*/
boolean validateRedefinitionContextValid(DiagnosticChain diagnostics,
Map