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 Object
      implements SMFSchemaValidatorType

  The default implementation of the `SMFSchemaValidatorType` interface.

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `SMFSchemaValidator()` Construct a validator.

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `javaslang.control.Validation<javaslang.collection.List<SMFErrorType>,SMFHeader>` | `validate(SMFHeader header, SMFSchema schema)` Validate the given header against the given schema.

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### SMFSchemaValidator

          public SMFSchemaValidator()

      Construct a validator.

  - ### Method Detail

    - #### validate

          public javaslang.control.Validation<javaslang.collection.List<SMFErrorType>,SMFHeader> validate(SMFHeader header,
                                                                                                          SMFSchema schema)

      Description copied from interface: `SMFSchemaValidatorType`
      Validate the given header against the given schema.
      Specified by:
        `validate` in interface `SMFSchemaValidatorType`
      Parameters:
        `header` - The header
        `schema` - The schema
      Returns:
        The validated header or a list of validation errors

Copyright © 2017 <code@io7m.com> http://io7m.com