|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface GeneralizationSet
A representation of the model object 'Generalization Set'. A generalization set is a packageable element whose instances define collections of subsets of generalization relationships.
The following features are supported:
UMLPackage.getGeneralizationSet()
Field Summary |
---|
Fields inherited from interface org.eclipse.uml2.uml.NamedElement |
---|
SEPARATOR |
Method Summary | |
---|---|
Generalization |
getGeneralization(Classifier general)
Retrieves the first Generalization with the specified 'General' from the 'Generalization' reference list |
org.eclipse.emf.common.util.EList<Generalization> |
getGeneralizations()
Returns the value of the 'Generalization' reference list. |
Classifier |
getPowertype()
Returns the value of the 'Powertype' reference. |
boolean |
isCovering()
Returns the value of the 'Is Covering' attribute. |
boolean |
isDisjoint()
Returns the value of the 'Is Disjoint' attribute. |
void |
setIsCovering(boolean value)
Sets the value of the ' Is Covering ' attribute |
void |
setIsDisjoint(boolean value)
Sets the value of the ' Is Disjoint ' attribute |
void |
setPowertype(Classifier value)
Sets the value of the ' Powertype ' reference |
boolean |
validateGeneralizationSameClassifier(org.eclipse.emf.common.util.DiagnosticChain diagnostics,
java.util.Map<java.lang.Object,java.lang.Object> context)
Every Generalization associated with a particular GeneralizationSet must have the same general Classifier. |
boolean |
validateMapsToGeneralizationSet(org.eclipse.emf.common.util.DiagnosticChain diagnostics,
java.util.Map<java.lang.Object,java.lang.Object> 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. |
Methods inherited from interface org.eclipse.uml2.uml.NamedElement |
---|
allNamespaces, allOwningPackages, createDependency, createNameExpression, createUsage, 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 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 org.eclipse.emf.common.notify.Notifier |
---|
eAdapters, eDeliver, eNotify, eSetDeliver |
Methods inherited from interface org.eclipse.uml2.uml.ParameterableElement |
---|
getOwningTemplateParameter, getTemplateParameter, isCompatibleWith, isTemplateParameter, setOwningTemplateParameter, setTemplateParameter |
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 org.eclipse.emf.common.notify.Notifier |
---|
eAdapters, eDeliver, eNotify, eSetDeliver |
Method Detail |
---|
boolean isCovering()
"false"
.
Indicates (via the associated Generalizations) whether or not the set of specific Classifiers are covering for a particular general classifier. When isCovering is true, every instance of a particular general Classifier is also an instance of at least one of its specific Classifiers for the GeneralizationSet. When isCovering is false, there are one or more instances of the particular general Classifier that are not instances of at least one of its specific Classifiers defined for the GeneralizationSet.
setIsCovering(boolean)
,
UMLPackage.getGeneralizationSet_IsCovering()
void setIsCovering(boolean value)
Is Covering
' attribute.
value
- the new value of the 'Is Covering' attribute.isCovering()
boolean isDisjoint()
"false"
.
Indicates whether or not the set of specific Classifiers in a Generalization relationship have instance in common. If isDisjoint is true, the specific Classifiers for a particular GeneralizationSet have no members in common; that is, their intersection is empty. If isDisjoint is false, the specific Classifiers in a particular GeneralizationSet have one or more members in common; that is, their intersection is not empty. For example, Person could have two Generalization relationships, each with the different specific Classifier: Manager or Staff. This would be disjoint because every instance of Person must either be a Manager or Staff. In contrast, Person could have two Generalization relationships involving two specific (and non-covering) Classifiers: Sales Person and Manager. This GeneralizationSet would not be disjoint because there are instances of Person which can be a Sales Person and a Manager.
setIsDisjoint(boolean)
,
UMLPackage.getGeneralizationSet_IsDisjoint()
void setIsDisjoint(boolean value)
Is Disjoint
' attribute.
value
- the new value of the 'Is Disjoint' attribute.isDisjoint()
Classifier getPowertype()
Powertype Extent
'.
Designates the Classifier that is defined as the power type for the associated GeneralizationSet.
setPowertype(Classifier)
,
UMLPackage.getGeneralizationSet_Powertype()
,
Classifier.getPowertypeExtents()
void setPowertype(Classifier value)
Powertype
' reference.
value
- the new value of the 'Powertype' reference.getPowertype()
org.eclipse.emf.common.util.EList<Generalization> getGeneralizations()
Generalization
.
It is bidirectional and its opposite is 'Generalization Set
'.
Designates the instances of Generalization which are members of a given GeneralizationSet.
UMLPackage.getGeneralizationSet_Generalization()
,
Generalization.getGeneralizationSets()
Generalization getGeneralization(Classifier general)
Generalization
with the specified 'General' from the 'Generalization' reference list.
general
- The 'General' of the Generalization
to retrieve, or null
.
Generalization
with the specified 'General', or null
.getGeneralizations()
boolean validateGeneralizationSameClassifier(org.eclipse.emf.common.util.DiagnosticChain diagnostics, java.util.Map<java.lang.Object,java.lang.Object> context)
diagnostics
- The chain of diagnostics to which problems are to be appended.context
- The cache of context-specific information.
boolean validateMapsToGeneralizationSet(org.eclipse.emf.common.util.DiagnosticChain diagnostics, java.util.Map<java.lang.Object,java.lang.Object> context)
diagnostics
- The chain of diagnostics to which problems are to be appended.context
- The cache of context-specific information.
|
Copyright 2003, 2007 IBM Corporation and others. All Rights Reserved. |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |