Class MessageValue

java.lang.Object
io.goobi.viewer.model.translations.admin.MessageValue

public class MessageValue extends Object
Language + translation pair.
  • Constructor Details

    • MessageValue

      public MessageValue(String language, String value, String globalValue)
      Parameters:
      language - Language code
      value -
      globalValue -
  • Method Details

    • isDirty

      public boolean isDirty()
      Returns:
      true if value has been changed so that it no longer matches loadedValue; false otherwise
    • resetDirtyStatus

      public void resetDirtyStatus()
    • isDisplayGlobalValue

      public boolean isDisplayGlobalValue()
      Returns:
      true if globalValue is set but doesn't equal value; false otherwise
    • isDisplayHighlight

      public boolean isDisplayHighlight()
      Returns:
      true if value is null or empty or contains 'zzz'; false otherwise
    • getTranslationStatus

      public MessageEntry.TranslationStatus getTranslationStatus()
      Returns:
      Translation status of this value
    • getLanguage

      public String getLanguage()
      Returns:
      the language
    • getGlobalValue

      public String getGlobalValue()
      Returns:
      the globalValue
    • getValue

      public String getValue()
      Returns:
      the value
    • setValue

      public void setValue(String value)
      Parameters:
      value - the value to set
    • getLoadedValue

      public String getLoadedValue()
      Returns:
      the loadedValue