public final class PlainFormatter extends Formatter
Constructor and Description |
---|
PlainFormatter() |
Modifier and Type | Method and Description |
---|---|
void |
format(PrintWriter pw,
Map<Document,List<ValidationError>> docErrorsMap)
Format and print the errors for a set of documents
|
String |
formatError(Document document,
ValidationError error)
Format a single error as a string
|
public void format(PrintWriter pw, Map<Document,List<ValidationError>> docErrorsMap) throws RedPenException, IOException
Formatter
format
in class Formatter
pw
- The printwriter destination for the errorsdocErrorsMap
- a map of documents to the corresponding list of errorsRedPenException
IOException
public String formatError(Document document, ValidationError error)
Formatter
formatError
in class Formatter
document
- the document the error is forerror
- the error to formatCopyright © 2015. All rights reserved.