Interface GomLangInfos
- All Superinterfaces:
Collection<GomLangInfo>
,GomElement
,GomList<GomLangInfo>
,Iterable<GomLangInfo>
,List<GomLangInfo>
,Serializable
- All Known Implementing Classes:
DefaultGomLangInfos
,GomButtonLangInfos
,GomDateLangInfos
,GomExpressionLangInfos
,GomNumberLangInfos
,GomValueLangInfos
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 Summary
Modifier and TypeMethodDescriptionget
(int index) Getter for GomLangInfos.@Nullable GomLangInfo
Get a language information entry by the language it is defined for.@Nullable GomLangInfo
Resolve the language-specific information for the given language.Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
Methods inherited from interface de.espirit.firstspirit.access.store.templatestore.gom.GomElement
getGomElementTag, getIncludeConfiguration, hasRepresentation, setGomElementTag, setIncludeConfiguration
Methods inherited from interface de.espirit.firstspirit.access.store.templatestore.gom.GomList
getGomElementMappings
Methods inherited from interface java.util.List
add, add, addAll, addAll, clear, contains, containsAll, equals, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray
-
Method Details
-
get
Getter for GomLangInfos.- Specified by:
get
in interfaceList<GomLangInfo>
- Since:
- 4.0.17
-
get
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
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
- If no information is stored for the given and the wildcard/fallback
language,
-