|
|||||||||||
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 |
org.eclipse.emf.common.util.EList |
allOwnedElements()
The query allOwnedElements() gives all of the direct and indirect owned elements of an element. |
org.eclipse.emf.ecore.EObject |
applyStereotype(Stereotype stereotype)
Applies the specified stereotype to this element |
org.eclipse.emf.ecore.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 |
org.eclipse.emf.common.util.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 |
org.eclipse.emf.common.util.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 |
org.eclipse.emf.common.util.EList |
getAppliedSubstereotypes(Stereotype stereotype)
Retrieves the substereotypes of the specified stereotype that are applied to this element |
org.eclipse.emf.common.util.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) |
org.eclipse.emf.common.util.EList |
getOwnedComments()
Returns the value of the 'Owned Comment' containment reference list. |
org.eclipse.emf.common.util.EList |
getOwnedElements()
Returns the value of the 'Owned Element' reference list. |
Element |
getOwner()
Returns the value of the 'Owner' reference. |
org.eclipse.emf.common.util.EList |
getRelationships()
Retrieves the relationships in which this element is involved |
org.eclipse.emf.common.util.EList |
getRelationships(org.eclipse.emf.ecore.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 |
org.eclipse.emf.common.util.EList |
getRequiredStereotypes()
Retrieves the stereotypes that are required for this element |
org.eclipse.emf.common.util.EList |
getSourceDirectedRelationships()
Retrieves the directed relationships for which this element is a source |
org.eclipse.emf.common.util.EList |
getSourceDirectedRelationships(org.eclipse.emf.ecore.EClass eClass)
Retrieves the directed relationships of the specified type for which this element is a source |
org.eclipse.emf.ecore.EObject |
getStereotypeApplication(Stereotype stereotype)
Retrieves the application of the specified stereotype for this element, or null if no such stereotype application exists |
org.eclipse.emf.common.util.EList |
getStereotypeApplications()
Retrieves the stereotype applications for this element |
org.eclipse.emf.common.util.EList |
getTargetDirectedRelationships()
Retrieves the directed relationships for which this element is a target |
org.eclipse.emf.common.util.EList |
getTargetDirectedRelationships(org.eclipse.emf.ecore.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 |
org.eclipse.emf.ecore.EObject |
unapplyStereotype(Stereotype stereotype)
Unapplies the specified stereotype from this element |
boolean |
validateHasOwner(org.eclipse.emf.common.util.DiagnosticChain diagnostics,
Map context)
Elements that must be owned must have an owner. |
boolean |
validateNotOwnSelf(org.eclipse.emf.common.util.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 org.eclipse.emf.common.util.EList getOwnedElements()
Element
.
It is bidirectional and its opposite is 'Owner
'.
The Elements owned by this element.
UMLPackage.getElement_OwnedElement()
,
getOwner()
public Element getOwner()
Owned Element
'.
The Element that owns this element.
UMLPackage.getElement_Owner()
,
getOwnedElements()
public org.eclipse.emf.common.util.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
.getOwnedComments()
public boolean validateNotOwnSelf(org.eclipse.emf.common.util.DiagnosticChain diagnostics, Map context)
public boolean validateHasOwner(org.eclipse.emf.common.util.DiagnosticChain diagnostics, Map context)
public org.eclipse.emf.common.util.EList getStereotypeApplications()
public org.eclipse.emf.ecore.EObject getStereotypeApplication(Stereotype stereotype)
public org.eclipse.emf.common.util.EList getRequiredStereotypes()
public Stereotype getRequiredStereotype(String qualifiedName)
public org.eclipse.emf.common.util.EList getAppliedStereotypes()
public Stereotype getAppliedStereotype(String qualifiedName)
public org.eclipse.emf.common.util.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 org.eclipse.emf.ecore.EAnnotation createEAnnotation(String source)
public org.eclipse.emf.common.util.EList getRelationships()
public org.eclipse.emf.common.util.EList getRelationships(org.eclipse.emf.ecore.EClass eClass)
public org.eclipse.emf.common.util.EList getSourceDirectedRelationships()
public org.eclipse.emf.common.util.EList getSourceDirectedRelationships(org.eclipse.emf.ecore.EClass eClass)
public org.eclipse.emf.common.util.EList getTargetDirectedRelationships()
public org.eclipse.emf.common.util.EList getTargetDirectedRelationships(org.eclipse.emf.ecore.EClass eClass)
public org.eclipse.emf.common.util.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 org.eclipse.emf.ecore.EObject applyStereotype(Stereotype stereotype)
public org.eclipse.emf.ecore.EObject unapplyStereotype(Stereotype stereotype)
public org.eclipse.emf.common.util.EList getApplicableStereotypes()
public Stereotype getApplicableStereotype(String qualifiedName)
public boolean hasKeyword(String keyword)
public void destroy()
public org.eclipse.emf.common.util.EList allOwnedElements()
public boolean mustBeOwned()
|
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 |