Package com.sodius.mdw.metamodel.uml21
Interface Extend
-
- All Superinterfaces:
Comparable<Object>
,DirectedRelationship
,Element
,org.eclipse.emf.ecore.EModelElement
,org.eclipse.emf.ecore.EObject
,MDWEObject
,MDWObject
,NamedElement
,org.eclipse.emf.common.notify.Notifier
,Relationship
public interface Extend extends NamedElement, DirectedRelationship
A representation of the model object 'Extend'. A relationship from an extending use case to an extended use case that specifies how and when the behavior defined in the extending use case can be inserted into the behavior defined in the extended use case.The following features are supported:
- See Also:
UMLPackage.getExtend()
-
-
Field Summary
-
Fields inherited from interface com.sodius.mdw.metamodel.uml21.NamedElement
SEPARATOR
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Constraint
createCondition(String name)
Creates a newConstraint
,with the specified 'Name', and sets the ' Condition' containment reference.Constraint
createCondition(String name, org.eclipse.emf.ecore.EClass eClass)
Creates a newConstraint
, with the specified 'Name', and sets the ' Condition' containment reference.Constraint
getCondition()
Returns the value of the 'Condition' containment reference.UseCase
getExtendedCase()
Returns the value of the 'Extended Case' reference.UseCase
getExtension()
Returns the value of the 'Extension' container reference.ExtensionPoint
getExtensionLocation(String name)
Retrieves the firstExtensionPoint
with the specified 'Name' from the ' Extension Location' reference list.ExtensionPoint
getExtensionLocation(String name, boolean ignoreCase)
Retrieves the firstExtensionPoint
with the specified 'Name' from the ' Extension Location' reference list.MDWEList<ExtensionPoint>
getExtensionLocations()
Returns the value of the 'Extension Location' reference list.void
setCondition(Constraint value)
Sets the value of the 'Condition
' containment reference.void
setExtendedCase(UseCase value)
Sets the value of the 'Extended Case
' reference.void
setExtension(UseCase value)
Sets the value of the 'Extension
' container reference.boolean
validateExtensionPoints(org.eclipse.emf.common.util.DiagnosticChain diagnostics, Map context)
The extension points referenced by the extend relationship must belong to the use case that is being extended.-
Methods inherited from interface com.sodius.mdw.metamodel.uml21.DirectedRelationship
getSources, getTargets
-
Methods inherited from interface com.sodius.mdw.metamodel.uml21.Element
addKeyword, allOwnedElements, applyStereotype, createEAnnotation, createOwnedComment, destroy, getApplicableStereotype, getApplicableStereotypes, getAppliedStereotype, getAppliedStereotypes, getAppliedSubstereotype, getAppliedSubstereotypes, getKeywords, getModel, getNearestPackage, getOwnedComments, getOwnedElements, getOwner, getRelationships, getRelationships, getRequiredStereotype, getRequiredStereotypes, getSourceDirectedRelationships, getSourceDirectedRelationships, getStereotypeApplication, getStereotypeApplications, getTargetDirectedRelationships, getTargetDirectedRelationships, getValue, hasKeyword, hasValue, isStereotypeApplicable, isStereotypeApplied, isStereotypeRequired, mustBeOwned, removeKeyword, setValue, unapplyStereotype, 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, 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
-
Methods inherited from interface com.sodius.mdw.metamodel.uml21.NamedElement
allNamespaces, allOwningPackages, createDependency, createNameExpression, getClientDependencies, getClientDependency, getClientDependency, getLabel, getLabel, getName, getNameExpression, getNamespace, getQualifiedName, getVisibility, isDistinguishableFrom, isSetName, isSetVisibility, separator, setName, setNameExpression, setVisibility, unsetName, unsetVisibility, validateHasNoQualifiedName, validateHasQualifiedName, validateVisibilityNeedsOwnership
-
Methods inherited from interface org.eclipse.emf.common.notify.Notifier
eAdapters, eDeliver, eNotify, eSetDeliver
-
Methods inherited from interface com.sodius.mdw.metamodel.uml21.Relationship
getRelatedElements
-
-
-
-
Method Detail
-
getExtendedCase
UseCase getExtendedCase()
Returns the value of the 'Extended Case' reference. References the use case that is being extended.- Returns:
- the value of the 'Extended Case' reference.
- See Also:
setExtendedCase(UseCase)
,UMLPackage.getExtend_ExtendedCase()
-
setExtendedCase
void setExtendedCase(UseCase value)
Sets the value of the 'Extended Case
' reference.- Parameters:
value
- the new value of the 'Extended Case' reference.- See Also:
getExtendedCase()
-
getCondition
Constraint getCondition()
Returns the value of the 'Condition' containment reference. References the condition that must hold when the first extension point is reached for the extension to take place. If no constraint is associated with the extend relationship, the extension is unconditional.- Returns:
- the value of the 'Condition' containment reference.
- See Also:
setCondition(Constraint)
,UMLPackage.getExtend_Condition()
-
setCondition
void setCondition(Constraint value)
Sets the value of the 'Condition
' containment reference.- Parameters:
value
- the new value of the 'Condition' containment reference.- See Also:
getCondition()
-
createCondition
Constraint createCondition(String name, org.eclipse.emf.ecore.EClass eClass)
Creates a newConstraint
, with the specified 'Name', and sets the ' Condition' containment reference.- Parameters:
name
- The 'Name' for the newConstraint
, ornull
.eClass
- The Ecore class of theConstraint
to create.- Returns:
- The new
Constraint
. - See Also:
getCondition()
-
createCondition
Constraint createCondition(String name)
Creates a newConstraint
,with the specified 'Name', and sets the ' Condition' containment reference.- Parameters:
name
- The 'Name' for the newConstraint
, ornull
.- Returns:
- The new
Constraint
. - See Also:
getCondition()
-
getExtensionLocations
MDWEList<ExtensionPoint> getExtensionLocations()
Returns the value of the 'Extension Location' reference list. The list contents are of typeExtensionPoint
. An ordered list of extension points belonging to the extended use case, specifying where the respective behavioral fragments of the extending use case are to be inserted. The first fragment in the extending use case is associated with the first extension point in the list, the second fragment with the second point, and so on. (Note that, in most practical cases, the extending use case has just a single behavior fragment, so that the list of extension points is trivial.)- Returns:
- the value of the 'Extension Location' reference list.
- See Also:
UMLPackage.getExtend_ExtensionLocation()
-
getExtensionLocation
ExtensionPoint getExtensionLocation(String name)
Retrieves the firstExtensionPoint
with the specified 'Name' from the ' Extension Location' reference list.- Parameters:
name
- The 'Name' of theExtensionPoint
to retrieve, ornull
.- Returns:
- The first
ExtensionPoint
with the specified 'Name', ornull
. - See Also:
getExtensionLocations()
-
getExtensionLocation
ExtensionPoint getExtensionLocation(String name, boolean ignoreCase)
Retrieves the firstExtensionPoint
with the specified 'Name' from the ' Extension Location' reference list.- Parameters:
name
- The 'Name' of theExtensionPoint
to retrieve, ornull
.ignoreCase
- Whether to ignore case inString
comparisons.- Returns:
- The first
ExtensionPoint
with the specified 'Name', ornull
. - See Also:
getExtensionLocations()
-
getExtension
UseCase getExtension()
Returns the value of the 'Extension' container reference. It is bidirectional and its opposite is 'Extend
'. References the use case that represents the extension and owns the extend relationship.- Returns:
- the value of the 'Extension' container reference.
- See Also:
setExtension(UseCase)
,UMLPackage.getExtend_Extension()
,UseCase.getExtends()
-
setExtension
void setExtension(UseCase value)
Sets the value of the 'Extension
' container reference.- Parameters:
value
- the new value of the 'Extension' container reference.- See Also:
getExtension()
-
validateExtensionPoints
boolean validateExtensionPoints(org.eclipse.emf.common.util.DiagnosticChain diagnostics, Map context)
The extension points referenced by the extend relationship must belong to the use case that is being extended. extensionLocation->forAll (xp | extendedCase.extensionPoint->includes(xp))
-
-