Package org.apache.any23.extractor
Interface IssueReport
-
- All Known Subinterfaces:
ExtractionResult
,TagSoupExtractionResult
- All Known Implementing Classes:
ExtractionResultImpl
public interface IssueReport
This interface models an issue reporter.- Author:
- Michele Mostarda (michele.mostarda@gmail.com)
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
IssueReport.Issue
This class defines a generic issue traced by this extraction result.static class
IssueReport.IssueLevel
Possible issue levels.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Collection<IssueReport.Issue>
getIssues()
Returns all the collected issues.void
notifyIssue(IssueReport.IssueLevel level, String msg, long row, long col)
Notifies an issue occurred while performing an extraction on an input stream.void
printReport(PrintStream ps)
Prints out the content of the report.
-
-
-
Method Detail
-
notifyIssue
void notifyIssue(IssueReport.IssueLevel level, String msg, long row, long col)
Notifies an issue occurred while performing an extraction on an input stream.- Parameters:
level
- issue level.msg
- issue message.row
- issue row.col
- issue column.
-
printReport
void printReport(PrintStream ps)
Prints out the content of the report.- Parameters:
ps
- aPrintStream
to use for generating the report.
-
getIssues
Collection<IssueReport.Issue> getIssues()
Returns all the collected issues.- Returns:
- a collection of
IssueReport.Issue
s.
-
-