UML.Semantic.Foundation.Core
Class Generalization

java.lang.Object
  |
  +--UML.Semantic.Foundation.Core.ModelElement
        |
        +--UML.Semantic.Foundation.Core.Generalization
All Implemented Interfaces:
Element, ElementAtt, LinkAtt

public class Generalization
extends ModelElement

A generalization is a taxonomic relationship between a more general element and a more specific element. The more specific element is fully consistent with the more general element (it has all of its properties, members, and relationships) and may contain additional information.

In the metamodel a Generalization is a directed inheritance relationship, uniting a GeneralizableElement with a more general GeneralizableElement in a hierarchy. Generalization is a subtyping relationship, i.e. an Instance of the more general GeneralizableElement may be substituted by an Instance of the more specific GeneralizableElement.


Constructor Summary
Generalization()
          Constructor.
 
Method Summary
 boolean check()
          Checks if well-formedness rules are respected in this model element.
 java.lang.String getDiscriminator()
          Gets the generalization discriminator.
 void getInfo()
          Gets info on Generalization.
 GeneralizableElement getSubtype()
          Gets the subtype of this generalization.
 GeneralizableElement getSupertype()
          Gets the supertype of this generalization.
 void setDiscriminator(java.lang.String disc)
          Sets the generalization discriminator to given value.
 void setSubtype(java.lang.String subtype)
          Sets the subtype of this generalization.
 void setSupertype(java.lang.String supertype)
          Sets the supertype of this generalization.
 
Methods inherited from class UML.Semantic.Foundation.Core.ModelElement
add, add, getBindingList, getConstraintList, getElementType, getErrors, getHref, getId, getIdentification, getIdref, getIndex, getIsOwned, getLabel, getLocator, getName, getNamespace, getNamespaceId, getStereotype, getTemplate, getTemplateParameterList, getTitle, getUuid, getUuidref, getVisibility, getVisibilitySymbol, getWarnings, setElementType, setErrors, setHref, setId, setIdref, setIndex, setIsOwned, setLabel, setName, setNamespace, setTemplate, setTitle, setUuid, setUuidref, setVisibility, setWarnings
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Generalization

public Generalization()
Constructor.

Method Detail

setDiscriminator

public void setDiscriminator(java.lang.String disc)
Sets the generalization discriminator to given value.


getDiscriminator

public java.lang.String getDiscriminator()
Gets the generalization discriminator.

Returns:
The discriminator string.

setSubtype

public void setSubtype(java.lang.String subtype)
Sets the subtype of this generalization.


getSubtype

public GeneralizableElement getSubtype()
Gets the subtype of this generalization.

Returns:
The subtype object.

setSupertype

public void setSupertype(java.lang.String supertype)
Sets the supertype of this generalization.


getSupertype

public GeneralizableElement getSupertype()
Gets the supertype of this generalization.

Returns:
The supertype object.

check

public boolean check()
Checks if well-formedness rules are respected in this model element.

Overrides:
check in class ModelElement
Returns:
True if check was successful, false otherwise.

getInfo

public void getInfo()
Gets info on Generalization.

Overrides:
getInfo in class ModelElement