|
||||||||||||
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 a named element that can be redefined in the context of a generalization. RedefinableElement is an abstract metaclass.
The following features are supported:
UML2Package.getRedefinableElement()
Field Summary | |
---|---|
static java.lang.String |
copyright
|
Fields inherited from interface org.eclipse.uml2.NamedElement |
---|
SEPARATOR |
Method Summary | |
---|---|
RedefinableElement |
getRedefinedElement(java.lang.String name)
Retrieves the RedefinableElement with the specified 'Name' from the 'Redefined Element' reference list |
EList |
getRedefinedElements()
Returns the value of the 'Redefined Element' reference list. |
Classifier |
getRedefinitionContext(java.lang.String name)
Retrieves the 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)
A query based on the following OCL expression:
false
|
boolean |
isLeaf()
Returns the value of the 'Is Leaf' attribute. |
boolean |
isRedefinitionContextValid(RedefinableElement redefinable)
A query based on the following OCL expression:
self.redefinitionContext->exists(c | redefinable.redefinitionContext->exists(r | c.allParents()->includes(r)))
|
void |
setIsLeaf(boolean value)
Sets the value of the ' Is Leaf ' attribute |
boolean |
validateRedefinitionConsistent(DiagnosticChain diagnostics,
java.util.Map context)
An invariant constraint based on the following OCL expression:
self.redefinedElement->forAll(re | re.isConsistentWith(self))
|
boolean |
validateRedefinitionContextValid(DiagnosticChain diagnostics,
java.util.Map context)
An invariant constraint based on the following OCL expression:
self.redefinedElement->forAll(e | self.isRedefinitionContextValid(e))
|
Methods inherited from interface org.eclipse.uml2.NamedElement |
---|
allNamespaces, createDependency, createNameExpression, createNameExpression, getClientDependencies, getClientDependency, getLabel, getLabel, getName, getNameExpression, getNamespace, getQualifiedName, getVisibility, isDistinguishableFrom, qualifiedName, separator, setName, setNameExpression, setVisibility, validateNoName, validateQualifiedName, validateVisibilityNeedsOwnership |
Methods inherited from interface org.eclipse.uml2.TemplateableElement |
---|
createOwnedTemplateSignature, createOwnedTemplateSignature, createTemplateBinding, createTemplateBinding, getOwnedTemplateSignature, getTemplateBindings, parameterableElements, setOwnedTemplateSignature |
Methods inherited from interface org.eclipse.uml2.Element |
---|
addKeyword, allOwnedElements, apply, createEAnnotation, createOwnedComment, createOwnedComment, destroy, getApplicableStereotype, getApplicableStereotypes, getAppliedStereotype, getAppliedStereotypes, getAppliedVersion, getKeywords, getModel, getNearestPackage, getOwnedComments, getOwnedElements, getOwner, getValue, hasKeyword, hasValue, isApplied, isRequired, mustBeOwned, removeKeyword, setValue, unapply, validateHasOwner, validateNotOwnSelf |
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 |
Field Detail |
public static final java.lang.String copyright
Method Detail |
public boolean isLeaf()
"false"
.
If the meaning of the 'Is Leaf' attribute isn't clear, there really should be more of a description here...
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. Default value is false.
setIsLeaf(boolean)
,
UML2Package.getRedefinableElement_IsLeaf()
public void setIsLeaf(boolean value)
Is Leaf
' attribute.
value
- the new value of the 'Is Leaf' attribute.isLeaf()
public EList getRedefinitionContexts()
Classifier
.
If the meaning of the 'Redefinition Context' reference list isn't clear, there really should be more of a description here...
the contexts that this element may be redefined from. This is a derived union.
UML2Package.getRedefinableElement_RedefinitionContext()
public 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.
Classifier
with the specified 'Name', or null
.getRedefinitionContexts()
public boolean isConsistentWith(RedefinableElement redefinee)
false
public boolean isRedefinitionContextValid(RedefinableElement redefinable)
self.redefinitionContext->exists(c | redefinable.redefinitionContext->exists(r | c.allParents()->includes(r)))
public EList getRedefinedElements()
RedefinableElement
.
redefinable element that is being redefined by this element. This is a derived union.
org.eclipse.uml2.UML2Package#getRedefinableElement_RedefinedElement()
public 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.
RedefinableElement
with the specified 'Name', or null
.getRedefinedElements()
public boolean validateRedefinitionContextValid(DiagnosticChain diagnostics, java.util.Map context)
self.redefinedElement->forAll(e | self.isRedefinitionContextValid(e))
public boolean validateRedefinitionConsistent(DiagnosticChain diagnostics, java.util.Map context)
self.redefinedElement->forAll(re | re.isConsistentWith(self))
|
Copyright 2003, 2005 IBM Corporation and others. All Rights Reserved. |
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |