Class AbstractGomLangInfoProvider
java.lang.Object
de.espirit.firstspirit.access.store.templatestore.gom.AbstractGomElement
de.espirit.firstspirit.access.store.templatestore.gom.AbstractGomLangInfoProvider
- All Implemented Interfaces:
GomCheckable
,GomElement
,GomLangInfoProvider
,Serializable
- Direct Known Subclasses:
GomLabel
,GomLabeledNameEntry
,GomLabeledValueEntry
,GomScriptButtonEntry
,GomTableView
public abstract class AbstractGomLangInfoProvider
extends AbstractGomElement
implements GomLangInfoProvider, GomCheckable
Abstract implementation of a language information provider.
- Since:
- 4.0.17
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface de.espirit.firstspirit.access.store.templatestore.gom.GomCheckable
GomCheckable.Context
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiondescription
(String lang) Convenience method: Provides the description for the given language as a string value.getLabel()
Deprecated.since 4.0.17 originally replaced by LangInfos-Tag, now for hiding in GOM and enable attribute to tag conversion.Provides the language information.Convenience method: Provides the label for the given language as a string value.void
Deprecated.since 4.0.17 originally replaced by LangInfos-Tag, now for hiding in GOM and enable attribute to tag conversion.void
validate
(GomCheckable.Context context) Validate the element against the given context.Methods inherited from class de.espirit.firstspirit.access.store.templatestore.gom.AbstractGomElement
getDefaultTag, getGomElementTag, getIncludeConfiguration, hasRepresentation, setGomElementTag, setIncludeConfiguration
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface de.espirit.firstspirit.access.store.templatestore.gom.GomCheckable
verify
Methods inherited from interface de.espirit.firstspirit.access.store.templatestore.gom.GomElement
getGomElementTag, getIncludeConfiguration, hasRepresentation, setGomElementTag, setIncludeConfiguration
-
Constructor Details
-
AbstractGomLangInfoProvider
public AbstractGomLangInfoProvider()
-
-
Method Details
-
getLangInfos
Provides the language information.- Specified by:
getLangInfos
in interfaceGomLangInfoProvider
- Returns:
- The language information container.
- Since:
- 4.0.17
-
label
Convenience method: Provides the label for the given language as a string value.- Specified by:
label
in interfaceGomLangInfoProvider
- Parameters:
lang
- The language abbreviation.- Returns:
- The label.
- Since:
- 4.0.17
-
description
Convenience method: Provides the description for the given language as a string value.- Specified by:
description
in interfaceGomLangInfoProvider
- Parameters:
lang
- The language abbreviation.- Returns:
- The description.
- Since:
- 4.0.17
-
getLabel
Deprecated.since 4.0.17 originally replaced by LangInfos-Tag, now for hiding in GOM and enable attribute to tag conversion.For GOM parsing only. Enables conversion to LangInfos-Tag. Always returns null.- Since:
- 4.0.17
-
setLabel
Deprecated.since 4.0.17 originally replaced by LangInfos-Tag, now for hiding in GOM and enable attribute to tag conversion.For GOM parsing only. Enables conversion to LangInfos-Tag.- Since:
- 4.0.17
-
validate
Validate the element against the given context.- Specified by:
validate
in interfaceGomCheckable
- Parameters:
context
- The context to validate for.- Throws:
GomValidationError
- If the element is not plausible wrt. its context.- Since:
- 5.2.21
-