Interface IConstraint

All Superinterfaces:
IElement, IEntity, IHyperlinkOwner, INamedElement
All Known Subinterfaces:
IDurationConstraint, ITimeConstraint

public interface IConstraint extends INamedElement
Interface for Constraint.
  • Method Details

    • getConstrainedElement

      IElement[] getConstrainedElement()
      Get the constrained elements.
      Returns:
      the array of elements. Return the empty array if there is none.
    • getSpecification

      String getSpecification()
      Get Specification.
      Returns:
      Specification Contents
    • setSpecification

      void setSpecification(String specification)
      Set Specification.
      Parameters:
      specification - Specification Contents
      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.
              BAD_TRANSACTION_KEY - Bad Transaction.
              HAS_EXCEPTION_KEY - if an exception has occurred.
              READ_ONLY_KEY - if a read-only element is edited.
      Values:
              Error messages for exceptions.