Enum Language

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.lang.String[] scriptNames  
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private Language​(java.lang.String[] scriptNames)  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String[] getScriptNames()
      ScriptNames form the basis of identification of the language.
      static Language valueOf​(java.lang.String name)
      Returns the enum constant of this type with the specified name.
      static Language[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      • Methods inherited from class java.lang.Enum

        clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • Enum Constant Detail

      • BENGALI

        public static final Language BENGALI
      • DEVANAGARI

        public static final Language DEVANAGARI
      • GUJARATI

        public static final Language GUJARATI
      • LATIN

        public static final Language LATIN
      • UNSPECIFIED

        public static final Language UNSPECIFIED
        An entry explicitly denoting the absence of any concrete language. May be useful when no actual glyph substitution is required but only the content of GSUB table is of interest. Must be the last one as it is not a language per se.
    • Field Detail

      • scriptNames

        private final java.lang.String[] scriptNames
    • Constructor Detail

      • Language

        private Language​(java.lang.String[] scriptNames)
    • Method Detail

      • values

        public static Language[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (Language c : Language.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static Language valueOf​(java.lang.String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null
      • getScriptNames

        public java.lang.String[] getScriptNames()
        ScriptNames form the basis of identification of the language. This method gets the ScriptNames that the given Language supports, in the order of preference, Index 0 being the most preferred. These names should match the script record in the GSUB system.
        Returns:
        an array containing all supported languages