|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface RedefinableElement
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(java.lang.String name)
Retrieves the first RedefinableElement with the specified 'Name' from the 'Redefined Element' reference list |
RedefinableElement |
getRedefinedElement(java.lang.String name,
boolean ignoreCase,
org.eclipse.emf.ecore.EClass eClass)
Retrieves the first RedefinableElement with the specified 'Name' from the 'Redefined Element' reference list |
org.eclipse.emf.common.util.EList<RedefinableElement> |
getRedefinedElements()
Returns the value of the 'Redefined Element' reference list. |
Classifier |
getRedefinitionContext(java.lang.String name)
Retrieves the first Classifier with the specified 'Name' from the 'Redefinition Context' reference list |
Classifier |
getRedefinitionContext(java.lang.String name,
boolean ignoreCase,
org.eclipse.emf.ecore.EClass eClass)
Retrieves the first Classifier with the specified 'Name' from the 'Redefinition Context' reference list |
org.eclipse.emf.common.util.EList<Classifier> |
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(org.eclipse.emf.common.util.DiagnosticChain diagnostics,
java.util.Map<java.lang.Object,java.lang.Object> context)
A redefining element must be consistent with each redefined element. |
boolean |
validateRedefinitionContextValid(org.eclipse.emf.common.util.DiagnosticChain diagnostics,
java.util.Map<java.lang.Object,java.lang.Object> 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, createUsage, 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, eInvoke, eIsProxy, eIsSet, eResource, eSet, eUnset |
Methods inherited from interface org.eclipse.emf.common.notify.Notifier |
---|
eAdapters, eDeliver, eNotify, eSetDeliver |
Method Detail |
---|
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.
setIsLeaf(boolean)
,
UMLPackage.getRedefinableElement_IsLeaf()
void setIsLeaf(boolean value)
Is Leaf
' attribute.
value
- the new value of the 'Is Leaf' attribute.isLeaf()
org.eclipse.emf.common.util.EList<RedefinableElement> getRedefinedElements()
RedefinableElement
.
This feature is a derived union.
The redefinable element that is being redefined by this element.
UMLPackage.getRedefinableElement_RedefinedElement()
RedefinableElement getRedefinedElement(java.lang.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
.getRedefinedElements()
RedefinableElement getRedefinedElement(java.lang.String name, boolean ignoreCase, org.eclipse.emf.ecore.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
.getRedefinedElements()
org.eclipse.emf.common.util.EList<Classifier> getRedefinitionContexts()
Classifier
.
This feature is a derived union.
References the contexts that this element may be redefined from.
UMLPackage.getRedefinableElement_RedefinitionContext()
Classifier getRedefinitionContext(java.lang.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
.getRedefinitionContexts()
Classifier getRedefinitionContext(java.lang.String name, boolean ignoreCase, org.eclipse.emf.ecore.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
.getRedefinitionContexts()
boolean validateRedefinitionContextValid(org.eclipse.emf.common.util.DiagnosticChain diagnostics, java.util.Map<java.lang.Object,java.lang.Object> context)
diagnostics
- The chain of diagnostics to which problems are to be appended.context
- The cache of context-specific information.
boolean validateRedefinitionConsistent(org.eclipse.emf.common.util.DiagnosticChain diagnostics, java.util.Map<java.lang.Object,java.lang.Object> context)
diagnostics
- The chain of diagnostics to which problems are to be appended.context
- The cache of context-specific information.
boolean isRedefinitionContextValid(RedefinableElement redefined)
boolean isConsistentWith(RedefinableElement redefinee)
|
Copyright 2003, 2007 IBM Corporation and others. All Rights Reserved. |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |