Class GomLabelExpressions.GomLabelExpression
java.lang.Object
de.espirit.firstspirit.access.store.templatestore.gom.AbstractGomElement
de.espirit.firstspirit.access.store.templatestore.gom.GomLabelExpressions.GomLabelExpression
- All Implemented Interfaces:
GomCheckable,GomElement,LabelExpression,Serializable
- Enclosing class:
- GomLabelExpressions
public static class GomLabelExpressions.GomLabelExpression
extends AbstractGomElement
implements LabelExpression, GomCheckable
Source definition for providing a language-dependent label
- Since:
- 4.2.5
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface de.espirit.firstspirit.access.store.templatestore.gom.GomCheckable
GomCheckable.Context -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected StringReturn the default tag for a gom element.@NotNull StringgetLang()Language the label is provided for.@NotNull StringgetText()Expression to be used for producing labels.voidSets the language the label is provided forvoidSets the expression to be used for producing labelsvoidvalidate(GomCheckable.Context context) Validate the element against the given context.voidverify()Verify the element to be fulfill its syntactic constraints.Methods inherited from class de.espirit.firstspirit.access.store.templatestore.gom.AbstractGomElement
getGomElementTag, getIncludeConfiguration, hasRepresentation, setGomElementTag, setIncludeConfiguration
-
Field Details
-
TAG
The tag of this component- Since:
- 4.2.5
- See Also:
-
-
Constructor Details
-
GomLabelExpression
public GomLabelExpression()
-
-
Method Details
-
getDefaultTag
Description copied from class:AbstractGomElementReturn the default tag for a gom element.- Specified by:
getDefaultTagin classAbstractGomElement- Returns:
- The elements default tag.
-
getLang
Description copied from interface:LabelExpressionLanguage the label is provided for.- Specified by:
getLangin interfaceLabelExpression- Returns:
- The language abbreviation.
-
setLang
Sets the language the label is provided for- Since:
- 4.2.5
-
getText
Description copied from interface:LabelExpressionExpression to be used for producing labels.- Specified by:
getTextin interfaceLabelExpression- Returns:
- The expression.
-
setText
Sets the expression to be used for producing labels- Since:
- 4.2.5
-
verify
Description copied from interface:GomCheckableVerify the element to be fulfill its syntactic constraints.- Specified by:
verifyin interfaceGomCheckable- Throws:
IllegalStateException- If the element is not correctly set up.
-
validate
Description copied from interface:GomCheckableValidate 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.
-