# Class MValidator

java.lang.Object
com.io7m.montarre.io.internal.MValidator

All Implemented Interfaces:
  `MValidatorType`, `AutoCloseable`

public final class MValidator extends Object implements MValidatorType
A validator.

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `MValidator(MPackageDeclaration inDeclaration)`
  A validator.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `void`
  `close()`
  `List<MValidationIssue>`
  `execute()`
  Execute the validator, returning any validation issues.

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

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

- ## Constructor Details

  - ### MValidator

    public MValidator(MPackageDeclaration inDeclaration)
    A validator.
    Parameters:
      `inDeclaration` - The package

- ## Method Details

  - ### execute

    public List<MValidationIssue> execute()
    Description copied from interface: `MValidatorType`
    Execute the validator, returning any validation issues.
    Specified by:
      `execute` in interface `MValidatorType`
    Returns:
      The issues, if any

  - ### close

    public void close() throws MException
    Specified by:
      `close` in interface `AutoCloseable`
    Specified by:
      `close` in interface `MValidatorType`
    Throws:
      `MException`