net.sf.okapi.lib.xliff2.core

## Interface IWithChangeTrack

- All Known Implementing Classes:
    MidFileData, StartGroupData, Unit

      public interface IWithChangeTrack

  Represents an object that can contain a `ChangeTrack` object. Each class representing a XLIFF element where the change tracking module is allowed, should implement this interface.
  Author:
    Marta Borriello

- - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `ChangeTrack` | `getChangeTrack()` Gets the `ChangeTrack` object for this element, creates an empty of if there is none.
    `boolean` | `hasChangeTrack()` Check if there is at least a revision for this element.
    `void` | `setChangeTrack(ChangeTrack changeTrack)` Sets the `ChangeTrack` object for this element.

- - ### Method Detail

    - #### getChangeTrack

          ChangeTrack getChangeTrack()

      Gets the `ChangeTrack` object for this element, creates an empty of if there is none.
      Returns:
        the `ChangeTrack` object for this element (can be empty, never null).

    - #### setChangeTrack

          void setChangeTrack(ChangeTrack changeTrack)

      Sets the `ChangeTrack` object for this element.
      Parameters:
        `changeTrack` - the `ChangeTrack` object for this element.

    - #### hasChangeTrack

          boolean hasChangeTrack()

      Check if there is at least a revision for this element.
      Returns:
        `true` if there is at least a revision for this element; `false` otherwise.