Package com.sodius.mdw.metamodel.uml21
Interface UseCase
-
- All Superinterfaces:
BehavioredClassifier,Classifier,Comparable<Object>,Element,org.eclipse.emf.ecore.EModelElement,org.eclipse.emf.ecore.EObject,MDWEObject,MDWObject,NamedElement,Namespace,org.eclipse.emf.common.notify.Notifier,PackageableElement,ParameterableElement,RedefinableElement,TemplateableElement,Type
public interface UseCase extends BehavioredClassifier
A representation of the model object 'Use Case'. A use case is the specification of a set of actions performed by a system, which yields an observable result that is, typically, of value for one or more actors or other stakeholders of the system.The following features are supported:
- See Also:
UMLPackage.getUseCase()
-
-
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 MDWEList<UseCase>allIncludedUseCases()The query allIncludedUseCases() returns the transitive closure of all use cases (directly or indirectly) included by this use case.ExtendcreateExtend(String name, UseCase extendedCase)Creates a newExtend, with the specified 'Name', and 'Extended Case', and appends it to the 'Extend' containment reference list.ExtensionPointcreateExtensionPoint(String name)Creates a newExtensionPoint, with the specified 'Name', and appends it to the ' Extension Point' containment reference list.IncludecreateInclude(String name, UseCase addition)Creates a newInclude, with the specified 'Name', and 'Addition', and appends it to the 'Include' containment reference list.ExtendgetExtend(String name, UseCase extendedCase)Retrieves the firstExtendwith the specified 'Name', and 'Extended Case ' from the 'Extend' containment reference list.ExtendgetExtend(String name, UseCase extendedCase, boolean ignoreCase, boolean createOnDemand)Retrieves the firstExtendwith the specified 'Name', and 'Extended Case ' from the 'Extend' containment reference list.MDWEList<Extend>getExtends()Returns the value of the 'Extend' containment reference list.ExtensionPointgetExtensionPoint(String name)Retrieves the firstExtensionPointwith the specified 'Name' from the ' Extension Point' containment reference list.ExtensionPointgetExtensionPoint(String name, boolean ignoreCase, boolean createOnDemand)Retrieves the firstExtensionPointwith the specified 'Name' from the ' Extension Point' containment reference list.MDWEList<ExtensionPoint>getExtensionPoints()Returns the value of the 'Extension Point' containment reference list.IncludegetInclude(String name, UseCase addition)Retrieves the firstIncludewith the specified 'Name', and 'Addition' from the 'Include' containment reference list.IncludegetInclude(String name, UseCase addition, boolean ignoreCase, boolean createOnDemand)Retrieves the firstIncludewith the specified 'Name', and 'Addition' from the 'Include' containment reference list.MDWEList<Include>getIncludes()Returns the value of the 'Include' containment reference list.ClassifiergetSubject(String name)Retrieves the firstClassifierwith the specified 'Name' from the ' Subject' reference list.ClassifiergetSubject(String name, boolean ignoreCase, org.eclipse.emf.ecore.EClass eClass)Retrieves the firstClassifierwith the specified 'Name' from the ' Subject' reference list.MDWEList<Classifier>getSubjects()Returns the value of the 'Subject' reference list.booleanvalidateBinaryAssociations(org.eclipse.emf.common.util.DiagnosticChain diagnostics, Map context)UseCases can only be involved in binary Associations.booleanvalidateCannotIncludeSelf(org.eclipse.emf.common.util.DiagnosticChain diagnostics, Map context)A use case cannot include use cases that directly or indirectly include it.booleanvalidateMustHaveName(org.eclipse.emf.common.util.DiagnosticChain diagnostics, Map context)A UseCase must have a name.booleanvalidateNoAssociationToUseCase(org.eclipse.emf.common.util.DiagnosticChain diagnostics, Map context)UseCases can not have Associations to UseCases specifying the same subject.-
Methods inherited from interface com.sodius.mdw.metamodel.uml21.BehavioredClassifier
createClassifierBehavior, createInterfaceRealization, createOwnedBehavior, createOwnedTrigger, getAllImplementedInterfaces, getClassifierBehavior, getImplementedInterfaces, getInterfaceRealization, getInterfaceRealization, getInterfaceRealizations, getOwnedBehavior, getOwnedBehavior, getOwnedBehaviors, getOwnedTrigger, getOwnedTrigger, getOwnedTriggers, setClassifierBehavior, validateClassBehavior
-
Methods inherited from interface com.sodius.mdw.metamodel.uml21.Classifier
allFeatures, allParents, conformsTo, createCollaborationUse, createGeneralization, createOwnedUseCase, createRepresentation, createSubstitution, getAllAttributes, getAllOperations, getAllUsedInterfaces, getAttribute, getAttribute, getAttributes, getCollaborationUse, getCollaborationUse, getCollaborationUses, getFeature, getFeature, getFeatures, getGeneral, getGeneral, getGeneralization, getGeneralization, getGeneralizations, getGenerals, getInheritedMember, getInheritedMember, getInheritedMembers, getOperation, getOperation, getOperations, getOwnedUseCase, getOwnedUseCase, getOwnedUseCases, getPowertypeExtent, getPowertypeExtent, getPowertypeExtents, getRedefinedClassifier, getRedefinedClassifier, getRedefinedClassifiers, getRepresentation, getSubstitution, getSubstitution, getSubstitutions, getUseCase, getUseCase, getUseCases, getUsedInterfaces, hasVisibilityOf, inherit, inheritableMembers, isAbstract, isFinalSpecialization, maySpecializeType, parents, setIsAbstract, setIsFinalSpecialization, setRepresentation, validateGeneralizationHierarchies, validateMapsToGeneralizationSet, validateNoCyclesInGeneralization, validateSpecializeType
-
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 com.sodius.mdw.metamodel.uml21.Namespace
createElementImport, createElementImport, createOwnedDiagram, createOwnedRule, createOwnedRule, createPackageImport, createPackageImport, excludeCollisions, getElementImport, getElementImport, getElementImports, getImportedElements, getImportedMember, getImportedMember, getImportedMembers, getImportedPackages, getMember, getMember, getMembers, getNamesOfMember, getOwnedDiagrams, getOwnedDiagrams, getOwnedMember, getOwnedMember, getOwnedMembers, getOwnedRule, getOwnedRule, getOwnedRules, getPackageImport, getPackageImport, getPackageImports, importMembers, membersAreDistinguishable, validateMembersDistinguishable
-
Methods inherited from interface org.eclipse.emf.common.notify.Notifier
eAdapters, eDeliver, eNotify, eSetDeliver
-
Methods inherited from interface com.sodius.mdw.metamodel.uml21.ParameterableElement
getOwningTemplateParameter, getTemplateParameter, isCompatibleWith, isTemplateParameter, setOwningTemplateParameter, setTemplateParameter
-
Methods inherited from interface com.sodius.mdw.metamodel.uml21.RedefinableElement
getRedefinedElement, getRedefinedElement, getRedefinedElements, getRedefinitionContext, getRedefinitionContext, getRedefinitionContexts, isConsistentWith, isLeaf, isRedefinitionContextValid, setIsLeaf, validateRedefinitionConsistent, validateRedefinitionContextValid
-
Methods inherited from interface com.sodius.mdw.metamodel.uml21.TemplateableElement
createOwnedTemplateSignature, createOwnedTemplateSignature, createTemplateBinding, getOwnedTemplateSignature, getTemplateBinding, getTemplateBinding, getTemplateBindings, isTemplate, parameterableElements, setOwnedTemplateSignature
-
Methods inherited from interface com.sodius.mdw.metamodel.uml21.Type
conformsTo, createAssociation, getAssociations, getPackage, setPackage
-
-
-
-
Method Detail
-
getIncludes
MDWEList<Include> getIncludes()
Returns the value of the 'Include' containment reference list. The list contents are of typeInclude. It is bidirectional and its opposite is 'Including Case'. References the Include relationships owned by this use case.- Returns:
- the value of the 'Include' containment reference list.
- See Also:
UMLPackage.getUseCase_Include(),Include.getIncludingCase()
-
createInclude
Include createInclude(String name, UseCase addition)
Creates a newInclude, with the specified 'Name', and 'Addition', and appends it to the 'Include' containment reference list.- Parameters:
name- The 'Name' for the newInclude, ornull.addition- The 'Addition' for the newInclude, ornull.- Returns:
- The new
Include. - See Also:
getIncludes()
-
getInclude
Include getInclude(String name, UseCase addition)
Retrieves the firstIncludewith the specified 'Name', and 'Addition' from the 'Include' containment reference list.- Parameters:
name- The 'Name' of theIncludeto retrieve, ornull.addition- The 'Addition' of theIncludeto retrieve, ornull.- Returns:
- The first
Includewith the specified 'Name', and 'Addition', ornull. - See Also:
getIncludes()
-
getInclude
Include getInclude(String name, UseCase addition, boolean ignoreCase, boolean createOnDemand)
Retrieves the firstIncludewith the specified 'Name', and 'Addition' from the 'Include' containment reference list.- Parameters:
name- The 'Name' of theIncludeto retrieve, ornull.addition- The 'Addition' of theIncludeto retrieve, ornull.ignoreCase- Whether to ignore case inStringcomparisons.createOnDemand- Whether to create aIncludeon demand if not found.- Returns:
- The first
Includewith the specified 'Name', and 'Addition', ornull. - See Also:
getIncludes()
-
getExtends
MDWEList<Extend> getExtends()
Returns the value of the 'Extend' containment reference list. The list contents are of typeExtend. It is bidirectional and its opposite is 'Extension'. References the Extend relationships owned by this use case.- Returns:
- the value of the 'Extend' containment reference list.
- See Also:
UMLPackage.getUseCase_Extend(),Extend.getExtension()
-
createExtend
Extend createExtend(String name, UseCase extendedCase)
Creates a newExtend, with the specified 'Name', and 'Extended Case', and appends it to the 'Extend' containment reference list.- Parameters:
name- The 'Name' for the newExtend, ornull.extendedCase- The 'Extended Case' for the newExtend, ornull.- Returns:
- The new
Extend. - See Also:
getExtends()
-
getExtend
Extend getExtend(String name, UseCase extendedCase)
Retrieves the firstExtendwith the specified 'Name', and 'Extended Case ' from the 'Extend' containment reference list.- Parameters:
name- The 'Name' of theExtendto retrieve, ornull.extendedCase- The 'Extended Case' of theExtendto retrieve, ornull.- Returns:
- The first
Extendwith the specified 'Name', and 'Extended Case', ornull. - See Also:
getExtends()
-
getExtend
Extend getExtend(String name, UseCase extendedCase, boolean ignoreCase, boolean createOnDemand)
Retrieves the firstExtendwith the specified 'Name', and 'Extended Case ' from the 'Extend' containment reference list.- Parameters:
name- The 'Name' of theExtendto retrieve, ornull.extendedCase- The 'Extended Case' of theExtendto retrieve, ornull.ignoreCase- Whether to ignore case inStringcomparisons.createOnDemand- Whether to create aExtendon demand if not found.- Returns:
- The first
Extendwith the specified 'Name', and 'Extended Case', ornull. - See Also:
getExtends()
-
getExtensionPoints
MDWEList<ExtensionPoint> getExtensionPoints()
Returns the value of the 'Extension Point' containment reference list. The list contents are of typeExtensionPoint. It is bidirectional and its opposite is 'Use Case'. References the ExtensionPoints owned by the use case.- Returns:
- the value of the 'Extension Point' containment reference list.
- See Also:
UMLPackage.getUseCase_ExtensionPoint(),ExtensionPoint.getUseCase()
-
createExtensionPoint
ExtensionPoint createExtensionPoint(String name)
Creates a newExtensionPoint, with the specified 'Name', and appends it to the ' Extension Point' containment reference list.- Parameters:
name- The 'Name' for the newExtensionPoint, ornull.- Returns:
- The new
ExtensionPoint. - See Also:
getExtensionPoints()
-
getExtensionPoint
ExtensionPoint getExtensionPoint(String name)
Retrieves the firstExtensionPointwith the specified 'Name' from the ' Extension Point' containment reference list.- Parameters:
name- The 'Name' of theExtensionPointto retrieve, ornull.- Returns:
- The first
ExtensionPointwith the specified 'Name', ornull. - See Also:
getExtensionPoints()
-
getExtensionPoint
ExtensionPoint getExtensionPoint(String name, boolean ignoreCase, boolean createOnDemand)
Retrieves the firstExtensionPointwith the specified 'Name' from the ' Extension Point' containment reference list.- Parameters:
name- The 'Name' of theExtensionPointto retrieve, ornull.ignoreCase- Whether to ignore case inStringcomparisons.createOnDemand- Whether to create aExtensionPointon demand if not found.- Returns:
- The first
ExtensionPointwith the specified 'Name', ornull. - See Also:
getExtensionPoints()
-
getSubjects
MDWEList<Classifier> getSubjects()
Returns the value of the 'Subject' reference list. The list contents are of typeClassifier. It is bidirectional and its opposite is 'Use Case'. References the subjects to which this use case applies. The subject or its parts realize all the use cases that apply to this subject. Use cases need not be attached to any specific subject, however. The subject may, but need not, own the use cases that apply to it.- Returns:
- the value of the 'Subject' reference list.
- See Also:
UMLPackage.getUseCase_Subject(),Classifier.getUseCases()
-
getSubject
Classifier getSubject(String name)
Retrieves the firstClassifierwith the specified 'Name' from the ' Subject' reference list.- Parameters:
name- The 'Name' of theClassifierto retrieve, ornull.- Returns:
- The first
Classifierwith the specified 'Name', ornull. - See Also:
getSubjects()
-
getSubject
Classifier getSubject(String name, boolean ignoreCase, org.eclipse.emf.ecore.EClass eClass)
Retrieves the firstClassifierwith the specified 'Name' from the ' Subject' reference list.- Parameters:
name- The 'Name' of theClassifierto retrieve, ornull.ignoreCase- Whether to ignore case inStringcomparisons.eClass- The Ecore class of theClassifierto retrieve, ornull.- Returns:
- The first
Classifierwith the specified 'Name', ornull. - See Also:
getSubjects()
-
validateMustHaveName
boolean validateMustHaveName(org.eclipse.emf.common.util.DiagnosticChain diagnostics, Map context)A UseCase must have a name. self.name -> notEmpty ()
-
validateBinaryAssociations
boolean validateBinaryAssociations(org.eclipse.emf.common.util.DiagnosticChain diagnostics, Map context)UseCases can only be involved in binary Associations. true
-
validateNoAssociationToUseCase
boolean validateNoAssociationToUseCase(org.eclipse.emf.common.util.DiagnosticChain diagnostics, Map context)UseCases can not have Associations to UseCases specifying the same subject. true
-
validateCannotIncludeSelf
boolean validateCannotIncludeSelf(org.eclipse.emf.common.util.DiagnosticChain diagnostics, Map context)A use case cannot include use cases that directly or indirectly include it. not self.allIncludedUseCases()->includes(self)
-
-