Class GomIncludeContent.LabelContentSource
java.lang.Object
de.espirit.firstspirit.access.store.templatestore.gom.AbstractGomElement
de.espirit.firstspirit.access.store.templatestore.gom.GomIncludeContent.LabelContentSource
- All Implemented Interfaces:
GomCheckable
,GomElement
,LabelExpression
,Serializable
- Enclosing class:
- GomIncludeContent
public static class GomIncludeContent.LabelContentSource
extends AbstractGomElement
implements LabelExpression, GomCheckable
Content-based source definition for providing a language-dependent label
- Since:
- 4.0
- 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 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.0
- See Also:
-
-
Constructor Details
-
LabelContentSource
public LabelContentSource()
-
-
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.0
-
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.0
-
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, must not benull
.- Throws:
GomValidationError
- If the element is not plausible wrt. its context.
-