Class PredefinedValue

java.lang.Object
com.orchestranetworks.addon.dqid.PredefinedValue

public final class PredefinedValue extends Object
To define a value with a string label or a localized label.
Since:
1.4.0
See Also:
  • Constructor Details

    • PredefinedValue

      public PredefinedValue(String value)
      A predefined value without a label.
    • PredefinedValue

      public PredefinedValue(String value, String label)
      A predefined value with a string label.
    • PredefinedValue

      public PredefinedValue(String value, com.onwbp.base.text.UserMessage localizedLabel)
      A predefined value with a localized label.
  • Method Details

    • getValue

      public String getValue()
      Returns the value.
    • getLabel

      public String getLabel(Locale locale)
      Returns the label by a locale.

      Returns null if the label and the localized label are not declared.

    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object