# Class CLN2Validators

java.lang.Object
com.io7m.calino.vanilla.CLN2Validators

All Implemented Interfaces:
  `CLNValidatorFactoryType`

public final class CLN2Validators extends Object implements CLNValidatorFactoryType
A factory of version 1 validators.

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `CLN2Validators()`
  A factory of version 1 validators.
  `CLN2Validators(Locale locale)`
  A factory of version 1 validators.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `CLNValidatorType`
  `createValidator(CLNValidationRequest request)`
  Create a new validator.
  `int`
  `highestMinorVersion()`
  `int`
  `supportedMajorVersion()`

  ### Methods inherited from class Object

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

- ## Constructor Details

  - ### CLN2Validators

    public CLN2Validators()
    A factory of version 1 validators.

  - ### CLN2Validators

    public CLN2Validators(Locale locale)
    A factory of version 1 validators.
    Parameters:
      `locale` - The locale for error messages

- ## Method Details

  - ### supportedMajorVersion

    public int supportedMajorVersion()
    Specified by:
      `supportedMajorVersion` in interface `CLNValidatorFactoryType`
    Returns:
      The major file format version supported by this factory

  - ### highestMinorVersion

    public int highestMinorVersion()
    Specified by:
      `highestMinorVersion` in interface `CLNValidatorFactoryType`
    Returns:
      The highest known minor version for this writer factory

  - ### createValidator

    public CLNValidatorType createValidator(CLNValidationRequest request)
    Description copied from interface: `CLNValidatorFactoryType`
    Create a new validator.
    Specified by:
      `createValidator` in interface `CLNValidatorFactoryType`
    Parameters:
      `request` - The validation request
    Returns:
      A new validator