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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected String
Return the default tag for a gom element.@NotNull String
getLang()
Language the label is provided for.@NotNull String
getText()
Expression to be used for producing labels.void
Sets the language the label is provided forvoid
Sets the expression to be used for producing labelsvoid
validate
(GomCheckable.Context context) Validate the element against the given context.void
verify()
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:AbstractGomElement
Return the default tag for a gom element.- Specified by:
getDefaultTag
in classAbstractGomElement
- Returns:
- The elements default tag.
-
getLang
Description copied from interface:LabelExpression
Language the label is provided for.- Specified by:
getLang
in interfaceLabelExpression
- Returns:
- The language abbreviation.
-
setLang
Sets the language the label is provided for- Since:
- 4.2.5
-
getText
Description copied from interface:LabelExpression
Expression to be used for producing labels.- Specified by:
getText
in interfaceLabelExpression
- Returns:
- The expression.
-
setText
Sets the expression to be used for producing labels- Since:
- 4.2.5
-
verify
Description copied from interface:GomCheckable
Verify the element to be fulfill its syntactic constraints.- Specified by:
verify
in interfaceGomCheckable
- Throws:
IllegalStateException
- If the element is not correctly set up.
-
validate
Description copied from interface:GomCheckable
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.
-