Class ProblemImpl

  • All Implemented Interfaces:
    Problem

    public class ProblemImpl
    extends Object
    implements Problem
    Author:
    Tom Baeyens, Joram Barrez
    • Field Detail

      • message

        protected String message
      • line

        protected int line
      • column

        protected int column
      • mainElementId

        protected String mainElementId
    • Method Detail

      • concatenateErrorMessages

        protected void concatenateErrorMessages​(Throwable throwable)
      • extractElementDetails

        protected void extractElementDetails​(Element element)
      • getMessage

        public String getMessage()
        Description copied from interface: Problem
        The message of this problem
        Specified by:
        getMessage in interface Problem
      • getLine

        public int getLine()
        Description copied from interface: Problem
        The line where the problem occurs
        Specified by:
        getLine in interface Problem
      • getColumn

        public int getColumn()
        Description copied from interface: Problem
        The column where the problem occurs
        Specified by:
        getColumn in interface Problem
      • getMainElementId

        public String getMainElementId()
        Description copied from interface: Problem
        The id of the main element causing the problem. It can be null in case the element doesn't have an id.
        Specified by:
        getMainElementId in interface Problem
      • getElementIds

        public List<String> getElementIds()
        Description copied from interface: Problem
        The ids of all involved elements in the problem. It can be an empty list in case the elements do not have assigned ids.
        Specified by:
        getElementIds in interface Problem