public class DefaultGomLangInfos extends de.espirit.firstspirit.access.store.templatestore.gom.AbstractGomList<GomLangInfo> implements GomLangInfos, GomCheckable
GomCheckable.Context
Modifier and Type | Field and Description |
---|---|
static String |
ENTRY_TAG
Default tag for language information entry.
|
static String |
TAG
Tag for language information container.
|
modCount
Constructor and Description |
---|
DefaultGomLangInfos()
Constructor defining the default language information entry type.
|
DefaultGomLangInfos(Class<? extends GomLangInfo> langInfoClass)
Constructor defining the concrete language information entry type.
|
Modifier and Type | Method and Description |
---|---|
GomLangInfo |
get(int index)
Provide the language information entry stored at the given index.
|
GomLangInfo |
get(String lang)
Provide the language information entry for the given language.
|
protected String |
getDefaultTag()
Provides the default tag.
|
Map<String,Class<? extends GomElement>> |
getGomElementMappings()
Provides the mapping of tag names to entry types.
|
GomLangInfo |
resolve(String lang)
Resolves the language information entry to be used for the given language.
|
void |
validate(GomCheckable.Context context)
Validate the element against the given context.
|
void |
verify()
Verify the element to be fulfill its syntactic constraints.
|
getGomElementTag, getIncludeConfiguration, hasRepresentation, setGomElementTag, setIncludeConfiguration
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, forEach, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeIf, removeRange, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray, trimToSize
equals, hashCode
containsAll, toString
finalize, getClass, notify, notifyAll, wait, wait, wait
getGomElementTag, getIncludeConfiguration, hasRepresentation, setGomElementTag, setIncludeConfiguration
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
parallelStream, removeIf, stream
public static final String TAG
public static final String ENTRY_TAG
public DefaultGomLangInfos(Class<? extends GomLangInfo> langInfoClass)
langInfoClass
- The language information type.public DefaultGomLangInfos()
protected String getDefaultTag()
getDefaultTag
in class de.espirit.firstspirit.access.store.templatestore.gom.AbstractGomList<GomLangInfo>
public GomLangInfo get(int index)
get
in interface GomLangInfos
get
in interface List<GomLangInfo>
get
in class ArrayList<GomLangInfo>
index
- The index to look up.public Map<String,Class<? extends GomElement>> getGomElementMappings()
getGomElementMappings
in interface GomList<GomLangInfo>
getGomElementMappings
in class de.espirit.firstspirit.access.store.templatestore.gom.AbstractGomList<GomLangInfo>
public GomLangInfo get(String lang)
get
in interface GomLangInfos
lang
- The language abbreviation.public void verify() throws IllegalStateException
verify
in interface GomCheckable
verify
in class de.espirit.firstspirit.access.store.templatestore.gom.AbstractGomList<GomLangInfo>
IllegalStateException
- If the element is not correctly set up.public void validate(GomCheckable.Context context) throws GomValidationError
validate
in interface GomCheckable
context
- The context to validate for.GomValidationError
- If the element is not plausible wrt. its context.public GomLangInfo resolve(String lang)
resolve
in interface GomLangInfos
lang
- The language abbreviation.Copyright © 2021 e-Spirit AG. All Rights Reserved. Build 5.2.210210