Interface Generalization
- All Superinterfaces:
BaseElement,Cloneable,Comparable,DirectedRelationship,Element,org.eclipse.emf.ecore.EObject,MDObject,com.dassault_systemes.modeler.foundation.model.ModelElement,ModelObject,org.eclipse.emf.common.notify.Notifier,javax.jmi.reflect.RefBaseObject,javax.jmi.reflect.RefFeatured,javax.jmi.reflect.RefObject,Relationship
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 instance of the general Classifier. The specific Classifier inherits the features of the more general Classifier. A Generalization is owned by the specific Classifier.
The following features are supported:
- See Also:
- Model:
- annotation="MOF package='classes.mdkernel'"
- Generated:
-
Method Summary
Modifier and TypeMethodDescriptionReturns the value of the 'General' reference.Returns the value of the 'Generalization Set' reference list.Returns the value of the 'Specific' container reference.booleanbooleanReturns the value of the 'Substitutable' attribute.voidsetGeneral(Classifier value) Sets the value of the 'General' reference.voidsetSpecific(Classifier value) Sets the value of the 'Specific' container reference.voidsetSubstitutable(boolean value) Sets the value of the 'Substitutable' attribute.Methods inherited from interface com.nomagic.magicdraw.uml.BaseElement
accept, addPropertyChangeListener, canAdd, canAdd, canAddChild, canBeDeleted, firePropertyChange, getClassType, getHumanName, getHumanType, isEditable, removePropertyChangeListener, sGetIDMethods inherited from interface java.lang.Comparable
compareToMethods inherited from interface com.nomagic.uml2.ext.magicdraw.classes.mdkernel.DirectedRelationship
getSource, getTarget, hasSource, hasTargetMethods inherited from interface com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Element
get_activityPartitionOfRepresents, get_commentOfAnnotatedElement, get_constraintOfConstrainedElement, get_diagramOfContext, get_directedRelationshipOfSource, get_directedRelationshipOfTarget, get_elementOfSyncElement, get_elementTaggedValue, get_elementValueOfElement, get_relationshipOfRelatedElement, getAppliedStereotype, getOwnedComment, getOwnedElement, getOwner, getSyncElement, getTaggedValue, has_activityPartitionOfRepresents, has_commentOfAnnotatedElement, has_constraintOfConstrainedElement, has_diagramOfContext, has_directedRelationshipOfSource, has_directedRelationshipOfTarget, has_elementOfSyncElement, has_elementValueOfElement, has_relationshipOfRelatedElement, hasAppliedStereotype, hasElementTaggedValue, hasOwnedComment, hasOwnedElement, hasTaggedValue, setOwner, setSyncElementMethods inherited from interface org.eclipse.emf.ecore.EObject
eAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eInvoke, eIsProxy, eIsSet, eResource, eSet, eUnsetMethods inherited from interface com.nomagic.magicdraw.foundation.MDObject
getID, getMDExtension, getMdExtensions, setIDMethods inherited from interface com.dassault_systemes.modeler.foundation.model.ModelElement
canChangeElementOwner, eDynamicGet, getElementOwner, getLocalID, getObjectParent, selfDispose, setLocalID, sGetLocalIDMethods inherited from interface com.nomagic.uml2.ext.magicdraw.base.ModelObject
get_representationText, ignoringRefGetValue, ignoringRefGetValue, isSet, refGetValue, refGetValue, refSetValue, refSetValue, set_representationTextMethods inherited from interface org.eclipse.emf.common.notify.Notifier
eAdapters, eDeliver, eNotify, eSetDeliverMethods inherited from interface javax.jmi.reflect.RefBaseObject
equals, hashCode, refImmediatePackage, refMetaObject, refMofId, refOutermostPackage, refVerifyConstraintsMethods inherited from interface javax.jmi.reflect.RefFeatured
refGetValue, refInvokeOperation, refInvokeOperation, refSetValueMethods inherited from interface javax.jmi.reflect.RefObject
refClass, refDelete, refImmediateComposite, refIsInstanceOf, refOutermostCompositeMethods inherited from interface com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Relationship
get_abstraction, getRelatedElement, has_abstraction, hasRelatedElement
-
Method Details
-
getGeneral
Returns the value of the 'General' reference. It is bidirectional and its opposite is 'generalization Of General'. The general classifier in the Generalization relationship.- Returns:
- the value of the 'General' reference.
- See Also:
- Model:
- opposite="_generalizationOfGeneral" required="true" ordered="false"
- Generated:
-
setGeneral
Sets the value of the 'General' reference.- Parameters:
value- the new value of the 'General' reference.- See Also:
- Generated:
-
getGeneralizationSet
Collection<GeneralizationSet> getGeneralizationSet()Returns the value of the 'Generalization Set' reference list. The list contents are of typeGeneralizationSet. It is bidirectional and its opposite is 'Generalization'. Represents a set of instances of Generalization. A Generalization may appear in many GeneralizationSets.- Returns:
- the value of the 'Generalization Set' reference list.
- See Also:
- Model:
- opposite="generalization" ordered="false"
- Generated:
-
isSubstitutable
boolean isSubstitutable()Returns the value of the 'Substitutable' attribute. The default value is"true". Indicates whether the specific Classifier can be used wherever the general Classifier can be used. If true, the execution traces of the specific Classifier shall be a superset of the execution traces of the general Classifier. If false, there is no such constraint on execution traces. If unset, the modeler has not stated whether there is such a constraint or not.- Returns:
- the value of the 'Substitutable' attribute.
- See Also:
-
setSubstitutable(boolean)com.nomagic.uml2.ext.magicdraw.metadata.UMLPackage#getGeneralization_Substitutable()
- Model:
- default="true" dataType="com.nomagic.uml2.ext.magicdraw.Boolean" ordered="false"
- Generated:
-
setSubstitutable
void setSubstitutable(boolean value) Sets the value of the 'Substitutable' attribute.- Parameters:
value- the new value of the 'Substitutable' attribute.- See Also:
- Generated:
-
getSpecific
Returns the value of the 'Specific' container reference. It is bidirectional and its opposite is 'Generalization'. The specializing Classifier in the Generalization relationship.- Returns:
- the value of the 'Specific' container reference.
- See Also:
- Model:
- opposite="generalization" required="true" transient="false" ordered="false"
- Generated:
-
setSpecific
Sets the value of the 'Specific' container reference.- Parameters:
value- the new value of the 'Specific' container reference.- See Also:
- Generated:
-
hasGeneralizationSet
boolean hasGeneralizationSet() throws javax.jmi.reflect.JmiException- Throws:
javax.jmi.reflect.JmiException- Generated:
-