Package com.sodius.mdw.metamodel.uml21
Interface Classifier
-
- All Superinterfaces:
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
- All Known Subinterfaces:
Activity
,Actor
,Artifact
,Association
,AssociationClass
,Behavior
,BehavioredClassifier
,Class
,Collaboration
,CommunicationPath
,Component
,DataType
,DeploymentSpecification
,Device
,EncapsulatedClassifier
,Enumeration
,ExecutionEnvironment
,Extension
,FunctionBehavior
,InformationItem
,Interaction
,Interface
,Node
,OpaqueBehavior
,PrimitiveType
,ProtocolStateMachine
,Signal
,StateMachine
,Stereotype
,StructuredClassifier
,UseCase
public interface Classifier extends Namespace, RedefinableElement, Type, TemplateableElement
A representation of the model object 'Classifier'. A classifier is a classification of instances - it describes a set of instances that have features in common. A classifier can specify a generalization hierarchy by referencing its general classifiers. A classifier has the capability to own collaboration uses. These collaboration uses link a collaboration with the classifier to give a description of the workings of the classifier. A classifier has the capability to own use cases. Although the owning classifier typically represents the subject to which the owned use cases apply, this is not necessarily the case. In principle, the same use case can be applied to multiple subjects, as identified by the subject association role of a use case. Classifier is defined to be a kind of templateable element so that a classifier can be parameterized. It is also defined to be a kind of parameterable element so that a classifier can be a formal template parameter.The following features are supported:
- See Also:
UMLPackage.getClassifier()
-
-
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<Feature>
allFeatures()
The query allFeatures() gives all of the features in the namespace of the classifier.MDWEList<Classifier>
allParents()
The query allParents() gives all of the direct and indirect ancestors of a generalized Classifier.boolean
conformsTo(Classifier other)
The query conformsTo() gives true for a classifier that defines a type that conforms to another.CollaborationUse
createCollaborationUse(String name)
Creates a newCollaborationUse
, with the specified 'Name', and appends it to the ' Collaboration Use' containment reference list.Generalization
createGeneralization(Classifier general)
Creates a newGeneralization
, with the specified 'General', and appends it to the ' Generalization' containment reference list.UseCase
createOwnedUseCase(String name)
Creates a newUseCase
, with the specified 'Name', and appends it to the ' Owned Use Case' containment reference list.CollaborationUse
createRepresentation(String name)
Creates a newCollaborationUse
,with the specified 'Name', and sets the ' Representation' reference.Substitution
createSubstitution(String name, Classifier contract)
Creates a newSubstitution
, with the specified 'Name', and 'Contract', and appends it to the 'Substitution' containment reference list.MDWEList<Property>
getAllAttributes()
Retrieves all the attributes of this classifier, including those inherited from its parents.MDWEList<Operation>
getAllOperations()
Retrieves all the operations of this classifier, including those inherited from its parents.MDWEList<Interface>
getAllUsedInterfaces()
Retrieves all the interfaces on which this classifier or any of its parents has a usage dependency.Property
getAttribute(String name, Type type)
Retrieves the firstProperty
with the specified 'Name', and 'Type' from the 'Attribute' reference list.Property
getAttribute(String name, Type type, boolean ignoreCase, org.eclipse.emf.ecore.EClass eClass)
Retrieves the firstProperty
with the specified 'Name', and 'Type' from the 'Attribute' reference list.MDWEList<Property>
getAttributes()
Returns the value of the 'Attribute' reference list.CollaborationUse
getCollaborationUse(String name)
Retrieves the firstCollaborationUse
with the specified 'Name' from the ' Collaboration Use' containment reference list.CollaborationUse
getCollaborationUse(String name, boolean ignoreCase, boolean createOnDemand)
Retrieves the firstCollaborationUse
with the specified 'Name' from the ' Collaboration Use' containment reference list.MDWEList<CollaborationUse>
getCollaborationUses()
Returns the value of the 'Collaboration Use' containment reference list.Feature
getFeature(String name)
Retrieves the firstFeature
with the specified 'Name' from the 'Feature' reference list.Feature
getFeature(String name, boolean ignoreCase, org.eclipse.emf.ecore.EClass eClass)
Retrieves the firstFeature
with the specified 'Name' from the 'Feature' reference list.MDWEList<Feature>
getFeatures()
Returns the value of the 'Feature' reference list.Classifier
getGeneral(String name)
Retrieves the firstClassifier
with the specified 'Name' from the ' General' reference list.Classifier
getGeneral(String name, boolean ignoreCase, org.eclipse.emf.ecore.EClass eClass)
Retrieves the firstClassifier
with the specified 'Name' from the ' General' reference list.Generalization
getGeneralization(Classifier general)
Retrieves the firstGeneralization
with the specified 'General' from the ' Generalization' containment reference list.Generalization
getGeneralization(Classifier general, boolean createOnDemand)
Retrieves the firstGeneralization
with the specified 'General' from the ' Generalization' containment reference list.MDWEList<Generalization>
getGeneralizations()
Returns the value of the 'Generalization' containment reference list.MDWEList<Classifier>
getGenerals()
Returns the value of the 'General' reference list.NamedElement
getInheritedMember(String name)
Retrieves the firstNamedElement
with the specified 'Name' from the ' Inherited Member' reference list.NamedElement
getInheritedMember(String name, boolean ignoreCase, org.eclipse.emf.ecore.EClass eClass)
Retrieves the firstNamedElement
with the specified 'Name' from the ' Inherited Member' reference list.MDWEList<NamedElement>
getInheritedMembers()
Returns the value of the 'Inherited Member' reference list.Operation
getOperation(String name, MDWEList<String> parameterNames, MDWEList<? extends Type> parameterTypes)
Retrieves the first operation with the specified name, parameter names, and parameter types from this classifier.Operation
getOperation(String name, MDWEList<String> parameterNames, MDWEList<? extends Type> parameterTypes, boolean ignoreCase)
Retrieves the first operation with the specified name, parameter names, and parameter types from this classifier, ignoring case if indicated.MDWEList<Operation>
getOperations()
Retrieves the operations of this classifier.UseCase
getOwnedUseCase(String name)
Retrieves the firstUseCase
with the specified 'Name' from the ' Owned Use Case' containment reference list.UseCase
getOwnedUseCase(String name, boolean ignoreCase, boolean createOnDemand)
Retrieves the firstUseCase
with the specified 'Name' from the ' Owned Use Case' containment reference list.MDWEList<UseCase>
getOwnedUseCases()
Returns the value of the 'Owned Use Case' containment reference list.GeneralizationSet
getPowertypeExtent(String name)
Retrieves the firstGeneralizationSet
with the specified 'Name' from the ' Powertype Extent' reference list.GeneralizationSet
getPowertypeExtent(String name, boolean ignoreCase)
Retrieves the firstGeneralizationSet
with the specified 'Name' from the ' Powertype Extent' reference list.MDWEList<GeneralizationSet>
getPowertypeExtents()
Returns the value of the 'Powertype Extent' reference list.Classifier
getRedefinedClassifier(String name)
Retrieves the firstClassifier
with the specified 'Name' from the ' Redefined Classifier' reference list.Classifier
getRedefinedClassifier(String name, boolean ignoreCase, org.eclipse.emf.ecore.EClass eClass)
Retrieves the firstClassifier
with the specified 'Name' from the ' Redefined Classifier' reference list.MDWEList<Classifier>
getRedefinedClassifiers()
Returns the value of the 'Redefined Classifier' reference list.CollaborationUse
getRepresentation()
Returns the value of the 'Representation' reference.Substitution
getSubstitution(String name, Classifier contract)
Retrieves the firstSubstitution
with the specified 'Name', and ' Contract' from the 'Substitution' containment reference list.Substitution
getSubstitution(String name, Classifier contract, boolean ignoreCase, boolean createOnDemand)
Retrieves the firstSubstitution
with the specified 'Name', and ' Contract' from the 'Substitution' containment reference list.MDWEList<Substitution>
getSubstitutions()
Returns the value of the 'Substitution' containment reference list.UseCase
getUseCase(String name)
Retrieves the firstUseCase
with the specified 'Name' from the 'Use Case ' reference list.UseCase
getUseCase(String name, boolean ignoreCase)
Retrieves the firstUseCase
with the specified 'Name' from the 'Use Case ' reference list.MDWEList<UseCase>
getUseCases()
Returns the value of the 'Use Case' reference list.MDWEList<Interface>
getUsedInterfaces()
Retrieves the interfaces on which this classifier has a usage dependency.boolean
hasVisibilityOf(NamedElement n)
The query hasVisibilityOf() determines whether a named element is visible in the classifier.MDWEList<NamedElement>
inherit(MDWEList<NamedElement> inhs)
The inherit operation is overridden to exclude redefined properties.MDWEList<NamedElement>
inheritableMembers(Classifier c)
The query inheritableMembers() gives all of the members of a classifier that may be inherited in one of its descendants, subject to whatever visibility restrictions apply.boolean
isAbstract()
Returns the value of the 'Is Abstract' attribute.boolean
isFinalSpecialization()
Returns the 'isFinalSpecialization' value for the current Classifier.
for UML 2.3 or higherboolean
maySpecializeType(Classifier c)
The query maySpecializeType() determines whether this classifier may have a generalization relationship to classifiers of the specified type.MDWEList<Classifier>
parents()
The query parents() gives all of the immediate ancestors of a generalized Classifier.void
setIsAbstract(boolean value)
Sets the value of the 'Is Abstract
' attribute.void
setIsFinalSpecialization(boolean isFinalSpecialization)
Set the 'isFinalSpecialization' value for the current Classifier.
for UML 2.3 or highervoid
setRepresentation(CollaborationUse value)
Sets the value of the 'Representation
' reference.boolean
validateGeneralizationHierarchies(org.eclipse.emf.common.util.DiagnosticChain diagnostics, Map context)
Generalization hierarchies must be directed and acyclical.boolean
validateMapsToGeneralizationSet(org.eclipse.emf.common.util.DiagnosticChain diagnostics, Map context)
The Classifier that maps to a GeneralizationSet may neither be a specific nor a general Classifier in any of the Generalization relationships defined for that GeneralizationSet.boolean
validateNoCyclesInGeneralization(org.eclipse.emf.common.util.DiagnosticChain diagnostics, Map context)
Generalization hierarchies must be directed and acyclical.boolean
validateSpecializeType(org.eclipse.emf.common.util.DiagnosticChain diagnostics, Map context)
A classifier may only specialize classifiers of a valid type.-
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
-
isAbstract
boolean isAbstract()
Returns the value of the 'Is Abstract' attribute. The default value is"false"
. If true, the Classifier does not provide a complete declaration and can typically not be instantiated. An abstract classifier is intended to be used by other classifiers e.g. as the target of general metarelationships or generalization relationships.- Returns:
- the value of the 'Is Abstract' attribute.
- See Also:
setIsAbstract(boolean)
,UMLPackage.getClassifier_IsAbstract()
-
setIsAbstract
void setIsAbstract(boolean value)
Sets the value of the 'Is Abstract
' attribute.- Parameters:
value
- the new value of the 'Is Abstract' attribute.- See Also:
isAbstract()
-
getGeneralizations
MDWEList<Generalization> getGeneralizations()
Returns the value of the 'Generalization' containment reference list. The list contents are of typeGeneralization
. It is bidirectional and its opposite is 'Specific
'. Specifies the Generalization relationships for this Classifier. These Generalizations navigaten to more general classifiers in the generalization hierarchy.- Returns:
- the value of the 'Generalization' containment reference list.
- See Also:
UMLPackage.getClassifier_Generalization()
,Generalization.getSpecific()
-
getPowertypeExtents
MDWEList<GeneralizationSet> getPowertypeExtents()
Returns the value of the 'Powertype Extent' reference list. The list contents are of typeGeneralizationSet
. It is bidirectional and its opposite is 'Powertype
'. Designates the GeneralizationSet of which the associated Classifier is a power type.- Returns:
- the value of the 'Powertype Extent' reference list.
- See Also:
UMLPackage.getClassifier_PowertypeExtent()
,GeneralizationSet.getPowertype()
-
getPowertypeExtent
GeneralizationSet getPowertypeExtent(String name)
Retrieves the firstGeneralizationSet
with the specified 'Name' from the ' Powertype Extent' reference list.- Parameters:
name
- The 'Name' of theGeneralizationSet
to retrieve, ornull
.- Returns:
- The first
GeneralizationSet
with the specified 'Name', ornull
. - See Also:
getPowertypeExtents()
-
getPowertypeExtent
GeneralizationSet getPowertypeExtent(String name, boolean ignoreCase)
Retrieves the firstGeneralizationSet
with the specified 'Name' from the ' Powertype Extent' reference list.- Parameters:
name
- The 'Name' of theGeneralizationSet
to retrieve, ornull
.ignoreCase
- Whether to ignore case inString
comparisons.- Returns:
- The first
GeneralizationSet
with the specified 'Name', ornull
. - See Also:
getPowertypeExtents()
-
getFeatures
MDWEList<Feature> getFeatures()
Returns the value of the 'Feature' reference list. The list contents are of typeFeature
. It is bidirectional and its opposite is 'Featuring Classifier
'. Note that there may be members of the Classifier that are of the type Feature but are not included in this association, e.g. inherited features. Specifies each feature defined in the classifier.- Returns:
- the value of the 'Feature' reference list.
- See Also:
UMLPackage.getClassifier_Feature()
,Feature.getFeaturingClassifiers()
-
getFeature
Feature getFeature(String name)
Retrieves the firstFeature
with the specified 'Name' from the 'Feature' reference list.- Parameters:
name
- The 'Name' of theFeature
to retrieve, ornull
.- Returns:
- The first
Feature
with the specified 'Name', ornull
. - See Also:
getFeatures()
-
getFeature
Feature getFeature(String name, boolean ignoreCase, org.eclipse.emf.ecore.EClass eClass)
Retrieves the firstFeature
with the specified 'Name' from the 'Feature' reference list.- Parameters:
name
- The 'Name' of theFeature
to retrieve, ornull
.ignoreCase
- Whether to ignore case inString
comparisons.eClass
- The Ecore class of theFeature
to retrieve, ornull
.- Returns:
- The first
Feature
with the specified 'Name', ornull
. - See Also:
getFeatures()
-
getInheritedMembers
MDWEList<NamedElement> getInheritedMembers()
Returns the value of the 'Inherited Member' reference list. The list contents are of typeNamedElement
. Specifies all elements inherited by this classifier from the general classifiers.- Returns:
- the value of the 'Inherited Member' reference list.
- See Also:
UMLPackage.getClassifier_InheritedMember()
-
getInheritedMember
NamedElement getInheritedMember(String name)
Retrieves the firstNamedElement
with the specified 'Name' from the ' Inherited Member' reference list.- Parameters:
name
- The 'Name' of theNamedElement
to retrieve, ornull
.- Returns:
- The first
NamedElement
with the specified 'Name', ornull
. - See Also:
getInheritedMembers()
-
getInheritedMember
NamedElement getInheritedMember(String name, boolean ignoreCase, org.eclipse.emf.ecore.EClass eClass)
Retrieves the firstNamedElement
with the specified 'Name' from the ' Inherited Member' reference list.- Parameters:
name
- The 'Name' of theNamedElement
to retrieve, ornull
.ignoreCase
- Whether to ignore case inString
comparisons.eClass
- The Ecore class of theNamedElement
to retrieve, ornull
.- Returns:
- The first
NamedElement
with the specified 'Name', ornull
. - See Also:
getInheritedMembers()
-
getRedefinedClassifiers
MDWEList<Classifier> getRedefinedClassifiers()
Returns the value of the 'Redefined Classifier' reference list. The list contents are of typeClassifier
. References the Classifiers that are redefined by this Classifier.- Returns:
- the value of the 'Redefined Classifier' reference list.
- See Also:
UMLPackage.getClassifier_RedefinedClassifier()
-
getRedefinedClassifier
Classifier getRedefinedClassifier(String name)
Retrieves the firstClassifier
with the specified 'Name' from the ' Redefined Classifier' reference list.- Parameters:
name
- The 'Name' of theClassifier
to retrieve, ornull
.- Returns:
- The first
Classifier
with the specified 'Name', ornull
. - See Also:
getRedefinedClassifiers()
-
getRedefinedClassifier
Classifier getRedefinedClassifier(String name, boolean ignoreCase, org.eclipse.emf.ecore.EClass eClass)
Retrieves the firstClassifier
with the specified 'Name' from the ' Redefined Classifier' reference list.- Parameters:
name
- The 'Name' of theClassifier
to retrieve, ornull
.ignoreCase
- Whether to ignore case inString
comparisons.eClass
- The Ecore class of theClassifier
to retrieve, ornull
.- Returns:
- The first
Classifier
with the specified 'Name', ornull
. - See Also:
getRedefinedClassifiers()
-
getGenerals
MDWEList<Classifier> getGenerals()
Returns the value of the 'General' reference list. The list contents are of typeClassifier
. References the general classifier in the Generalization relationship. Specifies the general Classifiers for this Classifier.- Returns:
- the value of the 'General' reference list.
- See Also:
UMLPackage.getClassifier_General()
-
getGeneral
Classifier getGeneral(String name)
Retrieves the firstClassifier
with the specified 'Name' from the ' General' reference list.- Parameters:
name
- The 'Name' of theClassifier
to retrieve, ornull
.- Returns:
- The first
Classifier
with the specified 'Name', ornull
. - See Also:
getGenerals()
-
getGeneral
Classifier getGeneral(String name, boolean ignoreCase, org.eclipse.emf.ecore.EClass eClass)
Retrieves the firstClassifier
with the specified 'Name' from the ' General' reference list.- Parameters:
name
- The 'Name' of theClassifier
to retrieve, ornull
.ignoreCase
- Whether to ignore case inString
comparisons.eClass
- The Ecore class of theClassifier
to retrieve, ornull
.- Returns:
- The first
Classifier
with the specified 'Name', ornull
. - See Also:
getGenerals()
-
getOwnedUseCases
MDWEList<UseCase> getOwnedUseCases()
Returns the value of the 'Owned Use Case' containment reference list. The list contents are of typeUseCase
. References the use cases owned by this classifier.- Returns:
- the value of the 'Owned Use Case' containment reference list.
- See Also:
UMLPackage.getClassifier_OwnedUseCase()
-
createOwnedUseCase
UseCase createOwnedUseCase(String name)
Creates a newUseCase
, with the specified 'Name', and appends it to the ' Owned Use Case' containment reference list.- Parameters:
name
- The 'Name' for the newUseCase
, ornull
.- Returns:
- The new
UseCase
. - See Also:
getOwnedUseCases()
-
getOwnedUseCase
UseCase getOwnedUseCase(String name)
Retrieves the firstUseCase
with the specified 'Name' from the ' Owned Use Case' containment reference list.- Parameters:
name
- The 'Name' of theUseCase
to retrieve, ornull
.- Returns:
- The first
UseCase
with the specified 'Name', ornull
. - See Also:
getOwnedUseCases()
-
getOwnedUseCase
UseCase getOwnedUseCase(String name, boolean ignoreCase, boolean createOnDemand)
Retrieves the firstUseCase
with the specified 'Name' from the ' Owned Use Case' containment reference list.- Parameters:
name
- The 'Name' of theUseCase
to retrieve, ornull
.ignoreCase
- Whether to ignore case inString
comparisons.createOnDemand
- Whether to create aUseCase
on demand if not found.- Returns:
- The first
UseCase
with the specified 'Name', ornull
. - See Also:
getOwnedUseCases()
-
getUseCases
MDWEList<UseCase> getUseCases()
Returns the value of the 'Use Case' reference list. The list contents are of typeUseCase
. It is bidirectional and its opposite is 'Subject
'. The set of use cases for which this Classifier is the subject.- Returns:
- the value of the 'Use Case' reference list.
- See Also:
UMLPackage.getClassifier_UseCase()
,UseCase.getSubjects()
-
getUseCase
UseCase getUseCase(String name)
Retrieves the firstUseCase
with the specified 'Name' from the 'Use Case ' reference list.- Parameters:
name
- The 'Name' of theUseCase
to retrieve, ornull
.- Returns:
- The first
UseCase
with the specified 'Name', ornull
. - See Also:
getUseCases()
-
getUseCase
UseCase getUseCase(String name, boolean ignoreCase)
Retrieves the firstUseCase
with the specified 'Name' from the 'Use Case ' reference list.- Parameters:
name
- The 'Name' of theUseCase
to retrieve, ornull
.ignoreCase
- Whether to ignore case inString
comparisons.- Returns:
- The first
UseCase
with the specified 'Name', ornull
. - See Also:
getUseCases()
-
getSubstitutions
MDWEList<Substitution> getSubstitutions()
Returns the value of the 'Substitution' containment reference list. The list contents are of typeSubstitution
. It is bidirectional and its opposite is 'Substituting Classifier
'. References the substitutions that are owned by this Classifier.- Returns:
- the value of the 'Substitution' containment reference list.
- See Also:
UMLPackage.getClassifier_Substitution()
,Substitution.getSubstitutingClassifier()
-
createSubstitution
Substitution createSubstitution(String name, Classifier contract)
Creates a newSubstitution
, with the specified 'Name', and 'Contract', and appends it to the 'Substitution' containment reference list.- Parameters:
name
- The 'Name' for the newSubstitution
, ornull
.contract
- The 'Contract' for the newSubstitution
, ornull
.- Returns:
- The new
Substitution
. - See Also:
getSubstitutions()
-
getSubstitution
Substitution getSubstitution(String name, Classifier contract)
Retrieves the firstSubstitution
with the specified 'Name', and ' Contract' from the 'Substitution' containment reference list.- Parameters:
name
- The 'Name' of theSubstitution
to retrieve, ornull
.contract
- The 'Contract' of theSubstitution
to retrieve, ornull
.- Returns:
- The first
Substitution
with the specified 'Name', and 'Contract ', ornull
. - See Also:
getSubstitutions()
-
getSubstitution
Substitution getSubstitution(String name, Classifier contract, boolean ignoreCase, boolean createOnDemand)
Retrieves the firstSubstitution
with the specified 'Name', and ' Contract' from the 'Substitution' containment reference list.- Parameters:
name
- The 'Name' of theSubstitution
to retrieve, ornull
.contract
- The 'Contract' of theSubstitution
to retrieve, ornull
.ignoreCase
- Whether to ignore case inString
comparisons.createOnDemand
- Whether to create aSubstitution
on demand if not found.- Returns:
- The first
Substitution
with the specified 'Name', and 'Contract ', ornull
. - See Also:
getSubstitutions()
-
getAttributes
MDWEList<Property> getAttributes()
Returns the value of the 'Attribute' reference list. The list contents are of typeProperty
. Refers to all of the Properties that are direct (i.e. not inherited or imported) attributes of the classifier.- Returns:
- the value of the 'Attribute' reference list.
- See Also:
UMLPackage.getClassifier_Attribute()
-
getAttribute
Property getAttribute(String name, Type type)
Retrieves the firstProperty
with the specified 'Name', and 'Type' from the 'Attribute' reference list.- Parameters:
name
- The 'Name' of theProperty
to retrieve, ornull
.type
- The 'Type' of theProperty
to retrieve, ornull
.- Returns:
- The first
Property
with the specified 'Name', and 'Type', ornull
. - See Also:
getAttributes()
-
getAttribute
Property getAttribute(String name, Type type, boolean ignoreCase, org.eclipse.emf.ecore.EClass eClass)
Retrieves the firstProperty
with the specified 'Name', and 'Type' from the 'Attribute' reference list.- Parameters:
name
- The 'Name' of theProperty
to retrieve, ornull
.type
- The 'Type' of theProperty
to retrieve, ornull
.ignoreCase
- Whether to ignore case inString
comparisons.eClass
- The Ecore class of theProperty
to retrieve, ornull
.- Returns:
- The first
Property
with the specified 'Name', and 'Type', ornull
. - See Also:
getAttributes()
-
getRepresentation
CollaborationUse getRepresentation()
Returns the value of the 'Representation' reference. References a collaboration use which indicates the collaboration that represents this classifier.- Returns:
- the value of the 'Representation' reference.
- See Also:
setRepresentation(CollaborationUse)
,UMLPackage.getClassifier_Representation()
-
setRepresentation
void setRepresentation(CollaborationUse value)
Sets the value of the 'Representation
' reference.- Parameters:
value
- the new value of the 'Representation' reference.- See Also:
getRepresentation()
-
createRepresentation
CollaborationUse createRepresentation(String name)
Creates a newCollaborationUse
,with the specified 'Name', and sets the ' Representation' reference.- Parameters:
name
- The 'Name' for the newCollaborationUse
, ornull
.- Returns:
- The new
CollaborationUse
. - See Also:
getRepresentation()
-
getCollaborationUses
MDWEList<CollaborationUse> getCollaborationUses()
Returns the value of the 'Collaboration Use' containment reference list. The list contents are of typeCollaborationUse
. References the collaboration uses owned by the classifier.- Returns:
- the value of the 'Collaboration Use' containment reference list.
- See Also:
UMLPackage.getClassifier_CollaborationUse()
-
createCollaborationUse
CollaborationUse createCollaborationUse(String name)
Creates a newCollaborationUse
, with the specified 'Name', and appends it to the ' Collaboration Use' containment reference list.- Parameters:
name
- The 'Name' for the newCollaborationUse
, ornull
.- Returns:
- The new
CollaborationUse
. - See Also:
getCollaborationUses()
-
getCollaborationUse
CollaborationUse getCollaborationUse(String name)
Retrieves the firstCollaborationUse
with the specified 'Name' from the ' Collaboration Use' containment reference list.- Parameters:
name
- The 'Name' of theCollaborationUse
to retrieve, ornull
.- Returns:
- The first
CollaborationUse
with the specified 'Name', ornull
. - See Also:
getCollaborationUses()
-
getCollaborationUse
CollaborationUse getCollaborationUse(String name, boolean ignoreCase, boolean createOnDemand)
Retrieves the firstCollaborationUse
with the specified 'Name' from the ' Collaboration Use' containment reference list.- Parameters:
name
- The 'Name' of theCollaborationUse
to retrieve, ornull
.ignoreCase
- Whether to ignore case inString
comparisons.createOnDemand
- Whether to create aCollaborationUse
on demand if not found.- Returns:
- The first
CollaborationUse
with the specified 'Name', ornull
. - See Also:
getCollaborationUses()
-
validateNoCyclesInGeneralization
boolean validateNoCyclesInGeneralization(org.eclipse.emf.common.util.DiagnosticChain diagnostics, Map context)
Generalization hierarchies must be directed and acyclical. A classifier can not be both a transitively general and transitively specific classifier of the same classifier. not self.allParents()->includes(self)
-
validateSpecializeType
boolean validateSpecializeType(org.eclipse.emf.common.util.DiagnosticChain diagnostics, Map context)
A classifier may only specialize classifiers of a valid type. self.parents()->forAll(c | self.maySpecializeType(c))
-
validateGeneralizationHierarchies
boolean validateGeneralizationHierarchies(org.eclipse.emf.common.util.DiagnosticChain diagnostics, Map context)
Generalization hierarchies must be directed and acyclical. A classifier can not be both a transitively general and transitively specific classifier of the same classifier. not self.allParents()->includes(self)
-
validateMapsToGeneralizationSet
boolean validateMapsToGeneralizationSet(org.eclipse.emf.common.util.DiagnosticChain diagnostics, Map context)
The Classifier that maps to a GeneralizationSet may neither be a specific nor a general Classifier in any of the Generalization relationships defined for that GeneralizationSet. In other words, a power type may not be an instance of itself nor may its instances also be its subclasses. true
-
createGeneralization
Generalization createGeneralization(Classifier general)
Creates a newGeneralization
, with the specified 'General', and appends it to the ' Generalization' containment reference list.- Parameters:
general
- The 'General' for the newGeneralization
, ornull
.- Returns:
- The new
Generalization
. - See Also:
getGeneralizations()
-
getGeneralization
Generalization getGeneralization(Classifier general)
Retrieves the firstGeneralization
with the specified 'General' from the ' Generalization' containment reference list.- Parameters:
general
- The 'General' of theGeneralization
to retrieve, ornull
.- Returns:
- The first
Generalization
with the specified 'General', ornull
. - See Also:
getGeneralizations()
-
getGeneralization
Generalization getGeneralization(Classifier general, boolean createOnDemand)
Retrieves the firstGeneralization
with the specified 'General' from the ' Generalization' containment reference list.- Parameters:
general
- The 'General' of theGeneralization
to retrieve, ornull
.createOnDemand
- Whether to create aGeneralization
on demand if not found.- Returns:
- The first
Generalization
with the specified 'General', ornull
. - See Also:
getGeneralizations()
-
getAllAttributes
MDWEList<Property> getAllAttributes()
Retrieves all the attributes of this classifier, including those inherited from its parents.
-
getAllOperations
MDWEList<Operation> getAllOperations()
Retrieves all the operations of this classifier, including those inherited from its parents.
-
getOperation
Operation getOperation(String name, MDWEList<String> parameterNames, MDWEList<? extends Type> parameterTypes)
Retrieves the first operation with the specified name, parameter names, and parameter types from this classifier.
-
getOperation
Operation getOperation(String name, MDWEList<String> parameterNames, MDWEList<? extends Type> parameterTypes, boolean ignoreCase)
Retrieves the first operation with the specified name, parameter names, and parameter types from this classifier, ignoring case if indicated.
-
getUsedInterfaces
MDWEList<Interface> getUsedInterfaces()
Retrieves the interfaces on which this classifier has a usage dependency.
-
getAllUsedInterfaces
MDWEList<Interface> getAllUsedInterfaces()
Retrieves all the interfaces on which this classifier or any of its parents has a usage dependency.
-
maySpecializeType
boolean maySpecializeType(Classifier c)
The query maySpecializeType() determines whether this classifier may have a generalization relationship to classifiers of the specified type. By default a classifier may specialize classifiers of the same or a more general type. It is intended to be redefined by classifiers that have different specialization constraints. result = self.oclIsKindOf(c.oclType)
-
allFeatures
MDWEList<Feature> allFeatures()
The query allFeatures() gives all of the features in the namespace of the classifier. In general, through mechanisms such as inheritance, this will be a larger set than feature. result = member->select(oclIsKindOf(Feature))
-
parents
MDWEList<Classifier> parents()
The query parents() gives all of the immediate ancestors of a generalized Classifier. result = generalization.general
-
inheritableMembers
MDWEList<NamedElement> inheritableMembers(Classifier c)
The query inheritableMembers() gives all of the members of a classifier that may be inherited in one of its descendants, subject to whatever visibility restrictions apply. c.allParents()->includes(self) result = member->select(m | c.hasVisibilityOf(m))
-
hasVisibilityOf
boolean hasVisibilityOf(NamedElement n)
The query hasVisibilityOf() determines whether a named element is visible in the classifier. By default all are visible. It is only called when the argument is something owned by a parent. self.allParents()->collect(c | c.member)->includes(n) result = if (self.inheritedMember->includes(n)) then (n.visibility <> #private) else true
-
conformsTo
boolean conformsTo(Classifier other)
The query conformsTo() gives true for a classifier that defines a type that conforms to another. This is used, for example, in the specification of signature conformance for operations. result = (self=other) or (self.allParents()->includes(other))
-
inherit
MDWEList<NamedElement> inherit(MDWEList<NamedElement> inhs)
The inherit operation is overridden to exclude redefined properties. The query inherit() defines how to inherit a set of elements. Here the operation is defined to inherit them all. It is intended to be redefined in circumstances where inheritance is affected by redefinition. result = inhs
-
allParents
MDWEList<Classifier> allParents()
The query allParents() gives all of the direct and indirect ancestors of a generalized Classifier. result = self.parents()->union(self.parents()->collect(p | p.allParents())
-
isFinalSpecialization
boolean isFinalSpecialization()
Returns the 'isFinalSpecialization' value for the current Classifier.
for UML 2.3 or higher- Returns:
- boolean
- Since:
- 3.9.0
-
setIsFinalSpecialization
void setIsFinalSpecialization(boolean isFinalSpecialization)
Set the 'isFinalSpecialization' value for the current Classifier.
for UML 2.3 or higher- Parameters:
isFinalSpecialization
- boolean value- Since:
- 3.9.0
-
-