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:
  • Field Details

  • Constructor Details

    • GomLabelExpression

      public GomLabelExpression()
  • Method Details

    • getDefaultTag

      protected String getDefaultTag()
      Description copied from class: AbstractGomElement
      Return the default tag for a gom element.
      Specified by:
      getDefaultTag in class AbstractGomElement
      Returns:
      The elements default tag.
    • getLang

      @NotNull public @NotNull String getLang()
      Description copied from interface: LabelExpression
      Language the label is provided for.
      Specified by:
      getLang in interface LabelExpression
      Returns:
      The language abbreviation.
    • setLang

      public void setLang(String language)
      Sets the language the label is provided for
      Since:
      4.2.5
    • getText

      @NotNull public @NotNull String getText()
      Description copied from interface: LabelExpression
      Expression to be used for producing labels.
      Specified by:
      getText in interface LabelExpression
      Returns:
      The expression.
    • setText

      public void setText(String text)
      Sets the expression to be used for producing labels
      Since:
      4.2.5
    • verify

      public void verify() throws IllegalStateException
      Description copied from interface: GomCheckable
      Verify the element to be fulfill its syntactic constraints.
      Specified by:
      verify in interface GomCheckable
      Throws:
      IllegalStateException - If the element is not correctly set up.
    • validate

      public void validate(GomCheckable.Context context) throws GomValidationError
      Description copied from interface: GomCheckable
      Validate the element against the given context.
      Specified by:
      validate in interface GomCheckable
      Parameters:
      context - The context to validate for, must not be null.
      Throws:
      GomValidationError - If the element is not plausible wrt. its context.