Class Violation.Default

java.lang.Object
com.qulice.spi.Violation.Default
All Implemented Interfaces:
Violation, Comparable<Violation>
Enclosing interface:
Violation

public static final class Violation.Default extends Object implements Violation
Default validation result.
Since:
0.1
  • Constructor Details

    • Default

      public Default(String vldtr, String name, String file, String lns, String msg)
      Constructor.
      Parameters:
      vldtr - Name of the validator
      name - Name of the failed check
      file - Validated file
      lns - Lines with the problem
      msg - Validation message
      Suppressed Checkstyle violations:
      ParameterNumber (3 lines)
  • Method Details

    • validator

      public String validator()
      Description copied from interface: Violation
      Name of the validator that generated this violation information.
      Specified by:
      validator in interface Violation
      Returns:
      Name of the validator
    • name

      public String name()
      Description copied from interface: Violation
      Name of the failed check.
      Specified by:
      name in interface Violation
      Returns:
      Name of the failed check
    • file

      public String file()
      Description copied from interface: Violation
      Validated file.
      Specified by:
      file in interface Violation
      Returns:
      Validated file.
    • lines

      public String lines()
      Description copied from interface: Violation
      Lines with the problem.
      Specified by:
      lines in interface Violation
      Returns:
      Lines with the problem
    • message

      public String message()
      Description copied from interface: Violation
      Validation message.
      Specified by:
      message in interface Violation
      Returns:
      Validation message.
    • compareTo

      public int compareTo(Violation other)
      Specified by:
      compareTo in interface Comparable<Violation>