net.sf.okapi.lib.xliff2.lang

## Class Language

- java.lang.Object
- - net.sf.okapi.lib.xliff2.lang.Language

-     public final class Language
      extends java.lang.Object

  Implement verification for language tags.

- - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `static Language` | `THE_INSTANCE` The singleton instance.

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `checkValid(java.lang.String literal)` Verify the validity of a given language tag.

    - ### Methods inherited from class java.lang.Object

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

- - ### Field Detail

    - #### THE_INSTANCE

          public static final Language THE_INSTANCE

      The singleton instance.

  - ### Method Detail

    - #### checkValid

          public void checkValid(java.lang.String literal)

      Verify the validity of a given language tag.
      Parameters:
        `literal` - the language tag to verify.
      Throws:
        `InvalidParameterException` - if the tag is invalid or if there is a warning for it. If the issue is just a warning, the error message starts with "Warning: ".