java.lang.Object
com.nomagic.magicdraw.dependencymatrix.datamodel.cell.DependencyEntry

@OpenApiAll public class DependencyEntry extends Object
Represents single dependency entry inside Dependency Matrix
  • Field Details

    • cause

      protected List<Element> cause
      Element or chain of elements, which are responsible that expression evaluated on source gives target as a result
  • Constructor Details

    • DependencyEntry

      public DependencyEntry(DependencyDirection direction, List<Element> cause)
      Creates relation chain with all required properties. All have to be set (no null values)
      Parameters:
      direction - relationship direction
      cause - Dependency causing elements
  • Method Details

    • getDirection

      public DependencyDirection getDirection()
      Direction of the dependency
      Returns:
      Direction
    • getCause

      public List<Element> getCause()
      Elements causing this dependency to exist
      Returns:
      elements causing this dependency
    • getType

      public String getType()
      Returns dependency type which may represent the cell dependencies. In simple case it returns first dependency cause element class type
      Returns:
      type of the dependency
    • getName

      public String getName()
      Representative text for the dependency
      Returns:
      name of the dependency entry
    • getDescription

      public String getDescription()
      String description of the dependency
      Returns:
      short representative description of the dependency
    • setDescription

      public void setDescription(String description)
      String description of the dependency
      Parameters:
      description - hort representative description of the dependency
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • getStyle

      public DependencyStyle getStyle()