public abstract class AbstractExporter extends java.lang.Object implements IValidityExporter
Modifier and Type | Field and Description |
---|---|
protected java.util.List<LeafConstrainingNode> |
validationErrors |
protected java.util.List<LeafConstrainingNode> |
validationFailures |
protected java.util.List<LeafConstrainingNode> |
validationInfos |
protected java.util.List<LeafConstrainingNode> |
validationSuccess |
protected java.util.List<LeafConstrainingNode> |
validationWarnings |
Constructor and Description |
---|
AbstractExporter() |
Modifier and Type | Method and Description |
---|---|
protected abstract void |
createContents(java.lang.Appendable s,
RootNode rootNode,
java.lang.String exportedFileName)
Returns a stream containing the initial contents to be given to new
exported validation results file resource instances.
|
void |
export(java.lang.Appendable s,
RootNode rootNode,
java.lang.String exportedFileName)
Export the validity results to an Appendable.
|
java.lang.String |
export(RootNode rootNode,
java.lang.String exportedFileName)
Export the validity results and return String containing the results.
|
protected int |
getConstraintCount() |
IValidityExporter |
getExporter() |
protected java.lang.String |
getMessage(Result result) |
protected java.lang.String |
getSeverity(Result result) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getPreferredExtension
getExporterType
@NonNull protected final java.util.List<LeafConstrainingNode> validationErrors
@NonNull protected final java.util.List<LeafConstrainingNode> validationFailures
@NonNull protected final java.util.List<LeafConstrainingNode> validationInfos
@NonNull protected final java.util.List<LeafConstrainingNode> validationSuccess
@NonNull protected final java.util.List<LeafConstrainingNode> validationWarnings
protected abstract void createContents(@NonNull java.lang.Appendable s, @NonNull RootNode rootNode, @Nullable java.lang.String exportedFileName) throws java.io.IOException
s
- 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 export(@NonNull RootNode rootNode, @Nullable java.lang.String exportedFileName)
IValidityExporter
export
in interface IValidityExporter
rootNode
- The Root Node to exportexportedFileName
- The target file name or null if not known and not to be reportedpublic void export(@NonNull java.lang.Appendable s, @NonNull RootNode rootNode, @Nullable java.lang.String exportedFileName) throws java.io.IOException
IValidityExporter
export
in interface IValidityExporter
s
- The appendablerootNode
- The Root Node to exportexportedFileName
- The target file name or null if not known and not to be reportedjava.io.IOException
protected int getConstraintCount()
@NonNull public IValidityExporter getExporter()
getExporter
in interface IValidityExporterDescriptor
protected java.lang.String getMessage(Result result)
protected java.lang.String getSeverity(Result result)