public interface Generalization extends DirectedRelationship
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:
UMLPackage.getGeneralization()
Modifier and Type | Method and 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. |
getSource, getTarget, hasSource, hasTarget
get_abstraction, getRelatedElement, has_abstraction, hasRelatedElement
get_activityPartitionOfRepresents, get_commentOfAnnotatedElement, get_constraintOfConstrainedElement, get_diagramOfContext, get_directedRelationshipOfSource, get_directedRelationshipOfTarget, get_elementOfSyncElement, get_elementValueOfElement, get_relationshipOfRelatedElement, getAppliedStereotypeInstance, getOwnedComment, getOwnedElement, getOwner, getSyncElement, has_activityPartitionOfRepresents, has_commentOfAnnotatedElement, has_constraintOfConstrainedElement, has_diagramOfContext, has_directedRelationshipOfSource, has_directedRelationshipOfTarget, has_elementOfSyncElement, has_elementValueOfElement, has_relationshipOfRelatedElement, hasOwnedComment, hasOwnedElement, setAppliedStereotypeInstance, setOwner, setSyncElement
get_representationText, getLocalID, isInvalid, set_representationText, setLocalID, sGetLocalID
getID, getMDExtension, getMdExtensions, setID
eAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eInvoke, eIsProxy, eIsSet, eResource, eSet, eUnset
eAdapters, eDeliver, eNotify, eSetDeliver
accept, addPropertyChangeListener, canAdd, canAdd, canAddChild, canBeDeleted, firePropertyChange, getClassType, getHumanName, getHumanType, getObjectParent, isEditable, removePropertyChangeListener, sGetID
refClass, refDelete, refImmediateComposite, refIsInstanceOf, refOutermostComposite
@CheckForNull Classifier getGeneral()
generalization Of General
'.
The general classifier in the Generalization relationship.
setGeneral(Classifier)
,
UMLPackage.getGeneralization_General()
,
Classifier.get_generalizationOfGeneral()
void setGeneral(@CheckForNull Classifier value)
General
' reference.
value
- the new value of the 'General' reference.getGeneral()
java.util.Collection<GeneralizationSet> getGeneralizationSet()
GeneralizationSet
.
It is bidirectional and its opposite is 'Generalization
'.
Represents a set of instances of Generalization. A Generalization may appear in many GeneralizationSets.
UMLPackage.getGeneralization_GeneralizationSet()
,
GeneralizationSet.getGeneralization()
boolean isSubstitutable()
"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.
setSubstitutable(boolean)
,
UMLPackage.getGeneralization_Substitutable()
void setSubstitutable(boolean value)
Substitutable
' attribute.
value
- the new value of the 'Substitutable' attribute.isSubstitutable()
@CheckForNull Classifier getSpecific()
Generalization
'.
The specializing Classifier in the Generalization relationship.
setSpecific(Classifier)
,
UMLPackage.getGeneralization_Specific()
,
Classifier.getGeneralization()
void setSpecific(@CheckForNull Classifier value)
Specific
' container reference.
value
- the new value of the 'Specific' container reference.getSpecific()
boolean hasGeneralizationSet() throws javax.jmi.reflect.JmiException
javax.jmi.reflect.JmiException