Package com.sodius.mdw.metamodel.uml21
Interface Element
-
- All Superinterfaces:
Comparable<Object>
,org.eclipse.emf.ecore.EModelElement
,org.eclipse.emf.ecore.EObject
,MDWEObject
,MDWObject
,org.eclipse.emf.common.notify.Notifier
- All Known Subinterfaces:
Abstraction
,AcceptCallAction
,AcceptEventAction
,Action
,ActionExecutionSpecification
,ActionInputPin
,Activity
,ActivityEdge
,ActivityFinalNode
,ActivityGroup
,ActivityNode
,ActivityParameterNode
,ActivityPartition
,Actor
,AddStructuralFeatureValueAction
,AddVariableValueAction
,AnyReceiveEvent
,Artifact
,Association
,AssociationClass
,Behavior
,BehavioralFeature
,BehavioredClassifier
,BehaviorExecutionSpecification
,BroadcastSignalAction
,CallAction
,CallBehaviorAction
,CallEvent
,CallOperationAction
,CentralBufferNode
,ChangeEvent
,Class
,Classifier
,ClassifierTemplateParameter
,Clause
,ClearAssociationAction
,ClearStructuralFeatureAction
,ClearVariableAction
,Collaboration
,CollaborationUse
,CombinedFragment
,Comment
,CommunicationPath
,Component
,ComponentRealization
,ConditionalNode
,ConnectableElement
,ConnectableElementTemplateParameter
,ConnectionPointReference
,Connector
,ConnectorEnd
,ConsiderIgnoreFragment
,Constraint
,Continuation
,ControlFlow
,ControlNode
,CreateLinkAction
,CreateLinkObjectAction
,CreateObjectAction
,CreationEvent
,DataStoreNode
,DataType
,DecisionNode
,Dependency
,DeployedArtifact
,Deployment
,DeploymentSpecification
,DeploymentTarget
,DestroyLinkAction
,DestroyObjectAction
,DestructionEvent
,Device
,DirectedRelationship
,Duration
,DurationConstraint
,DurationInterval
,DurationObservation
,ElementImport
,EncapsulatedClassifier
,Enumeration
,EnumerationLiteral
,Event
,ExceptionHandler
,ExecutableNode
,ExecutionEnvironment
,ExecutionEvent
,ExecutionOccurrenceSpecification
,ExecutionSpecification
,ExpansionNode
,ExpansionRegion
,Expression
,Extend
,Extension
,ExtensionEnd
,ExtensionPoint
,Feature
,FinalNode
,FinalState
,FlowFinalNode
,ForkNode
,FunctionBehavior
,Gate
,Generalization
,GeneralizationSet
,GeneralOrdering
,Image
,Include
,InformationFlow
,InformationItem
,InitialNode
,InputPin
,InstanceSpecification
,InstanceValue
,Interaction
,InteractionConstraint
,InteractionFragment
,InteractionOperand
,InteractionUse
,Interface
,InterfaceRealization
,InterruptibleActivityRegion
,Interval
,IntervalConstraint
,InvocationAction
,JoinNode
,Lifeline
,LinkAction
,LinkEndCreationData
,LinkEndData
,LinkEndDestructionData
,LiteralBoolean
,LiteralInteger
,LiteralNull
,LiteralSpecification
,LiteralString
,LiteralUnlimitedNatural
,LoopNode
,Manifestation
,MergeNode
,Message
,MessageEnd
,MessageEvent
,MessageOccurrenceSpecification
,Model
,MultiplicityElement
,NamedElement
,Namespace
,Node
,ObjectFlow
,ObjectNode
,Observation
,OccurrenceSpecification
,OpaqueAction
,OpaqueBehavior
,OpaqueExpression
,Operation
,OperationTemplateParameter
,OutputPin
,Package
,PackageableElement
,PackageImport
,PackageMerge
,Parameter
,ParameterableElement
,ParameterSet
,PartDecomposition
,Pin
,Port
,PrimitiveType
,Profile
,ProfileApplication
,Property
,ProtocolConformance
,ProtocolStateMachine
,ProtocolTransition
,Pseudostate
,QualifierValue
,RaiseExceptionAction
,ReadExtentAction
,ReadIsClassifiedObjectAction
,ReadLinkAction
,ReadLinkObjectEndAction
,ReadLinkObjectEndQualifierAction
,ReadSelfAction
,ReadStructuralFeatureAction
,ReadVariableAction
,Realization
,ReceiveOperationEvent
,ReceiveSignalEvent
,Reception
,ReclassifyObjectAction
,RedefinableElement
,RedefinableTemplateSignature
,ReduceAction
,Region
,Relationship
,RemoveStructuralFeatureValueAction
,RemoveVariableValueAction
,ReplyAction
,SendObjectAction
,SendOperationEvent
,SendSignalAction
,SendSignalEvent
,SequenceNode
,Signal
,SignalEvent
,Slot
,StartClassifierBehaviorAction
,State
,StateInvariant
,StateMachine
,Stereotype
,StringExpression
,StructuralFeature
,StructuralFeatureAction
,StructuredActivityNode
,StructuredClassifier
,Substitution
,TemplateableElement
,TemplateBinding
,TemplateParameter
,TemplateParameterSubstitution
,TemplateSignature
,TestIdentityAction
,TimeConstraint
,TimeEvent
,TimeExpression
,TimeInterval
,TimeObservation
,Transition
,Trigger
,Type
,TypedElement
,UnmarshallAction
,Usage
,UseCase
,ValuePin
,ValueSpecification
,ValueSpecificationAction
,Variable
,VariableAction
,Vertex
,WriteLinkAction
,WriteStructuralFeatureAction
,WriteVariableAction
public interface Element extends MDWEObject
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:
- See Also:
UMLPackage.getElement()
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
addKeyword(String keyword)
Adds the specified keyword to this element.MDWEList<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(String source)
Creates an annotation with the specified source and this element as its model element.Comment
createOwnedComment()
Creates a newComment
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.MDWEList<Stereotype>
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.MDWEList<Stereotype>
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.MDWEList<Stereotype>
getAppliedSubstereotypes(Stereotype stereotype)
Retrieves the substereotypes of the specified stereotype that are applied to this element.MDWEList<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).MDWEList<Comment>
getOwnedComments()
Returns the value of the 'Owned Comment' containment reference list.MDWEList<Element>
getOwnedElements()
Returns the value of the 'Owned Element' reference list.Element
getOwner()
Returns the value of the 'Owner' reference.MDWEList<Relationship>
getRelationships()
Retrieves the relationships in which this element is involved.MDWEList<Relationship>
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.MDWEList<Stereotype>
getRequiredStereotypes()
Retrieves the stereotypes that are required for this element.MDWEList<DirectedRelationship>
getSourceDirectedRelationships()
Retrieves the directed relationships for which this element is a source.MDWEList<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.MDWEList<org.eclipse.emf.ecore.EObject>
getStereotypeApplications()
Retrieves the stereotype applications for this element.MDWEList<DirectedRelationship>
getTargetDirectedRelationships()
Retrieves the directed relationships for which this element is a target.MDWEList<DirectedRelationship>
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, eInvoke, eIsProxy, eIsSet, eResource, eSet, eUnset
-
Methods inherited from interface com.sodius.mdw.core.model.MDWObject
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
-
-
-
-
Method Detail
-
getOwnedElements
MDWEList<Element> getOwnedElements()
Returns the value of the 'Owned Element' reference list. The list contents are of typeElement
. It is bidirectional and its opposite is 'Owner
'. The Elements owned by this element.- Returns:
- the value of the 'Owned Element' reference list.
- See Also:
UMLPackage.getElement_OwnedElement()
,getOwner()
-
getOwner
Element getOwner()
Returns the value of the 'Owner' reference. It is bidirectional and its opposite is 'Owned Element
'. The Element that owns this element.- Returns:
- the value of the 'Owner' reference.
- See Also:
UMLPackage.getElement_Owner()
,getOwnedElements()
-
getOwnedComments
MDWEList<Comment> getOwnedComments()
Returns the value of the 'Owned Comment' containment reference list. The list contents are of typeComment
. The Comments owned by this element.- Returns:
- the value of the 'Owned Comment' containment reference list.
- See Also:
UMLPackage.getElement_OwnedComment()
-
createOwnedComment
Comment createOwnedComment()
Creates a newComment
and appends it to the 'Owned Comment' containment reference list.- Returns:
- The new
Comment
. - See Also:
getOwnedComments()
-
validateNotOwnSelf
boolean validateNotOwnSelf(org.eclipse.emf.common.util.DiagnosticChain diagnostics, Map context)
An element may not directly or indirectly own itself. not self.allOwnedElements()->includes(self)
-
validateHasOwner
boolean validateHasOwner(org.eclipse.emf.common.util.DiagnosticChain diagnostics, Map context)
Elements that must be owned must have an owner. self.mustBeOwned() implies owner->notEmpty()
-
getStereotypeApplications
MDWEList<org.eclipse.emf.ecore.EObject> getStereotypeApplications()
Retrieves the stereotype applications for this element.
-
getStereotypeApplication
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.
-
getRequiredStereotypes
MDWEList<Stereotype> getRequiredStereotypes()
Retrieves the stereotypes that are required for this element.
-
getRequiredStereotype
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.
-
getAppliedStereotypes
MDWEList<Stereotype> getAppliedStereotypes()
Retrieves the stereotypes that are applied to this element.
-
getAppliedStereotype
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.
-
getAppliedSubstereotypes
MDWEList<Stereotype> getAppliedSubstereotypes(Stereotype stereotype)
Retrieves the substereotypes of the specified stereotype that are applied to this element.
-
getAppliedSubstereotype
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.
-
hasValue
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.
-
getValue
Object getValue(Stereotype stereotype, String propertyName)
Retrieves the value of the property with the specified name in the specified stereotype for this element.
-
setValue
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.
-
createEAnnotation
org.eclipse.emf.ecore.EAnnotation createEAnnotation(String source)
Creates an annotation with the specified source and this element as its model element.
-
getRelationships
MDWEList<Relationship> getRelationships()
Retrieves the relationships in which this element is involved.
-
getRelationships
MDWEList<Relationship> getRelationships(org.eclipse.emf.ecore.EClass eClass)
Retrieves the relationships of the specified type in which this element is involved.
-
getSourceDirectedRelationships
MDWEList<DirectedRelationship> getSourceDirectedRelationships()
Retrieves the directed relationships for which this element is a source.
-
getSourceDirectedRelationships
MDWEList<DirectedRelationship> getSourceDirectedRelationships(org.eclipse.emf.ecore.EClass eClass)
Retrieves the directed relationships of the specified type for which this element is a source.
-
getTargetDirectedRelationships
MDWEList<DirectedRelationship> getTargetDirectedRelationships()
Retrieves the directed relationships for which this element is a target.
-
getTargetDirectedRelationships
MDWEList<DirectedRelationship> getTargetDirectedRelationships(org.eclipse.emf.ecore.EClass eClass)
Retrieves the directed relationships of the specified type for which this element is a target.
-
addKeyword
boolean addKeyword(String keyword)
Adds the specified keyword to this element.
-
removeKeyword
boolean removeKeyword(String keyword)
Removes the specified keyword from this element.
-
getNearestPackage
Package getNearestPackage()
Retrieves the nearest package that owns (either directly or indirectly) this element, or the element itself (if it is a package).
-
getModel
Model getModel()
Retrieves the model that owns (either directly or indirectly) this element.
-
isStereotypeApplicable
boolean isStereotypeApplicable(Stereotype stereotype)
Determines whether the specified stereotype is applicable to this element.
-
isStereotypeRequired
boolean isStereotypeRequired(Stereotype stereotype)
Determines whether the specified stereotype is required for this element.
-
isStereotypeApplied
boolean isStereotypeApplied(Stereotype stereotype)
Determines whether the specified stereotype is applied to this element.
-
applyStereotype
org.eclipse.emf.ecore.EObject applyStereotype(Stereotype stereotype)
Applies the specified stereotype to this element.
-
unapplyStereotype
org.eclipse.emf.ecore.EObject unapplyStereotype(Stereotype stereotype)
Unapplies the specified stereotype from this element.
-
getApplicableStereotypes
MDWEList<Stereotype> getApplicableStereotypes()
Retrieves the stereotypes that are applicable to this element, including those that are required and/or may already be applied.
-
getApplicableStereotype
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.
-
hasKeyword
boolean hasKeyword(String keyword)
Determines whether this element has the specified keyword.
-
destroy
void destroy()
Destroys this element by removing all cross references to/from it and removing it from its containing resource or object.
-
allOwnedElements
MDWEList<Element> allOwnedElements()
The query allOwnedElements() gives all of the direct and indirect owned elements of an element. result = ownedElement->union(ownedElement->collect(e | e.allOwnedElements()))
-
mustBeOwned
boolean mustBeOwned()
The query mustBeOwned() indicates whether elements of this type must have an owner. Subclasses of Element that do not require an owner must override this operation. result = true
-
-