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
Constructors -
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.voidDeprecated.since 4.0.17 originally replaced by LangInfos-Tag, now for hiding in GOM and enable attribute to tag conversion.voidvalidate(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, setIncludeConfigurationMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface de.espirit.firstspirit.access.store.templatestore.gom.GomCheckable
verifyMethods 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:
getLangInfosin 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:
labelin 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:
descriptionin 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:
validatein interfaceGomCheckable- Parameters:
context- The context to validate for, must not benull.- Throws:
GomValidationError- If the element is not plausible wrt. its context.- Since:
- 5.2.21
-