Package com.iizix.selector
Class LanguageMatch
java.lang.Object
com.iizix.selector.LanguageMatch
Language match class.
- Author:
- Christopher Mindus
- Field SummaryFieldsModifier and TypeFieldDescriptionRead-only map with upper case valid country codes 2 letters, mapped to country name.
- Constructor SummaryConstructors
- Method SummaryModifier and TypeMethodDescription- static booleanChecks if the match string exists.- static String- getDescription- (String match) Gets the language description for a string.- getMap()Gets the map of languages that can match with this class.Gets the map of languages with the Language Codes in its proper character case.Gets the map of simple languages with the Language Codes in its proper character case.Gets the map of simple languages with the Language Codes in LOWER CASE.- static booleanMatches a language.
- Field Details- countryNamesRead-only map with upper case valid country codes 2 letters, mapped to country name.
 
- Constructor Details- LanguageMatchpublic LanguageMatch()
 
- Method Details- matchMatches a language.- Parameters:
- envProps- The Client environment properties.
- match- The match string.
- Returns:
- true for match, false otherwise.
 
- existsChecks if the match string exists.- Parameters:
- match- The match string is case insensitive.
- Returns:
- true if it exists, false otherwise.
 
- getDescriptionGets the language description for a string. This method is typically used in the Designer.- Parameters:
- match- The match string is case insensitive.
- Returns:
- The description of the language matching, null for none.
 
- getMapGets the map of languages that can match with this class.- Returns:
- An unmodifiable map with the string match as keys and descriptions as values, sorted by keys. Please note that the map is using CASE SENSITIVE Language Codes. Use the method getMapLowerCase()to get the language codes in lower case.
 
- getMapLowerCaseGets the map of languages with the Language Codes in its proper character case.- Returns:
- An unmodifiable map with the string match as keys and descriptions as values, sorted by keys. Please note that the map is using LOWER CASE Language Codes. Use the method getMap()to get the map using real case of the language codes.
 
- getSimpleMapGets the map of simple languages with the Language Codes in its proper character case.- Returns:
- An unmodifiable map with the string match as keys and descriptions as values, sorted by keys. Please note that the map is using CASE SENSITIVE Language Codes. Use the method getSimpleMapLowerCase()to get the language codes in lower case.
 
- getSimpleMapLowerCaseGets the map of simple languages with the Language Codes in LOWER CASE.- Returns:
- An unmodifiable map with the string match IN LOWER CASE as keys and descriptions as values, sorted by keys. Please note that the map is using LOWER CASE Language Codes. Use the method getSimpleMap()to get the map using real case of the language codes.