public interface RedefinableElement extends NamedElement
The following features are supported:
UMLPackage.getRedefinableElement()
SEPARATOR
Modifier and Type | Method and Description |
---|---|
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 |
MDWEList<RedefinableElement> |
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 |
MDWEList<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(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.
|
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
addKeyword, allOwnedElements, applyStereotype, createEAnnotation, createOwnedComment, destroy, getApplicableStereotype, getApplicableStereotypes, getAppliedStereotype, getAppliedStereotypes, getAppliedSubstereotype, getAppliedSubstereotypes, getKeywords, getModel, getNearestPackage, getOwnedComments, getOwnedElements, getOwner, getRelationships, getRelationships, getRequiredStereotype, getRequiredStereotypes, getSourceDirectedRelationships, getSourceDirectedRelationships, getStereotypeApplication, getStereotypeApplications, getTargetDirectedRelationships, getTargetDirectedRelationships, getValue, hasKeyword, hasValue, isStereotypeApplicable, isStereotypeApplied, isStereotypeRequired, mustBeOwned, removeKeyword, setValue, unapplyStereotype, validateHasOwner, validateNotOwnSelf
compareTo, eExtendedClass, eIsInstanceOf, eIsInstanceOf, eIsProfiled, eIsRemoved, eMetamodel, eMetaTypeName, eModel, eRemove, eSetUniqueID, eUniqueID, superScript, superScript, toBoolean, toBoolean, toByte, toByte, toChar, toChar, toDouble, toDouble, toFloat, toFloat, toInt, toInt, toList, toList, toList, toList, toList, toLong, toLong, toObject, toObject, toSet, toSet, toShort, toShort, toString, toString
getEAnnotation, getEAnnotations
eAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eInvoke, eIsProxy, eIsSet, eResource, eSet, eUnset
eAdapters, eDeliver, eNotify, eSetDeliver
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()
MDWEList<RedefinableElement> getRedefinedElements()
RedefinableElement
.
The redefinable element that is being redefined by this element.
UMLPackage.getRedefinableElement_RedefinedElement()
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
.getRedefinedElements()
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
.getRedefinedElements()
MDWEList<Classifier> getRedefinitionContexts()
Classifier
.
References the contexts that this element may be redefined from.
UMLPackage.getRedefinableElement_RedefinitionContext()
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
.getRedefinitionContexts()
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
.getRedefinitionContexts()
boolean validateRedefinitionContextValid(DiagnosticChain diagnostics, Map context)
boolean validateRedefinitionConsistent(DiagnosticChain diagnostics, Map context)
boolean isRedefinitionContextValid(RedefinableElement redefined)
boolean isConsistentWith(RedefinableElement redefinee)