Class ProblemImpl

  • All Implemented Interfaces:
    Problem

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

      • message

        protected java.lang.String message
      • line

        protected int line
      • column

        protected int column
      • mainElementId

        protected java.lang.String mainElementId
      • elementIds

        protected java.util.List<java.lang.String> elementIds
    • Constructor Detail

      • ProblemImpl

        public ProblemImpl​(org.xml.sax.SAXParseException e)
      • ProblemImpl

        public ProblemImpl​(java.lang.String errorMessage,
                           Element element)
      • ProblemImpl

        public ProblemImpl​(java.lang.String errorMessage,
                           Element element,
                           java.lang.String... elementIds)
      • ProblemImpl

        public ProblemImpl​(BpmnParseException exception,
                           java.lang.String elementId)
    • Method Detail

      • concatenateErrorMessages

        protected void concatenateErrorMessages​(java.lang.Throwable throwable)
      • extractElementDetails

        protected void extractElementDetails​(Element element)
      • getMessage

        public java.lang.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 java.lang.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 java.util.List<java.lang.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
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object