All Superinterfaces:
Collection<GomLangInfo>, GomElement, GomList<GomLangInfo>, Iterable<GomLangInfo>, List<GomLangInfo>, Serializable
All Known Implementing Classes:
DefaultGomLangInfos

public interface GomLangInfos extends GomList<GomLangInfo>
Definition of a GOM language info container. Provides convenient methods to access information objects by a language identifier. $Date$
Since:
4.0
Version:
$Revision$
  • Method Details

    • get

      GomLangInfo get(int index)
      Getter for GomLangInfos.
      Specified by:
      get in interface List<GomLangInfo>
      Since:
      4.0.17
    • get

      @Nullable @Nullable GomLangInfo get(String lang)
      Get a language information entry by the language it is defined for.
      Parameters:
      lang - The language to look up.
      Returns:
      The corresponding language information entry or null.
      Since:
      4.0.17
    • resolve

      @Nullable @Nullable GomLangInfo resolve(String lang)
      Resolve the language-specific information for the given language. The information shall be resolved as follows:
      • If no information is stored for the given and the wildcard/fallback language, null will be returned.
      • If no information are stored for the wildcard/fallback language, the language-specific information will be returned as are.
      • If no information is stored for the specified language, the information stored for the wildcard/fallback language will be returned.
      • If the language-specific information is incomplete, the information stored for the wildcard/fallback language will be used to complete missing information.
      Parameters:
      lang - The language abbreviation to get information for.
      Returns:
      A copy of the resolved language information or null.
      Since:
      4.0.17