FileDocCategorySizeDatePackage
UMLGeneralization.javaAPI DocExample1799Tue Dec 08 01:21:00 GMT 1998oisoft.togetherx.scriptapi.UML

UMLGeneralization.java

/*----------------------------------------------------------------------------
Copyright © 1998 Object International Software GmbH
----------------------------------------------------------------------------*/
package oisoft.togetherx.scriptapi.UML;

import oisoft.togetherx.scriptapi.UML.enums.*;

//------------------------------------------------------------------------------
/**Presents generalization.
 * A generalization is a relationship between a
 * more general and a more specific elements.
 * An instance of the more specific element may
 * be used wherever the more general.
 *
 * @version  2.1.05  20.07.1998
 * @author   Andrei Ivanov
 * @see UMLGeneralizableElement
 */
public interface UMLGeneralization  extends UMLLink
{
  /**
   * Returns more general element in the generalization
   * relationship.
   */
  UMLGeneralizableElement getSupertype();

  /**
   * Returns more specific element in the generalization
   * relationship.
   */
  UMLGeneralizableElement getSubtype();

  /**
   * Indicates whether this generalization
   * relationship is implementation one.
   * Implementation relationship is a special
   * case of generalization relationship, where more
   * general element is interface and more specific
   * element is class, that implements it.
   * <i>getLinkKind()</i> for implementation relationship
   * returns UMLLink.IMPLEMENTATION.
   * @return true, if this generalization is implementation.
   * @see UMLLink#IMPLEMENTATION
   * @see UMLLink#getLinkKind
   *
   */
  boolean                 isImplementation();

  /**@clientCardinality 1
  @supplierCardinality 1*/
  /*#  UMLGeneralizableElement lnkUnnamed*/
}
//------------------------------------------------------------------------------