Package com.io7m.smfj.validation.api
Class SMFSchemaValidator
- java.lang.Object
-
- com.io7m.smfj.validation.api.SMFSchemaValidator
-
- All Implemented Interfaces:
SMFSchemaValidatorType
public final class SMFSchemaValidator extends java.lang.Object implements SMFSchemaValidatorType
The default implementation of theSMFSchemaValidatorType
interface.
-
-
Constructor Summary
Constructors Constructor Description SMFSchemaValidator()
Construct a validator.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SMFPartialLogged<SMFHeader>
validate(SMFHeader header, SMFSchema schema)
Validate the given header against the given schema.
-
-
-
Method Detail
-
validate
public SMFPartialLogged<SMFHeader> validate(SMFHeader header, SMFSchema schema)
Description copied from interface:SMFSchemaValidatorType
Validate the given header against the given schema.- Specified by:
validate
in interfaceSMFSchemaValidatorType
- Parameters:
header
- The headerschema
- The schema- Returns:
- The validated header or a list of validation errors
-
-