org.eclipse.uml2
Interface GeneralizationSet

All Superinterfaces:
Element, EModelElement, EObject, NamedElement, Notifier, PackageableElement, ParameterableElement, TemplateableElement

public interface GeneralizationSet
extends PackageableElement

A representation of the model object 'Generalization Set'. Each Generalization is a binary relationship that relates a specific Classifier to a more general Classifier (i.e., a subclass).

The following features are supported:

See Also:
UML2Package.getGeneralizationSet()

Field Summary
static String copyright
           
 
Fields inherited from interface org.eclipse.uml2.NamedElement
SEPARATOR
 
Method Summary
 EList 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
 
Methods inherited from interface org.eclipse.uml2.PackageableElement
getPackageableElement_visibility, getVisibility, setPackageableElement_visibility, setVisibility
 
Methods inherited from interface org.eclipse.uml2.NamedElement
allNamespaces, createNameExpression, getClientDependencies, getClientDependency, getName, getNameExpression, getNamespace, getOwnedElements, getOwner, getQualifiedName, isDistinguishableFrom, qualifiedName, separator, setName, setNameExpression, validateNoName, validateQualifiedName, validateVisibilityNeedsOwnership
 
Methods inherited from interface org.eclipse.uml2.TemplateableElement
createOwnedTemplateSignature, createTemplateBinding, getOwnedTemplateSignature, getTemplateBindings, parameterableElements, setOwnedTemplateSignature
 
Methods inherited from interface org.eclipse.uml2.Element
addKeyword, allOwnedElements, apply, createEAnnotation, createOwnedComment, destroy, getApplicableStereotype, getApplicableStereotypes, getAppliedStereotype, getAppliedStereotypes, getAppliedVersion, getKeywords, getModel, getNearestPackage, getOwnedComments, getValue, hasKeyword, isApplied, isRequired, mustBeOwned, removeKeyword, setValue, unapply, 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, 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.ParameterableElement
getOwner, getOwningParameter, getTemplateParameter, setOwningParameter, setTemplateParameter
 

Field Detail

copyright

public static final String copyright

See Also:
Constant Field Values
Method Detail

isCovering

public boolean isCovering()
Returns the value of the 'Is Covering' attribute.

If the meaning of the 'Is Covering' attribute isn't clear, there really should be more of a description here...

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. For example, Person could have two Generalization relationships each with a different specific Classifier: Male Person and Female Person. This GeneralizationSet would be covering because every instance of Person would be an instance of Male Person or Female Person. In contrast, Person could have a three Generalization relationships involving three specific Classifiers: North AmericanPerson, Asian Person, and European Person. This GeneralizationSet would not be covering because there are instances of Person for which these three specific Classifiers do not apply. The first example, then, could be read: any Person would be specialized as either being a Male Person or a Female Person�and nothing else; the second could be read: any Person would be specialized as being North American Person, Asian Person, European Person, or something else.

Returns:
the value of the 'Is Covering' attribute.
See Also:
setIsCovering(boolean), UML2Package.getGeneralizationSet_IsCovering()

setIsCovering

public void setIsCovering(boolean value)
Sets the value of the 'Is Covering' attribute.

Parameters:
value - the new value of the 'Is Covering' attribute.
See Also:
isCovering()

isDisjoint

public boolean isDisjoint()
Returns the value of the 'Is Disjoint' attribute.

If the meaning of the 'Is Disjoint' attribute isn't clear, there really should be more of a description here...

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 Generalization- Set would not be disjoint because there are instances of Person which can be a Sales Person and a Manager.

Returns:
the value of the 'Is Disjoint' attribute.
See Also:
setIsDisjoint(boolean), UML2Package.getGeneralizationSet_IsDisjoint()

setIsDisjoint

public void setIsDisjoint(boolean value)
Sets the value of the 'Is Disjoint' attribute.

Parameters:
value - the new value of the 'Is Disjoint' attribute.
See Also:
isDisjoint()

getPowertype

public Classifier getPowertype()
Returns the value of the 'Powertype' reference. It is bidirectional and its opposite is 'Powertype Extent'.

If the meaning of the 'Powertype' reference isn't clear, there really should be more of a description here...

Returns:
the value of the 'Powertype' reference.
See Also:
setPowertype(Classifier), UML2Package.getGeneralizationSet_Powertype(), Classifier.getPowertypeExtents()

setPowertype

public void setPowertype(Classifier value)
Sets the value of the 'Powertype' reference.

Parameters:
value - the new value of the 'Powertype' reference.
See Also:
getPowertype()

getGeneralizations

public EList getGeneralizations()
Returns the value of the 'Generalization' reference list. The list contents are of type Generalization. It is bidirectional and its opposite is 'Generalization Set'.

If the meaning of the 'Generalization' reference list isn't clear, there really should be more of a description here...

Returns:
the value of the 'Generalization' reference list.
See Also:
UML2Package.getGeneralizationSet_Generalization(), Generalization.getGeneralizationSets()

Copyright 2003, 2004 IBM Corporation and others.
All Rights Reserved.