Class ValidationProblem


  • public class ValidationProblem
    extends java.lang.Object
    A validation "problem" which may be an error or a warning.
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  ValidationProblem.ProblemType
      The type of validation problem encountered.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static int UNKNOWN
      Constant used for unknown location information.
    • Constructor Summary

      Constructors 
      Constructor Description
      ValidationProblem​(java.lang.String message, int line, int column, ValidationProblem.ProblemType type)
      Creates a ValidationProblem for the given message and location of the given type.
    • Field Detail

      • UNKNOWN

        public static final int UNKNOWN
        Constant used for unknown location information.
        See Also:
        Constant Field Values
    • Constructor Detail

      • ValidationProblem

        public ValidationProblem​(java.lang.String message,
                                 int line,
                                 int column,
                                 ValidationProblem.ProblemType type)
        Creates a ValidationProblem for the given message and location of the given type.
        Parameters:
        message - the problem message
        line - line where the problem occurs
        column - column where the problem occurs
        type - type of problem
    • Method Detail

      • getLine

        public int getLine()
        The line where the problem occured or UNKNOWN.
        Returns:
        line where the problem occured
      • getColumn

        public int getColumn()
        The column where the problem occured or UNKNOWN.
        Returns:
        column where the problem occured
      • getMessage

        public java.lang.String getMessage()
        The problem's message.
        Returns:
        the problem's message
      • toString

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