Package interlok.csv.schema
Class ErrorsAsMetadata
java.lang.Object
interlok.csv.schema.ViolationsAsMetadata
interlok.csv.schema.ErrorsAsMetadata
- All Implemented Interfaces:
SchemaViolationHandler
Record all CSV Schema validation error messages as metadata.
This will discard all WarningMessage objects; if you want to include warnings and errors, then use FailuresAsMetadata
instead.
-
Nested Class Summary
Nested classes/interfaces inherited from interface interlok.csv.schema.SchemaViolationHandler
SchemaViolationHandler.FailureType -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidhandle(Collection<uk.gov.nationalarchives.csv.validator.api.java.FailMessage> failures, AdaptrisMessage msg) Handle any schema violations.Methods inherited from class interlok.csv.schema.ViolationsAsMetadata
getMetadataKey, setMetadataKey, withMetadataKeyMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface interlok.csv.schema.SchemaViolationHandler
toString
-
Constructor Details
-
ErrorsAsMetadata
public ErrorsAsMetadata()
-
-
Method Details
-
handle
public void handle(Collection<uk.gov.nationalarchives.csv.validator.api.java.FailMessage> failures, AdaptrisMessage msg) throws InterlokException Description copied from interface:SchemaViolationHandlerHandle any schema violations.- Parameters:
failures- the failures representing the violations, non-null.msg- the adaptris message- Throws:
InterlokException
-