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.booleanconformsTo(Classifier other)The query conformsTo() gives true for a classifier that defines a type that conforms to another.CollaborationUsecreateCollaborationUse(String name)Creates a newCollaborationUse, with the specified 'Name', and appends it to the ' Collaboration Use' containment reference list.GeneralizationcreateGeneralization(Classifier general)Creates a newGeneralization, with the specified 'General', and appends it to the ' Generalization' containment reference list.UseCasecreateOwnedUseCase(String name)Creates a newUseCase, with the specified 'Name', and appends it to the ' Owned Use Case' containment reference list.CollaborationUsecreateRepresentation(String name)Creates a newCollaborationUse,with the specified 'Name', and sets the ' Representation' reference.SubstitutioncreateSubstitution(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.PropertygetAttribute(String name, Type type)Retrieves the firstPropertywith the specified 'Name', and 'Type' from the 'Attribute' reference list.PropertygetAttribute(String name, Type type, boolean ignoreCase, org.eclipse.emf.ecore.EClass eClass)Retrieves the firstPropertywith the specified 'Name', and 'Type' from the 'Attribute' reference list.MDWEList<Property>getAttributes()Returns the value of the 'Attribute' reference list.CollaborationUsegetCollaborationUse(String name)Retrieves the firstCollaborationUsewith the specified 'Name' from the ' Collaboration Use' containment reference list.CollaborationUsegetCollaborationUse(String name, boolean ignoreCase, boolean createOnDemand)Retrieves the firstCollaborationUsewith the specified 'Name' from the ' Collaboration Use' containment reference list.MDWEList<CollaborationUse>getCollaborationUses()Returns the value of the 'Collaboration Use' containment reference list.FeaturegetFeature(String name)Retrieves the firstFeaturewith the specified 'Name' from the 'Feature' reference list.FeaturegetFeature(String name, boolean ignoreCase, org.eclipse.emf.ecore.EClass eClass)Retrieves the firstFeaturewith the specified 'Name' from the 'Feature' reference list.MDWEList<Feature>getFeatures()Returns the value of the 'Feature' reference list.ClassifiergetGeneral(String name)Retrieves the firstClassifierwith the specified 'Name' from the ' General' reference list.ClassifiergetGeneral(String name, boolean ignoreCase, org.eclipse.emf.ecore.EClass eClass)Retrieves the firstClassifierwith the specified 'Name' from the ' General' reference list.GeneralizationgetGeneralization(Classifier general)Retrieves the firstGeneralizationwith the specified 'General' from the ' Generalization' containment reference list.GeneralizationgetGeneralization(Classifier general, boolean createOnDemand)Retrieves the firstGeneralizationwith 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.NamedElementgetInheritedMember(String name)Retrieves the firstNamedElementwith the specified 'Name' from the ' Inherited Member' reference list.NamedElementgetInheritedMember(String name, boolean ignoreCase, org.eclipse.emf.ecore.EClass eClass)Retrieves the firstNamedElementwith the specified 'Name' from the ' Inherited Member' reference list.MDWEList<NamedElement>getInheritedMembers()Returns the value of the 'Inherited Member' reference list.OperationgetOperation(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.OperationgetOperation(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.UseCasegetOwnedUseCase(String name)Retrieves the firstUseCasewith the specified 'Name' from the ' Owned Use Case' containment reference list.UseCasegetOwnedUseCase(String name, boolean ignoreCase, boolean createOnDemand)Retrieves the firstUseCasewith 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.GeneralizationSetgetPowertypeExtent(String name)Retrieves the firstGeneralizationSetwith the specified 'Name' from the ' Powertype Extent' reference list.GeneralizationSetgetPowertypeExtent(String name, boolean ignoreCase)Retrieves the firstGeneralizationSetwith the specified 'Name' from the ' Powertype Extent' reference list.MDWEList<GeneralizationSet>getPowertypeExtents()Returns the value of the 'Powertype Extent' reference list.ClassifiergetRedefinedClassifier(String name)Retrieves the firstClassifierwith the specified 'Name' from the ' Redefined Classifier' reference list.ClassifiergetRedefinedClassifier(String name, boolean ignoreCase, org.eclipse.emf.ecore.EClass eClass)Retrieves the firstClassifierwith the specified 'Name' from the ' Redefined Classifier' reference list.MDWEList<Classifier>getRedefinedClassifiers()Returns the value of the 'Redefined Classifier' reference list.CollaborationUsegetRepresentation()Returns the value of the 'Representation' reference.SubstitutiongetSubstitution(String name, Classifier contract)Retrieves the firstSubstitutionwith the specified 'Name', and ' Contract' from the 'Substitution' containment reference list.SubstitutiongetSubstitution(String name, Classifier contract, boolean ignoreCase, boolean createOnDemand)Retrieves the firstSubstitutionwith the specified 'Name', and ' Contract' from the 'Substitution' containment reference list.MDWEList<Substitution>getSubstitutions()Returns the value of the 'Substitution' containment reference list.UseCasegetUseCase(String name)Retrieves the firstUseCasewith the specified 'Name' from the 'Use Case ' reference list.UseCasegetUseCase(String name, boolean ignoreCase)Retrieves the firstUseCasewith 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.booleanhasVisibilityOf(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.booleanisAbstract()Returns the value of the 'Is Abstract' attribute.booleanisFinalSpecialization()Returns the 'isFinalSpecialization' value for the current Classifier.
for UML 2.3 or higherbooleanmaySpecializeType(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.voidsetIsAbstract(boolean value)Sets the value of the 'Is Abstract' attribute.voidsetIsFinalSpecialization(boolean isFinalSpecialization)Set the 'isFinalSpecialization' value for the current Classifier.
for UML 2.3 or highervoidsetRepresentation(CollaborationUse value)Sets the value of the 'Representation' reference.booleanvalidateGeneralizationHierarchies(org.eclipse.emf.common.util.DiagnosticChain diagnostics, Map context)Generalization hierarchies must be directed and acyclical.booleanvalidateMapsToGeneralizationSet(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.booleanvalidateNoCyclesInGeneralization(org.eclipse.emf.common.util.DiagnosticChain diagnostics, Map context)Generalization hierarchies must be directed and acyclical.booleanvalidateSpecializeType(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 firstGeneralizationSetwith the specified 'Name' from the ' Powertype Extent' reference list.- Parameters:
name- The 'Name' of theGeneralizationSetto retrieve, ornull.- Returns:
- The first
GeneralizationSetwith the specified 'Name', ornull. - See Also:
getPowertypeExtents()
-
getPowertypeExtent
GeneralizationSet getPowertypeExtent(String name, boolean ignoreCase)
Retrieves the firstGeneralizationSetwith the specified 'Name' from the ' Powertype Extent' reference list.- Parameters:
name- The 'Name' of theGeneralizationSetto retrieve, ornull.ignoreCase- Whether to ignore case inStringcomparisons.- Returns:
- The first
GeneralizationSetwith 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 firstFeaturewith the specified 'Name' from the 'Feature' reference list.- Parameters:
name- The 'Name' of theFeatureto retrieve, ornull.- Returns:
- The first
Featurewith the specified 'Name', ornull. - See Also:
getFeatures()
-
getFeature
Feature getFeature(String name, boolean ignoreCase, org.eclipse.emf.ecore.EClass eClass)
Retrieves the firstFeaturewith the specified 'Name' from the 'Feature' reference list.- Parameters:
name- The 'Name' of theFeatureto retrieve, ornull.ignoreCase- Whether to ignore case inStringcomparisons.eClass- The Ecore class of theFeatureto retrieve, ornull.- Returns:
- The first
Featurewith 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 firstNamedElementwith the specified 'Name' from the ' Inherited Member' reference list.- Parameters:
name- The 'Name' of theNamedElementto retrieve, ornull.- Returns:
- The first
NamedElementwith the specified 'Name', ornull. - See Also:
getInheritedMembers()
-
getInheritedMember
NamedElement getInheritedMember(String name, boolean ignoreCase, org.eclipse.emf.ecore.EClass eClass)
Retrieves the firstNamedElementwith the specified 'Name' from the ' Inherited Member' reference list.- Parameters:
name- The 'Name' of theNamedElementto retrieve, ornull.ignoreCase- Whether to ignore case inStringcomparisons.eClass- The Ecore class of theNamedElementto retrieve, ornull.- Returns:
- The first
NamedElementwith 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 firstClassifierwith the specified 'Name' from the ' Redefined Classifier' reference list.- Parameters:
name- The 'Name' of theClassifierto retrieve, ornull.- Returns:
- The first
Classifierwith the specified 'Name', ornull. - See Also:
getRedefinedClassifiers()
-
getRedefinedClassifier
Classifier getRedefinedClassifier(String name, boolean ignoreCase, org.eclipse.emf.ecore.EClass eClass)
Retrieves the firstClassifierwith the specified 'Name' from the ' Redefined Classifier' 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:
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 firstClassifierwith the specified 'Name' from the ' General' reference list.- Parameters:
name- The 'Name' of theClassifierto retrieve, ornull.- Returns:
- The first
Classifierwith the specified 'Name', ornull. - See Also:
getGenerals()
-
getGeneral
Classifier getGeneral(String name, boolean ignoreCase, org.eclipse.emf.ecore.EClass eClass)
Retrieves the firstClassifierwith the specified 'Name' from the ' General' 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:
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 firstUseCasewith the specified 'Name' from the ' Owned Use Case' containment reference list.- Parameters:
name- The 'Name' of theUseCaseto retrieve, ornull.- Returns:
- The first
UseCasewith the specified 'Name', ornull. - See Also:
getOwnedUseCases()
-
getOwnedUseCase
UseCase getOwnedUseCase(String name, boolean ignoreCase, boolean createOnDemand)
Retrieves the firstUseCasewith the specified 'Name' from the ' Owned Use Case' containment reference list.- Parameters:
name- The 'Name' of theUseCaseto retrieve, ornull.ignoreCase- Whether to ignore case inStringcomparisons.createOnDemand- Whether to create aUseCaseon demand if not found.- Returns:
- The first
UseCasewith 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 firstUseCasewith the specified 'Name' from the 'Use Case ' reference list.- Parameters:
name- The 'Name' of theUseCaseto retrieve, ornull.- Returns:
- The first
UseCasewith the specified 'Name', ornull. - See Also:
getUseCases()
-
getUseCase
UseCase getUseCase(String name, boolean ignoreCase)
Retrieves the firstUseCasewith the specified 'Name' from the 'Use Case ' reference list.- Parameters:
name- The 'Name' of theUseCaseto retrieve, ornull.ignoreCase- Whether to ignore case inStringcomparisons.- Returns:
- The first
UseCasewith 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 firstSubstitutionwith the specified 'Name', and ' Contract' from the 'Substitution' containment reference list.- Parameters:
name- The 'Name' of theSubstitutionto retrieve, ornull.contract- The 'Contract' of theSubstitutionto retrieve, ornull.- Returns:
- The first
Substitutionwith the specified 'Name', and 'Contract ', ornull. - See Also:
getSubstitutions()
-
getSubstitution
Substitution getSubstitution(String name, Classifier contract, boolean ignoreCase, boolean createOnDemand)
Retrieves the firstSubstitutionwith the specified 'Name', and ' Contract' from the 'Substitution' containment reference list.- Parameters:
name- The 'Name' of theSubstitutionto retrieve, ornull.contract- The 'Contract' of theSubstitutionto retrieve, ornull.ignoreCase- Whether to ignore case inStringcomparisons.createOnDemand- Whether to create aSubstitutionon demand if not found.- Returns:
- The first
Substitutionwith 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 firstPropertywith the specified 'Name', and 'Type' from the 'Attribute' reference list.- Parameters:
name- The 'Name' of thePropertyto retrieve, ornull.type- The 'Type' of thePropertyto retrieve, ornull.- Returns:
- The first
Propertywith 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 firstPropertywith the specified 'Name', and 'Type' from the 'Attribute' reference list.- Parameters:
name- The 'Name' of thePropertyto retrieve, ornull.type- The 'Type' of thePropertyto retrieve, ornull.ignoreCase- Whether to ignore case inStringcomparisons.eClass- The Ecore class of thePropertyto retrieve, ornull.- Returns:
- The first
Propertywith 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 firstCollaborationUsewith the specified 'Name' from the ' Collaboration Use' containment reference list.- Parameters:
name- The 'Name' of theCollaborationUseto retrieve, ornull.- Returns:
- The first
CollaborationUsewith the specified 'Name', ornull. - See Also:
getCollaborationUses()
-
getCollaborationUse
CollaborationUse getCollaborationUse(String name, boolean ignoreCase, boolean createOnDemand)
Retrieves the firstCollaborationUsewith the specified 'Name' from the ' Collaboration Use' containment reference list.- Parameters:
name- The 'Name' of theCollaborationUseto retrieve, ornull.ignoreCase- Whether to ignore case inStringcomparisons.createOnDemand- Whether to create aCollaborationUseon demand if not found.- Returns:
- The first
CollaborationUsewith 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 firstGeneralizationwith the specified 'General' from the ' Generalization' containment reference list.- Parameters:
general- The 'General' of theGeneralizationto retrieve, ornull.- Returns:
- The first
Generalizationwith the specified 'General', ornull. - See Also:
getGeneralizations()
-
getGeneralization
Generalization getGeneralization(Classifier general, boolean createOnDemand)
Retrieves the firstGeneralizationwith the specified 'General' from the ' Generalization' containment reference list.- Parameters:
general- The 'General' of theGeneralizationto retrieve, ornull.createOnDemand- Whether to create aGeneralizationon demand if not found.- Returns:
- The first
Generalizationwith 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
-
-