net.sf.okapi.lib.xliff2.core

## Interface IWithMetadata

- All Known Implementing Classes:
    Match, MidFileData, StartGroupData, Unit

      public interface IWithMetadata

  Provides the methods to add and retrieve metadata for an object.

- - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `Metadata` | `getMetadata()` Gets the `Metadata` object for the parent, creates an empty of if there is none.
    `boolean` | `hasMetadata()` Indicates if the object has metadata.
    `void` | `setMetadata(Metadata metadata)` sets the `Metadata` object for the parent.

- - ### Method Detail

    - #### hasMetadata

          boolean hasMetadata()

      Indicates if the object has metadata.

    - #### getMetadata

          Metadata getMetadata()

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

    - #### setMetadata

          void setMetadata(Metadata metadata)

      sets the `Metadata` object for the parent.
      Parameters:
        `metadata` - the new `Metadata` object for the parent.