|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Element
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(java.lang.String keyword)
Adds the specified keyword to this element. |
org.eclipse.emf.common.util.EList<Element> |
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(java.lang.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(java.lang.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<Stereotype> |
getApplicableStereotypes()
Retrieves the stereotypes that are applicable to this element, including those that are required and/or may already be applied |
Stereotype |
getAppliedStereotype(java.lang.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<Stereotype> |
getAppliedStereotypes()
Retrieves the stereotypes that are applied to this element |
Stereotype |
getAppliedSubstereotype(Stereotype stereotype,
java.lang.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<Stereotype> |
getAppliedSubstereotypes(Stereotype stereotype)
Retrieves the substereotypes of the specified stereotype that are applied to this element. |
org.eclipse.emf.common.util.EList<java.lang.String> |
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<Comment> |
getOwnedComments()
Returns the value of the 'Owned Comment' containment reference list. |
org.eclipse.emf.common.util.EList<Element> |
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<Relationship> |
getRelationships()
Retrieves the relationships in which this element is involved |
org.eclipse.emf.common.util.EList<Relationship> |
getRelationships(org.eclipse.emf.ecore.EClass eClass)
Retrieves the relationships of the specified type in which this element is involved. |
Stereotype |
getRequiredStereotype(java.lang.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<Stereotype> |
getRequiredStereotypes()
Retrieves the stereotypes that are required for this element |
org.eclipse.emf.common.util.EList<DirectedRelationship> |
getSourceDirectedRelationships()
Retrieves the directed relationships for which this element is a source |
org.eclipse.emf.common.util.EList<DirectedRelationship> |
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<org.eclipse.emf.ecore.EObject> |
getStereotypeApplications()
Retrieves the stereotype applications for this element |
org.eclipse.emf.common.util.EList<DirectedRelationship> |
getTargetDirectedRelationships()
Retrieves the directed relationships for which this element is a target |
org.eclipse.emf.common.util.EList<DirectedRelationship> |
getTargetDirectedRelationships(org.eclipse.emf.ecore.EClass eClass)
Retrieves the directed relationships of the specified type for which this element is a target. |
java.lang.Object |
getValue(Stereotype stereotype,
java.lang.String propertyName)
Retrieves the value of the property with the specified name in the specified stereotype for this element. |
boolean |
hasKeyword(java.lang.String keyword)
Determines whether this element has the specified keyword. |
boolean |
hasValue(Stereotype stereotype,
java.lang.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(java.lang.String keyword)
Removes the specified keyword from this element. |
void |
setValue(Stereotype stereotype,
java.lang.String propertyName,
java.lang.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,
java.util.Map<java.lang.Object,java.lang.Object> context)
Elements that must be owned must have an owner. |
boolean |
validateNotOwnSelf(org.eclipse.emf.common.util.DiagnosticChain diagnostics,
java.util.Map<java.lang.Object,java.lang.Object> 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, eInvoke, eIsProxy, eIsSet, eResource, eSet, eUnset |
Methods inherited from interface org.eclipse.emf.common.notify.Notifier |
---|
eAdapters, eDeliver, eNotify, eSetDeliver |
Method Detail |
---|
org.eclipse.emf.common.util.EList<Element> getOwnedElements()
Element
.
It is bidirectional and its opposite is 'Owner
'.
This feature is a derived union.
The Elements owned by this element.
UMLPackage.getElement_OwnedElement()
,
getOwner()
Element getOwner()
Owned Element
'.
This feature is a derived union.
The Element that owns this element.
UMLPackage.getElement_Owner()
,
getOwnedElements()
org.eclipse.emf.common.util.EList<Comment> getOwnedComments()
Comment
.
This feature subsets the following features:
The Comments owned by this element.
UMLPackage.getElement_OwnedComment()
Comment createOwnedComment()
Comment
and appends it to the 'Owned Comment' containment reference list.
Comment
.getOwnedComments()
boolean validateNotOwnSelf(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 validateHasOwner(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.
org.eclipse.emf.common.util.EList<org.eclipse.emf.ecore.EObject> getStereotypeApplications()
org.eclipse.emf.ecore.EObject getStereotypeApplication(Stereotype stereotype)
stereotype
- The stereotype for which to retrieve an application.
org.eclipse.emf.common.util.EList<Stereotype> getRequiredStereotypes()
Stereotype getRequiredStereotype(java.lang.String qualifiedName)
qualifiedName
- The qualified name of the required stereotype to retrieve.
org.eclipse.emf.common.util.EList<Stereotype> getAppliedStereotypes()
Stereotype getAppliedStereotype(java.lang.String qualifiedName)
qualifiedName
- The qualified name of the applied stereotype to retrieve.
org.eclipse.emf.common.util.EList<Stereotype> getAppliedSubstereotypes(Stereotype stereotype)
stereotype
- The superstereotype of the applied substereotypes to retrieve.
Stereotype getAppliedSubstereotype(Stereotype stereotype, java.lang.String qualifiedName)
stereotype
- The superstereotype of the applied substereotype to retrieve.qualifiedName
- The qualified name of the applied substereotype to retrieve.
boolean hasValue(Stereotype stereotype, java.lang.String propertyName)
stereotype
- The stereotype for which to test the property.propertyName
- The name of the property in question.
java.lang.Object getValue(Stereotype stereotype, java.lang.String propertyName)
stereotype
- The stereotype for which to retrieve the value.propertyName
- The name of the property whose value to retrieve.
void setValue(Stereotype stereotype, java.lang.String propertyName, java.lang.Object newValue)
stereotype
- The stereotype for which to set the value.propertyName
- The name of the property whose value to set.newValue
- The new value for the property.
org.eclipse.emf.ecore.EAnnotation createEAnnotation(java.lang.String source)
source
- The source for the new annotation.
org.eclipse.emf.common.util.EList<Relationship> getRelationships()
org.eclipse.emf.common.util.EList<Relationship> getRelationships(org.eclipse.emf.ecore.EClass eClass)
eClass
- The (meta)type of the relationships to retrieve.
org.eclipse.emf.common.util.EList<DirectedRelationship> getSourceDirectedRelationships()
org.eclipse.emf.common.util.EList<DirectedRelationship> getSourceDirectedRelationships(org.eclipse.emf.ecore.EClass eClass)
eClass
- The (meta)type of the directed relationships to retrieve.
org.eclipse.emf.common.util.EList<DirectedRelationship> getTargetDirectedRelationships()
org.eclipse.emf.common.util.EList<DirectedRelationship> getTargetDirectedRelationships(org.eclipse.emf.ecore.EClass eClass)
eClass
- The (meta)type of the directed relationships to retrieve.
org.eclipse.emf.common.util.EList<java.lang.String> getKeywords()
boolean addKeyword(java.lang.String keyword)
keyword
- The keyword to add.
boolean removeKeyword(java.lang.String keyword)
keyword
- The keyword to remove.
Package getNearestPackage()
Model getModel()
boolean isStereotypeApplicable(Stereotype stereotype)
stereotype
- The stereotype in question.
boolean isStereotypeRequired(Stereotype stereotype)
stereotype
- The stereotype in question.
boolean isStereotypeApplied(Stereotype stereotype)
stereotype
- The stereotype in question.
org.eclipse.emf.ecore.EObject applyStereotype(Stereotype stereotype)
stereotype
- The stereotype to apply.
org.eclipse.emf.ecore.EObject unapplyStereotype(Stereotype stereotype)
stereotype
- The stereotype to unapply.
org.eclipse.emf.common.util.EList<Stereotype> getApplicableStereotypes()
Stereotype getApplicableStereotype(java.lang.String qualifiedName)
qualifiedName
- The qualified name of the applicable stereotype to retrieve.
boolean hasKeyword(java.lang.String keyword)
keyword
- The keyword in question.
void destroy()
org.eclipse.emf.common.util.EList<Element> allOwnedElements()
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 |