public class DefaultGomLangInfos extends AbstractGomList<GomLangInfo> implements GomLangInfos
Modifier and Type | Field and Description |
---|---|
static String |
ENTRY_TAG |
static String |
TAG |
modCount
Constructor and Description |
---|
DefaultGomLangInfos() |
DefaultGomLangInfos(Class<? extends GomLangInfo> langInfoClass) |
Modifier and Type | Method and Description |
---|---|
GomLangInfo |
get(int index)
Getter for GomLangInfos.
|
GomLangInfo |
get(String lang)
Get a language information entry by the language it is defined
for.
|
protected String |
getDefaultTag() |
Map<String,Class<? extends GomElement>> |
getGomElementMappings()
Get a list of mappings from tag name to class supported by this list.
|
GomLangInfo |
resolve(String lang)
Resolve the language-specific information for the given language.
|
void |
validate()
Validate the class for being correctly set up.
|
getGomElementTag, getIncludeConfiguration, hasRepresentation, setGomElementTag, setIncludeConfiguration
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeRange, retainAll, set, size, subList, toArray, toArray, trimToSize
equals, hashCode
containsAll, toString
finalize, getClass, notify, notifyAll, wait, wait, wait
getGomElementTag, getIncludeConfiguration, hasRepresentation, setGomElementTag, setIncludeConfiguration
public static final String TAG
public static final String ENTRY_TAG
public DefaultGomLangInfos(Class<? extends GomLangInfo> langInfoClass)
public DefaultGomLangInfos()
protected String getDefaultTag()
getDefaultTag
in class AbstractGomList<GomLangInfo>
public GomLangInfo get(int index)
GomLangInfos
get
in interface GomLangInfos
get
in interface List<GomLangInfo>
get
in class ArrayList<GomLangInfo>
public Map<String,Class<? extends GomElement>> getGomElementMappings()
GomList
getGomElementMappings
in interface GomList<GomLangInfo>
getGomElementMappings
in class AbstractGomList<GomLangInfo>
public GomLangInfo get(String lang)
GomLangInfos
get
in interface GomLangInfos
lang
- The language to look up.public void validate() throws IllegalStateException
GomElement
validate
in interface GomElement
validate
in class AbstractGomList<GomLangInfo>
IllegalStateException
- If the instance is in an illegal state.public GomLangInfo resolve(String lang)
GomLangInfos
null
will be returned.
resolve
in interface GomLangInfos
lang
- The language abbreviation to get information for.Copyright © 2015 e-Spirit AG. All Rights Reserved. Build 5.1.408