org.apache.uima.fit.validation

## Interface ValidationCheck

- All Known Subinterfaces:
    CasValidationCheck, JCasValidationCheck

      public interface ValidationCheck

  Interface identifying validation checks that can be located via the Java Service Locator mechanism.

- - ### Method Summary

    All Methods Instance Methods Default Methods
    Modifier and Type | Method and Description
    --- | ---
    `default void` | `fail(String aMessage)` Fail the check with the given message.
    `default void` | `skip(String aMessage)` Skip the check with the given reason.

- - ### Method Detail

    - #### fail

          default void fail(String aMessage)
                     throws ValidationCheckFailedException

      Fail the check with the given message.
      Parameters:
        `aMessage` - the failure message.
      Throws:
        `ValidationCheckFailedException` - an exception carrying the failure message.

    - #### skip

          default void skip(String aMessage)
                     throws ValidationCheckSkippedException

      Skip the check with the given reason.
      Parameters:
        `aMessage` - the skip reason.
      Throws:
        `ValidationCheckSkippedException` - an exception carrying the failure message.

Copyright © 2012–2021 The Apache Software Foundation. All rights reserved.