Interface Generalization
-
- All Superinterfaces:
BaseElement
,java.lang.Cloneable
,java.lang.Comparable
,DirectedRelationship
,Element
,org.eclipse.emf.ecore.EObject
,MDObject
,ModelObject
,org.eclipse.emf.common.notify.Notifier
,javax.jmi.reflect.RefBaseObject
,javax.jmi.reflect.RefFeatured
,javax.jmi.reflect.RefObject
,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 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:
UMLPackage.getGeneralization()
- Model:
- annotation="MOF package='classes.mdkernel'"
- Generated:
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Classifier
getGeneral()
Returns the value of the 'General' reference.java.util.Collection<GeneralizationSet>
getGeneralizationSet()
Returns the value of the 'Generalization Set' reference list.Classifier
getSpecific()
Returns the value of the 'Specific' container reference.boolean
hasGeneralizationSet()
boolean
isSubstitutable()
Returns the value of the 'Substitutable' attribute.void
setGeneral(Classifier value)
Sets the value of the 'General
' reference.void
setSpecific(Classifier value)
Sets the value of the 'Specific
' container reference.void
setSubstitutable(boolean value)
Sets the value of the 'Substitutable
' attribute.-
Methods inherited from interface com.nomagic.magicdraw.uml.BaseElement
accept, addPropertyChangeListener, atInsert, canAdd, canAdd, canAddChild, canAddInstance, canBeDeleted, canChangeParent, canDeleteChild, clone, dispose, firePropertyChange, getClassType, getHumanName, getHumanType, getObjectParent, isEditable, isParentOf, removeAllPropertyChangeListeners, removePropertyChangeListener, sGetID
-
Methods inherited from interface com.nomagic.uml2.ext.magicdraw.classes.mdkernel.DirectedRelationship
getSource, getTarget, hasSource, hasTarget
-
Methods 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, setSyncElement
-
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.nomagic.magicdraw.foundation.MDObject
getID, getMDExtension, getMdExtensions, setID
-
Methods inherited from interface com.nomagic.uml2.ext.magicdraw.base.ModelObject
get_representationText, getLocalID, ignoringRefGetValue, ignoringRefGetValue, isInvalid, isSet, refGetValue, refGetValue, refSetValue, refSetValue, set_representationText, setLocalID, sGetLocalID
-
Methods inherited from interface org.eclipse.emf.common.notify.Notifier
eAdapters, eDeliver, eNotify, eSetDeliver
-
Methods inherited from interface javax.jmi.reflect.RefBaseObject
equals, hashCode, refImmediatePackage, refMetaObject, refMofId, refOutermostPackage, refVerifyConstraints
-
Methods inherited from interface javax.jmi.reflect.RefFeatured
refGetValue, refInvokeOperation, refInvokeOperation, refSetValue
-
Methods inherited from interface javax.jmi.reflect.RefObject
refClass, refDelete, refImmediateComposite, refIsInstanceOf, refOutermostComposite
-
Methods inherited from interface com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Relationship
get_abstraction, getRelatedElement, has_abstraction, hasRelatedElement
-
-
-
-
Method Detail
-
getGeneral
@CheckForNull Classifier 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:
setGeneral(Classifier)
,UMLPackage.getGeneralization_General()
,Classifier.get_generalizationOfGeneral()
- Model:
- opposite="_generalizationOfGeneral" required="true" ordered="false"
- Generated:
-
setGeneral
void setGeneral(@CheckForNull Classifier value)
Sets the value of the 'General
' reference.- Parameters:
value
- the new value of the 'General' reference.- See Also:
getGeneral()
- Generated:
-
getGeneralizationSet
java.util.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:
UMLPackage.getGeneralization_GeneralizationSet()
,GeneralizationSet.getGeneralization()
- 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:
isSubstitutable()
- Generated:
-
getSpecific
@CheckForNull Classifier 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:
setSpecific(Classifier)
,UMLPackage.getGeneralization_Specific()
,Classifier.getGeneralization()
- Model:
- opposite="generalization" required="true" transient="false" ordered="false"
- Generated:
-
setSpecific
void setSpecific(@CheckForNull Classifier value)
Sets the value of the 'Specific
' container reference.- Parameters:
value
- the new value of the 'Specific' container reference.- See Also:
getSpecific()
- Generated:
-
hasGeneralizationSet
boolean hasGeneralizationSet() throws javax.jmi.reflect.JmiException
- Throws:
javax.jmi.reflect.JmiException
- Generated:
-
-