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

  • Constructor Details

    • LabelContentSource

      public LabelContentSource()
  • 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.0
    • 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.0
    • 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.