Class VariableValue


  • public class VariableValue
    extends Object
    A value for a Variable.
    Contains info about the value label. Also has rules text and flags if the variable is a subcategory.

    This class is immutable and thread-safe.
    • Method Detail

      • getLabel

        public String getLabel()
        Gets the label for this value.
        Returns:
        the label text
      • getRules

        public Optional<String> getRules()
        Gets the rules text if the variable is marked as a subcategory.
        Returns:
        an Optional with the rules text, empty if variable is not a subcategory
      • getFlags

        public Map<String,​Boolean> getFlags()
        Gets a Map of flags.
        Currently, the only flag is miscellaneous.
        Returns:
        an unmodifiable Map of flags, empty if variable is not a subcategory