|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A representation of the model object 'Element'. An element is a constituent of a model. As such, it has the capability of owning other elements.
The following features are supported:
UMLPackage.getElement()
Method Summary | |
boolean |
addKeyword(String keyword)
Adds the specified keyword to this element |
EList |
allOwnedElements()
The query allOwnedElements() gives all of the direct and indirect owned elements of an element. |
EObject |
applyStereotype(Stereotype stereotype)
Applies the specified stereotype to this element |
EAnnotation |
createEAnnotation(String source)
Creates an annotation with the specified source and this element as its model element |
Comment |
createOwnedComment()
Creates a new Comment and appends it to the 'Owned Comment' containment reference list |
void |
destroy()
Destroys this element by removing all cross references to/from it and removing it from its containing resource or object |
Stereotype |
getApplicableStereotype(String qualifiedName)
Retrieves the stereotype with the specified qualified name that is applicable to this element, or null if no such stereotype is applicable |
EList |
getApplicableStereotypes()
Retrieves the stereotypes that are applicable to this element, including those that are required and/or may already be applied |
Stereotype |
getAppliedStereotype(String qualifiedName)
Retrieves the stereotype with the specified qualified name that is applied to this element, or null if no such stereotype is applied |
EList |
getAppliedStereotypes()
Retrieves the stereotypes that are applied to this element |
Stereotype |
getAppliedSubstereotype(Stereotype stereotype,
String qualifiedName)
Retrieves the substereotype of the specified stereotype with the specified qualified name that is applied to this element, or null if no such stereotype is applied |
EList |
getAppliedSubstereotypes(Stereotype stereotype)
Retrieves the substereotypes of the specified stereotype that are applied to this element |
EList |
getKeywords()
Retrieves the keywords for this element |
Model |
getModel()
Retrieves the model that owns (either directly or indirectly) this element |
Package |
getNearestPackage()
Retrieves the nearest package that owns (either directly or indirectly) this element, or the element itself (if it is a package) |
EList |
getOwnedComments()
Returns the value of the 'Owned Comment' containment reference list. |
EList |
getOwnedElements()
Returns the value of the 'Owned Element' reference list. |
Element |
getOwner()
Returns the value of the 'Owner' reference. |
EList |
getRelationships()
Retrieves the relationships in which this element is involved |
EList |
getRelationships(EClass eClass)
Retrieves the relationships of the specified type in which this element is involved |
Stereotype |
getRequiredStereotype(String qualifiedName)
Retrieves the stereotype with the specified qualified name that is required for this element, or null if no such stereotype is required |
EList |
getRequiredStereotypes()
Retrieves the stereotypes that are required for this element |
EList |
getSourceDirectedRelationships()
Retrieves the directed relationships for which this element is a source |
EList |
getSourceDirectedRelationships(EClass eClass)
Retrieves the directed relationships of the specified type for which this element is a source |
EObject |
getStereotypeApplication(Stereotype stereotype)
Retrieves the application of the specified stereotype for this element, or null if no such stereotype application exists |
EList |
getStereotypeApplications()
Retrieves the stereotype applications for this element |
EList |
getTargetDirectedRelationships()
Retrieves the directed relationships for which this element is a target |
EList |
getTargetDirectedRelationships(EClass eClass)
Retrieves the directed relationships of the specified type for which this element is a target |
Object |
getValue(Stereotype stereotype,
String propertyName)
Retrieves the value of the property with the specified name in the specified stereotype for this element |
boolean |
hasKeyword(String keyword)
Determines whether this element has the specified keyword |
boolean |
hasValue(Stereotype stereotype,
String propertyName)
Determines whether this element has a (non-default) value for the property with the specified name in the specified stereotype |
boolean |
isStereotypeApplicable(Stereotype stereotype)
Determines whether the specified stereotype is applicable to this element |
boolean |
isStereotypeApplied(Stereotype stereotype)
Determines whether the specified stereotype is applied to this element |
boolean |
isStereotypeRequired(Stereotype stereotype)
Determines whether the specified stereotype is required for this element |
boolean |
mustBeOwned()
The query mustBeOwned() indicates whether elements of this type must have an owner. |
boolean |
removeKeyword(String keyword)
Removes the specified keyword from this element |
void |
setValue(Stereotype stereotype,
String propertyName,
Object newValue)
Sets the value of the property with the specified name in the specified stereotype for this element |
EObject |
unapplyStereotype(Stereotype stereotype)
Unapplies the specified stereotype from this element |
boolean |
validateHasOwner(DiagnosticChain diagnostics,
Map context)
Elements that must be owned must have an owner. |
boolean |
validateNotOwnSelf(DiagnosticChain diagnostics,
Map context)
An element may not directly or indirectly own itself. |
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 EList getOwnedElements()
Element
.
It is bidirectional and its opposite is 'Owner
'.
The Elements owned by this element.
UMLPackage.getElement_OwnedElement()
,
Element.getOwner()
public Element getOwner()
Owned Element
'.
The Element that owns this element.
UMLPackage.getElement_Owner()
,
Element.getOwnedElements()
public EList getOwnedComments()
Comment
.
The Comments owned by this element.
UMLPackage.getElement_OwnedComment()
public Comment createOwnedComment()
Comment
and appends it to the 'Owned Comment' containment reference list.
Comment
.Element.getOwnedComments()
public boolean validateNotOwnSelf(DiagnosticChain diagnostics, Map context)
public boolean validateHasOwner(DiagnosticChain diagnostics, Map context)
public EList getStereotypeApplications()
public EObject getStereotypeApplication(Stereotype stereotype)
public EList getRequiredStereotypes()
public Stereotype getRequiredStereotype(String qualifiedName)
public EList getAppliedStereotypes()
public Stereotype getAppliedStereotype(String qualifiedName)
public EList getAppliedSubstereotypes(Stereotype stereotype)
public Stereotype getAppliedSubstereotype(Stereotype stereotype, String qualifiedName)
public boolean hasValue(Stereotype stereotype, String propertyName)
public Object getValue(Stereotype stereotype, String propertyName)
public void setValue(Stereotype stereotype, String propertyName, Object newValue)
public EAnnotation createEAnnotation(String source)
public EList getRelationships()
public EList getRelationships(EClass eClass)
public EList getSourceDirectedRelationships()
public EList getSourceDirectedRelationships(EClass eClass)
public EList getTargetDirectedRelationships()
public EList getTargetDirectedRelationships(EClass eClass)
public EList getKeywords()
public boolean addKeyword(String keyword)
public boolean removeKeyword(String keyword)
public Package getNearestPackage()
public Model getModel()
public boolean isStereotypeApplicable(Stereotype stereotype)
public boolean isStereotypeRequired(Stereotype stereotype)
public boolean isStereotypeApplied(Stereotype stereotype)
public EObject applyStereotype(Stereotype stereotype)
public EObject unapplyStereotype(Stereotype stereotype)
public EList getApplicableStereotypes()
public Stereotype getApplicableStereotype(String qualifiedName)
public boolean hasKeyword(String keyword)
public void destroy()
public EList allOwnedElements()
public boolean mustBeOwned()
|
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 |