Package net.sf.okapi.lib.xliff2.lang
Class Language
- java.lang.Object
-
- net.sf.okapi.lib.xliff2.lang.Language
-
public final class Language extends Object
Implement verification for language tags.
-
-
Field Summary
Fields Modifier and Type Field Description static LanguageTHE_INSTANCEThe singleton instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcheckValid(String literal)Verify the validity of a given language tag.
-
-
-
Field Detail
-
THE_INSTANCE
public static final Language THE_INSTANCE
The singleton instance.
-
-
Method Detail
-
checkValid
public void checkValid(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: ".
-
-