Class Language


  • public final class Language
    extends Object
    Implement verification for language tags.
    • 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: ".