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:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Comparator<AbstractSelectionFieldDescriptor.OptionValue>Comparator to aid with sorting OptionValue objects by name. -
Constructor Summary
ConstructorsConstructorDescriptionOptionValue(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
-
Field Details
-
NAME_COMPARATOR
Comparator to aid with sorting OptionValue objects by name.
-
-
Constructor Details
-
OptionValue
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
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
The name of this option displayed in the GUI.- Returns:
- the name
-
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
-