Class DependencyEntry


  • @OpenApiAll
    public class DependencyEntry
    extends java.lang.Object
    Represents single dependency entry inside Dependency Matrix
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected java.util.List<Element> cause
      Element or chain of elements, which are responsible that expression evaluated on source gives target as a result
    • Field Detail

      • cause

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

      • DependencyEntry

        public DependencyEntry​(DependencyDirection direction,
                               java.util.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 Detail

      • getDirection

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

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

        public java.lang.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 java.lang.String getName()
        Representative text for the dependency
        Returns:
        name of the dependency entry
      • getDescription

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

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

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object