Class Violation

java.lang.Object
de.hsh.graja.regression.report.Violation
All Implemented Interfaces:
Attachable, Renderable
Direct Known Subclasses:
CommentEqualityViolation, CommentsUnavailableViolation, ExpectedSuccessRateViolation, GradeOrSuccessViolation, MissingGradingResultViolation, TransferUnavailableViolation, TreeStructureViolation

public abstract class Violation extends Object implements Renderable, Attachable
  • Constructor Details

    • Violation

      public Violation()
  • Method Details

    • getViolationType

      public abstract ViolationCategory getViolationType()
    • getIdentifier

      public String getIdentifier()
    • setLocationContextIdentifier

      public final void setLocationContextIdentifier(String locationContextIdentifier)
      Shall only be used to generate the clickable "go to location context" anchor.
      Parameters:
      locationContextIdentifier - to associate with this violation.
      Throws:
      UnsupportedOperationException - If an identifier has already been set.
    • renderWithDescriptionAndAttachments

      protected j2html.tags.ContainerTag<?> renderWithDescriptionAndAttachments(j2html.tags.DomContent... append)
    • attach

      public final void attach(Attachment attachment)
      Specified by:
      attach in interface Attachable
    • allAttachments

      public final List<Attachment> allAttachments()
      Specified by:
      allAttachments in interface Attachable