public class TextExporter extends AbstractExporter
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
EXPORTER_TYPE |
static TextExporter |
INSTANCE |
validationErrors, validationFailures, validationInfos, validationSuccess, validationWarnings
Constructor and Description |
---|
TextExporter() |
Modifier and Type | Method and Description |
---|---|
void |
createContents(java.lang.Appendable text,
RootNode rootNode,
java.lang.String exportedFileName)
Returns a stream containing the initial contents to be given to new
exported validation results file resource instances.
|
java.lang.String |
getExporterType() |
java.lang.String |
getPreferredExtension() |
export, export, getConstraintCount, getExporter, getMessage, getSeverity
@NonNull public static final java.lang.String EXPORTER_TYPE
@NonNull public static final TextExporter INSTANCE
public void createContents(@NonNull java.lang.Appendable text, @NonNull RootNode rootNode, @Nullable java.lang.String exportedFileName) throws java.io.IOException
createContents
in class AbstractExporter
text
- The contents to be appendedrootNode
- The validation result modelexportedFileName
- The target file name or null if not known and not to be reportedjava.io.IOException
@NonNull public java.lang.String getExporterType()
@NonNull public java.lang.String getPreferredExtension()