Interface IGeneralization

All Superinterfaces:
IElement, IEntity, IHyperlinkOwner, INamedElement

public interface IGeneralization extends INamedElement
Interface for Generalization.
  • Method Details

    • getSuperType

      IClass getSuperType()
      Get Super Type.
      Returns:
      Class
    • getSubType

      IClass getSubType()
      Get Sub Type.
      Returns:
      Class
    • setSuperType

      void setSuperType(IClass superType)
      Get Super Type.
      Parameters:
      superType - SuperType
      Throws:
      InvalidEditingException - InvalidEditingException occurs.
      Keys:
              ILLEGAL_VERSION_ERROR_KEY - if Editing API is used in astah* community.
              PARAMETER_ERROR_KEY - if a parameter is not set properly.
              ILLEGALMODELTYPE_ERROR_KEY - if the model type is illegal.
              CLASSIFIER_LOOP_KEY - if a generalization loop is found.
              GENERALIZATION_EXIST_KEY - if a generalization already exist.
              BAD_TRANSACTION_KEY - Bad Transaction.
              HAS_EXCEPTION_KEY - if an exception has occurred.
      Values:
              Error messages for exceptions.
    • setSubType

      void setSubType(IClass subType)
      Set Sub Type
      Parameters:
      subType - Sub Type
      Throws:
      InvalidEditingException - InvalidEditingException occurs.
      Keys:
              ILLEGAL_VERSION_ERROR_KEY - if Editing API is used in astah* community.
              PARAMETER_ERROR_KEY - if a parameter is not set properly.
              ILLEGALMODELTYPE_ERROR_KEY - if the model type is illegal.
              LEAF_ERROR_KEY - if a child element is added to a leaf element, or an element with a child element is set as a leaf.
              CLASSIFIER_LOOP_KEY - if a generalization loop is found.
              GENERALIZATION_EXIST_KEY - if a generalization already exist.
              BAD_TRANSACTION_KEY - Bad Transaction.
              HAS_EXCEPTION_KEY - if an exception has occurred.
      Values:
              Error messages for exceptions.