|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A representation of the model object 'Redefinable Element'. A redefinable element 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.
The following features are supported:
UMLPackage.getRedefinableElement()
Field Summary |
Fields inherited from interface org.eclipse.uml2.uml.NamedElement |
SEPARATOR |
Method Summary | |
RedefinableElement |
getRedefinedElement(String name)
Retrieves the first RedefinableElement with the specified 'Name' from the 'Redefined Element' reference list |
RedefinableElement |
getRedefinedElement(String name,
boolean ignoreCase,
EClass eClass)
Retrieves the first RedefinableElement with the specified 'Name' from the 'Redefined Element' reference list |
EList |
getRedefinedElements()
Returns the value of the 'Redefined Element' reference list. |
Classifier |
getRedefinitionContext(String name)
Retrieves the first Classifier with the specified 'Name' from the 'Redefinition Context' reference list |
Classifier |
getRedefinitionContext(String name,
boolean ignoreCase,
EClass eClass)
Retrieves the first Classifier with the specified 'Name' from the 'Redefinition Context' reference list |
EList |
getRedefinitionContexts()
Returns the value of the 'Redefinition Context' reference list. |
boolean |
isConsistentWith(RedefinableElement redefinee)
The query isConsistentWith() specifies, for any two RedefinableElements in a context in which redefinition is possible, whether redefinition would be logically consistent. |
boolean |
isLeaf()
Returns the value of the 'Is Leaf' attribute. |
boolean |
isRedefinitionContextValid(RedefinableElement redefined)
The query isRedefinitionContextValid() specifies whether the redefinition contexts of this RedefinableElement are properly related to the redefinition contexts of the specified RedefinableElement to allow this element to redefine the other. |
void |
setIsLeaf(boolean value)
Sets the value of the ' Is Leaf ' attribute |
boolean |
validateRedefinitionConsistent(DiagnosticChain diagnostics,
Map context)
A redefining element must be consistent with each redefined element. |
boolean |
validateRedefinitionContextValid(DiagnosticChain diagnostics,
Map context)
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. |
Methods inherited from interface org.eclipse.uml2.uml.NamedElement |
allNamespaces, allOwningPackages, createDependency, createNameExpression, getClientDependencies, getClientDependency, getClientDependency, getLabel, getLabel, getName, getNameExpression, getNamespace, getQualifiedName, getVisibility, isDistinguishableFrom, isSetName, isSetVisibility, separator, setName, setNameExpression, setVisibility, unsetName, unsetVisibility, validateHasNoQualifiedName, validateHasQualifiedName, validateVisibilityNeedsOwnership |
Methods inherited from interface org.eclipse.emf.ecore.EModelElement |
getEAnnotation, getEAnnotations |
Methods inherited from interface org.eclipse.emf.ecore.EObject |
eAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eIsProxy, eIsSet, eResource, eSet, eUnset |
Methods inherited from interface org.eclipse.emf.common.notify.Notifier |
eAdapters, eDeliver, eNotify, eSetDeliver |
Method Detail |
public boolean isLeaf()
"false"
.
Indicates whether it is possible to further specialize a RedefinableElement. If the value is true, then it is not possible to further specialize the RedefinableElement.
RedefinableElement.setIsLeaf(boolean)
,
UMLPackage.getRedefinableElement_IsLeaf()
public void setIsLeaf(boolean value)
Is Leaf
' attribute.
value
- the new value of the 'Is Leaf' attribute.RedefinableElement.isLeaf()
public EList getRedefinedElements()
RedefinableElement
.
The redefinable element that is being redefined by this element.
UMLPackage.getRedefinableElement_RedefinedElement()
public RedefinableElement getRedefinedElement(String name)
RedefinableElement
with the specified 'Name' from the 'Redefined Element' reference list.
name
- The 'Name' of the RedefinableElement
to retrieve, or null
.
RedefinableElement
with the specified 'Name', or null
.RedefinableElement.getRedefinedElements()
public RedefinableElement getRedefinedElement(String name, boolean ignoreCase, EClass eClass)
RedefinableElement
with the specified 'Name' from the 'Redefined Element' reference list.
name
- The 'Name' of the RedefinableElement
to retrieve, or null
.ignoreCase
- Whether to ignore case in String
comparisons.eClass
- The Ecore class of the RedefinableElement
to retrieve, or null
.
RedefinableElement
with the specified 'Name', or null
.RedefinableElement.getRedefinedElements()
public EList getRedefinitionContexts()
Classifier
.
References the contexts that this element may be redefined from.
UMLPackage.getRedefinableElement_RedefinitionContext()
public Classifier getRedefinitionContext(String name)
Classifier
with the specified 'Name' from the 'Redefinition Context' reference list.
name
- The 'Name' of the Classifier
to retrieve, or null
.
Classifier
with the specified 'Name', or null
.RedefinableElement.getRedefinitionContexts()
public Classifier getRedefinitionContext(String name, boolean ignoreCase, EClass eClass)
Classifier
with the specified 'Name' from the 'Redefinition Context' reference list.
name
- The 'Name' of the Classifier
to retrieve, or null
.ignoreCase
- Whether to ignore case in String
comparisons.eClass
- The Ecore class of the Classifier
to retrieve, or null
.
Classifier
with the specified 'Name', or null
.RedefinableElement.getRedefinitionContexts()
public boolean validateRedefinitionContextValid(DiagnosticChain diagnostics, Map context)
public boolean validateRedefinitionConsistent(DiagnosticChain diagnostics, Map context)
public boolean isRedefinitionContextValid(RedefinableElement redefined)
public boolean isConsistentWith(RedefinableElement redefinee)
|
Copyright 2003, 2006 IBM Corporation and others. All Rights Reserved. |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |