Class AbstractSelectionFieldDescriptor.OptionValue

java.lang.Object
org.sourceid.saml20.adapter.gui.AbstractSelectionFieldDescriptor.OptionValue
All Implemented Interfaces:
Serializable
Enclosing class:
AbstractSelectionFieldDescriptor

public static class AbstractSelectionFieldDescriptor.OptionValue extends Object implements Serializable
A class representing an option value. The name of the option value is what will be displayed in the GUI for the option and the value of the option value will be the actual value of the field.
See Also:
  • Field Details

  • Constructor Details

    • OptionValue

      public OptionValue(String name, String value, boolean aDefault)
      Constructor for when the OptionValue is a default.
      Parameters:
      name - The name of this option displayed in the GUI.
      value - The value that is returned if this option is selected.
      aDefault - Whether this option has been set as a default.
    • OptionValue

      public OptionValue(String name, String value)
      Create a new OptionValue.
      Parameters:
      name - The name of this option displayed in the GUI.
      value - The value that is returned if this option is selected.
  • Method Details

    • getName

      public String getName()
      The name of this option displayed in the GUI.
      Returns:
      the name
    • getValue

      public String getValue()
      The value that is returned if this option is selected.
      Returns:
      the value
    • getIsDefault

      public boolean getIsDefault()
      Whether the current OptionValue has been set as a default.
      Returns:
      boolean