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
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal List<Attachment>
final void
attach
(Attachment attachment) abstract ViolationCategory
protected j2html.tags.ContainerTag<?>
renderWithDescriptionAndAttachments
(j2html.tags.DomContent... append) final 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
-
Constructor Details
-
Violation
public Violation()
-
-
Method Details
-
getViolationType
-
getIdentifier
-
setLocationContextIdentifier
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
- Specified by:
attach
in interfaceAttachable
-
allAttachments
- Specified by:
allAttachments
in interfaceAttachable
-