Class AbstractGomLangInfoProvider

java.lang.Object
de.espirit.firstspirit.access.store.templatestore.gom.AbstractGomElement
de.espirit.firstspirit.access.store.templatestore.gom.AbstractGomLangInfoProvider
All Implemented Interfaces:
GomCheckable, GomElement, GomLangInfoProvider, Serializable
Direct Known Subclasses:
GomLabeledValueEntry

public abstract class AbstractGomLangInfoProvider extends AbstractGomElement implements GomLangInfoProvider, GomCheckable
Abstract implementation of a language information provider.
Since:
4.0.17
See Also:
  • Constructor Details

    • AbstractGomLangInfoProvider

      public AbstractGomLangInfoProvider()
  • Method Details

    • getLangInfos

      public DefaultGomLangInfos getLangInfos()
      Provides the language information.
      Specified by:
      getLangInfos in interface GomLangInfoProvider
      Returns:
      The language information container.
      Since:
      4.0.17
    • label

      public String label(String lang)
      Provides the label for the given language.
      Specified by:
      label in interface GomLangInfoProvider
      Parameters:
      lang - The language abbreviation.
      Returns:
      The label.
      Since:
      4.0.17
    • description

      public String description(String lang)
      Provides the description for the given language.
      Specified by:
      description in interface GomLangInfoProvider
      Parameters:
      lang - The language abbreviation.
      Returns:
      The description.
      Since:
      4.0.17
    • getLabel

      @Deprecated public String getLabel()
      Deprecated.
      since 4.0.17 originally replaced by LangInfos-Tag, now for hiding in GOM and enable attribute to tag conversion.
      For GOM parsing only. Enables conversion to LangInfos-Tag. Always returns null.
      Since:
      4.0.17
    • setLabel

      @Deprecated public void setLabel(String label)
      Deprecated.
      since 4.0.17 originally replaced by LangInfos-Tag, now for hiding in GOM and enable attribute to tag conversion.
      For GOM parsing only. Enables conversion to LangInfos-Tag.
      Since:
      4.0.17
    • validate

      public void validate(GomCheckable.Context context) throws GomValidationError
      Validate the element against the given context.
      Specified by:
      validate in interface GomCheckable
      Parameters:
      context - The context to validate for.
      Throws:
      GomValidationError - If the element is not plausible wrt. its context.
      Since:
      5.2.21