net.sf.okapi.lib.xliff2.core

## Interface IWithValidation

- All Known Implementing Classes:
    MidFileData, StartGroupData, Unit

      public interface IWithValidation

  Provides the methods to add and retrieve validation rules for an object.

- - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `Validation` | `getValidation()` Gets the `Validation` object for the parent, creates an empty of if there is none.
    `boolean` | `hasValidation()` Indicates if the object has validation data.
    `void` | `setValidation(Validation validation)` sets the `Validation` object for the parent.

- - ### Method Detail

    - #### hasValidation

          boolean hasValidation()

      Indicates if the object has validation data.

    - #### getValidation

          Validation getValidation()

      Gets the `Validation` object for the parent, creates an empty of if there is none.
      Returns:
        the `Validation` object for the parent (can be empty, but never null).

    - #### setValidation

          void setValidation(Validation validation)

      sets the `Validation` object for the parent.
      Parameters:
        `validation` - the new `Validation` object for the parent.