Class FieldOption


  • public class FieldOption
    extends Object
    Describes an available legal value for an enumerated field.
    • Constructor Detail

      • FieldOption

        public FieldOption()
        Creates a new FieldOption with no associated value or title.
      • FieldOption

        public FieldOption​(String value,
                           String title)
        Creates a new FieldOption having the given value and title.
        Parameters:
        value - The value to assign if this option is chosen.
        title - The human-readable title to associate with this option.
    • Method Detail

      • getValue

        public String getValue()
        Returns the value that will be assigned if this option is chosen.
        Returns:
        The value that will be assigned if this option is chosen.
      • setValue

        public void setValue​(String value)
        Sets the value that will be assigned if this option is chosen.
        Parameters:
        value - The value to assign if this option is chosen.
      • getTitle

        public String getTitle()
        Returns the human-readable title describing the effect of this option.
        Returns:
        The human-readable title describing the effect of this option.
      • setTitle

        public void setTitle​(String title)
        Sets the human-readable title describing the effect of this option.
        Parameters:
        title - A human-readable title describing the effect of this option.