Class GomLabeledValueLangInfo

All Implemented Interfaces:
GomCheckable, GomElement, GomLangInfo, Serializable

@NonExtendable public class GomLabeledValueLangInfo extends DefaultGomLangInfo
Specialized language information for value entries.
Since:
4.0
See Also:
  • Constructor Details

    • GomLabeledValueLangInfo

      public GomLabeledValueLangInfo(LanguageAbbreviation lang)
      Creates a new instance with the specified language
      Parameters:
      lang - the language
      Since:
      4.0
    • GomLabeledValueLangInfo

      public GomLabeledValueLangInfo(String lang, String label)
      Creates a new instance with the specified language and label
      Parameters:
      lang - the language
      label - the label
      Since:
      4.0
    • GomLabeledValueLangInfo

      public GomLabeledValueLangInfo(String lang, String label, boolean ignored)
      Creates a new instance with the specified language and label
      Parameters:
      lang - the language
      label - the label
      ignored - if the value should be ignored for the language
      Since:
      4.0
  • Method Details

    • getIgnore

      public YesNo getIgnore()
      Indicates the value to be ignored for this language
      Since:
      4.0
    • setIgnore

      public void setIgnore(YesNo ignored)
      Sets the value to be ignored for this language
      Since:
      4.0
    • cloneAndComplete

      public GomLabeledValueLangInfo cloneAndComplete(GomLangInfo source)
      Description copied from class: DefaultGomLangInfo
      Clones this language information container and completes missing information by the given source.
      Specified by:
      cloneAndComplete in interface GomLangInfo
      Overrides:
      cloneAndComplete in class DefaultGomLangInfo
      Parameters:
      source - A source language information container.
      Returns:
      The cloned container.
    • isEmpty

      public boolean isEmpty()
      Description copied from class: DefaultGomLangInfo
      Indicates, whether no language information have been defined.
      Specified by:
      isEmpty in interface GomLangInfo
      Overrides:
      isEmpty in class DefaultGomLangInfo
      Returns:
      true, if no language information have been defined.
    • hashCode

      public int hashCode()
      Description copied from class: DefaultGomLangInfo
      Hash code implementation.
      Overrides:
      hashCode in class DefaultGomLangInfo
      Returns:
      The hash code.
    • equals

      public boolean equals(Object obj, boolean ignoreLanguage)
      Description copied from class: DefaultGomLangInfo
      Equality check implementation.
      Specified by:
      equals in interface GomLangInfo
      Overrides:
      equals in class DefaultGomLangInfo
      Parameters:
      obj - The object to compare to.
      ignoreLanguage - true, to ignore the language.
      Returns:
      true, if considered equal.
    • ignore

      public boolean ignore()
      Convenience API for getIgnore() returning a boolean value
      Since:
      4.0