Package de.hsh.graja.regression.report
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 Summary
Constructors Constructor Description Violation()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description List<Attachment>
allAttachments()
void
attach(Attachment attachment)
String
getIdentifier()
abstract ViolationCategory
getViolationType()
protected j2html.tags.ContainerTag<?>
renderWithDescriptionAndAttachments(j2html.tags.DomContent... append)
void
setLocationContextIdentifier(String locationContextIdentifier)
Shall only be used to generate the clickable "go to location context" anchor.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface de.hsh.graja.regression.report.Renderable
render
-
-
-
-
Method Detail
-
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 interfaceAttachable
-
allAttachments
public final List<Attachment> allAttachments()
- Specified by:
allAttachments
in interfaceAttachable
-
-