Package org.sourceid.saml20.adapter.gui
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:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static Comparator<AbstractSelectionFieldDescriptor.OptionValue>NAME_COMPARATORComparator to aid with sorting OptionValue objects by name.
-
Constructor Summary
Constructors Constructor Description OptionValue(String name, String value)Create a new OptionValue.OptionValue(String name, String value, boolean aDefault)Constructor for when the OptionValue is a default.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleangetIsDefault()Whether the current OptionValue has been set as a default.StringgetName()The name of this option displayed in the GUI.StringgetValue()The value that is returned if this option is selected.
-
-
-
Field Detail
-
NAME_COMPARATOR
public static final Comparator<AbstractSelectionFieldDescriptor.OptionValue> NAME_COMPARATOR
Comparator to aid with sorting OptionValue objects by name.
-
-
Constructor Detail
-
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.
-
-
Method Detail
-
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
-
-