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 theSMFSchemaValidatorTypeinterface.
-
-
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:SMFSchemaValidatorTypeValidate the given header against the given schema.- Specified by:
validatein interfaceSMFSchemaValidatorType- Parameters:
header- The headerschema- The schema- Returns:
- The validated header or a list of validation errors
-
-