Package com.sodius.mdw.metamodel.uml21
Interface Generalization
-
- All Superinterfaces:
Comparable<Object>
,DirectedRelationship
,Element
,org.eclipse.emf.ecore.EModelElement
,org.eclipse.emf.ecore.EObject
,MDWEObject
,MDWObject
,org.eclipse.emf.common.notify.Notifier
,Relationship
public interface Generalization extends DirectedRelationship
A representation of the model object 'Generalization'. A generalization is a taxonomic relationship between a more general classifier and a more specific classifier. Each instance of the specific classifier is also an indirect instance of the general classifier. Thus, the specific classifier inherits the features of the more general classifier. A generalization relates a specific classifier to a more general classifier, and is owned by the specific classifier.The following features are supported:
- See Also:
UMLPackage.getGeneralization()
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Classifier
getGeneral()
Returns the value of the 'General' reference.GeneralizationSet
getGeneralizationSet(String name)
Retrieves the firstGeneralizationSet
with the specified 'Name' from the ' Generalization Set' reference list.GeneralizationSet
getGeneralizationSet(String name, boolean ignoreCase)
Retrieves the firstGeneralizationSet
with the specified 'Name' from the ' Generalization Set' reference list.MDWEList<GeneralizationSet>
getGeneralizationSets()
Returns the value of the 'Generalization Set' reference list.Classifier
getSpecific()
Returns the value of the 'Specific' container reference.boolean
isSetIsSubstitutable()
Returns whether the value of the 'Is Substitutable
' attribute is set.boolean
isSubstitutable()
Returns the value of the 'Is Substitutable' attribute.void
setGeneral(Classifier value)
Sets the value of the 'General
' reference.void
setIsSubstitutable(boolean value)
Sets the value of the 'Is Substitutable
' attribute.void
setSpecific(Classifier value)
Sets the value of the 'Specific
' container reference.void
unsetIsSubstitutable()
Unsets the value of the 'Is Substitutable
' attribute.boolean
validateGeneralizationSameClassifier(org.eclipse.emf.common.util.DiagnosticChain diagnostics, Map context)
Every Generalization associated with a given GeneralizationSet must have the same general Classifier.-
Methods inherited from interface com.sodius.mdw.metamodel.uml21.DirectedRelationship
getSources, getTargets
-
Methods inherited from interface com.sodius.mdw.metamodel.uml21.Element
addKeyword, allOwnedElements, applyStereotype, createEAnnotation, createOwnedComment, destroy, getApplicableStereotype, getApplicableStereotypes, getAppliedStereotype, getAppliedStereotypes, getAppliedSubstereotype, getAppliedSubstereotypes, getKeywords, getModel, getNearestPackage, getOwnedComments, getOwnedElements, getOwner, getRelationships, getRelationships, getRequiredStereotype, getRequiredStereotypes, getSourceDirectedRelationships, getSourceDirectedRelationships, getStereotypeApplication, getStereotypeApplications, getTargetDirectedRelationships, getTargetDirectedRelationships, getValue, hasKeyword, hasValue, isStereotypeApplicable, isStereotypeApplied, isStereotypeRequired, mustBeOwned, removeKeyword, setValue, unapplyStereotype, validateHasOwner, validateNotOwnSelf
-
Methods inherited from interface org.eclipse.emf.ecore.EModelElement
getEAnnotation, getEAnnotations
-
Methods inherited from interface org.eclipse.emf.ecore.EObject
eAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eInvoke, eIsProxy, eIsSet, eResource, eSet, eUnset
-
Methods inherited from interface com.sodius.mdw.core.model.MDWObject
compareTo, eExtendedClass, eIsInstanceOf, eIsInstanceOf, eIsProfiled, eIsRemoved, eMetamodel, eMetaTypeName, eModel, eRemove, eSetUniqueID, eUniqueID, superScript, superScript, toBoolean, toBoolean, toByte, toByte, toChar, toChar, toDouble, toDouble, toFloat, toFloat, toInt, toInt, toList, toList, toList, toList, toList, toLong, toLong, toObject, toObject, toSet, toSet, toShort, toShort, toString, toString
-
Methods inherited from interface org.eclipse.emf.common.notify.Notifier
eAdapters, eDeliver, eNotify, eSetDeliver
-
Methods inherited from interface com.sodius.mdw.metamodel.uml21.Relationship
getRelatedElements
-
-
-
-
Method Detail
-
isSubstitutable
boolean isSubstitutable()
Returns the value of the 'Is Substitutable' attribute. Indicates whether the specific classifier can be used wherever the general classifier can be used. If true, the execution traces of the specific classifier will be a superset of the execution traces of the general classifier.- Returns:
- the value of the 'Is Substitutable' attribute.
- See Also:
isSetIsSubstitutable()
,unsetIsSubstitutable()
,setIsSubstitutable(boolean)
,UMLPackage.getGeneralization_IsSubstitutable()
-
setIsSubstitutable
void setIsSubstitutable(boolean value)
Sets the value of the 'Is Substitutable
' attribute.- Parameters:
value
- the new value of the 'Is Substitutable' attribute.- See Also:
isSetIsSubstitutable()
,unsetIsSubstitutable()
,isSubstitutable()
-
unsetIsSubstitutable
void unsetIsSubstitutable()
Unsets the value of the 'Is Substitutable
' attribute.
-
isSetIsSubstitutable
boolean isSetIsSubstitutable()
Returns whether the value of the 'Is Substitutable
' attribute is set.- Returns:
- whether the value of the 'Is Substitutable' attribute is set.
- See Also:
unsetIsSubstitutable()
,isSubstitutable()
,setIsSubstitutable(boolean)
-
getGeneral
Classifier getGeneral()
Returns the value of the 'General' reference. References the general classifier in the Generalization relationship.- Returns:
- the value of the 'General' reference.
- See Also:
setGeneral(Classifier)
,UMLPackage.getGeneralization_General()
-
setGeneral
void setGeneral(Classifier value)
Sets the value of the 'General
' reference.- Parameters:
value
- the new value of the 'General' reference.- See Also:
getGeneral()
-
getGeneralizationSets
MDWEList<GeneralizationSet> getGeneralizationSets()
Returns the value of the 'Generalization Set' reference list. The list contents are of typeGeneralizationSet
. It is bidirectional and its opposite is 'Generalization
'. Designates a set in which instances of Generalization is considered members.- Returns:
- the value of the 'Generalization Set' reference list.
- See Also:
UMLPackage.getGeneralization_GeneralizationSet()
,GeneralizationSet.getGeneralizations()
-
getGeneralizationSet
GeneralizationSet getGeneralizationSet(String name)
Retrieves the firstGeneralizationSet
with the specified 'Name' from the ' Generalization Set' reference list.- Parameters:
name
- The 'Name' of theGeneralizationSet
to retrieve, ornull
.- Returns:
- The first
GeneralizationSet
with the specified 'Name', ornull
. - See Also:
getGeneralizationSets()
-
getGeneralizationSet
GeneralizationSet getGeneralizationSet(String name, boolean ignoreCase)
Retrieves the firstGeneralizationSet
with the specified 'Name' from the ' Generalization Set' 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:
getGeneralizationSets()
-
getSpecific
Classifier getSpecific()
Returns the value of the 'Specific' container reference. It is bidirectional and its opposite is 'Generalization
'. References the specializing classifier in the Generalization relationship.- Returns:
- the value of the 'Specific' container reference.
- See Also:
setSpecific(Classifier)
,UMLPackage.getGeneralization_Specific()
,Classifier.getGeneralizations()
-
setSpecific
void setSpecific(Classifier value)
Sets the value of the 'Specific
' container reference.- Parameters:
value
- the new value of the 'Specific' container reference.- See Also:
getSpecific()
-
validateGeneralizationSameClassifier
boolean validateGeneralizationSameClassifier(org.eclipse.emf.common.util.DiagnosticChain diagnostics, Map context)
Every Generalization associated with a given GeneralizationSet must have the same general Classifier. That is, all Generalizations for a particular GeneralizationSet must have the same superclass. true
-
-