Package com.pnfsoftware.jeb.core
Class OptionDefinition
java.lang.Object
com.pnfsoftware.jeb.core.OptionDefinition
- All Implemented Interfaces:
IOptionDefinition,ITypedOptionDefinition
- Direct Known Subclasses:
BooleanOptionDefinition,ListOptionDefinition
An implementation for an option description.
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.pnfsoftware.jeb.core.ITypedOptionDefinition
ITypedOptionDefinition.Type -
Constructor Summary
ConstructorsConstructorDescriptionOptionDefinition(String description) Define a newoptionwith a single text to display.OptionDefinition(String name, String description) Define a newoption.OptionDefinition(String name, String defaultValue, String description) Define a newoption. -
Method Summary
-
Constructor Details
-
OptionDefinition
Define a newoptionwith a single text to display.- Parameters:
description- description
-
OptionDefinition
Define a newoption.- Parameters:
name- non-empty name. If null, will display a single text line (preferOptionDefinition(String)in this case).description- optional description
-
OptionDefinition
Define a newoption.- Parameters:
name- mandatory namedefaultValue-description-
-
-
Method Details
-
getDescription
Description copied from interface:IOptionDefinitionGet the option description.- Specified by:
getDescriptionin interfaceIOptionDefinition- Returns:
- the optional (but strongly recommended) definition description
-
getName
Description copied from interface:IOptionDefinitionGet the definition name. If name is null, then this option is a simple description field.- Specified by:
getNamein interfaceIOptionDefinition- Returns:
- the mandatory definition name
-
getDefaultValue
- Specified by:
getDefaultValuein interfaceIOptionDefinition- Returns:
-
getType
Description copied from interface:ITypedOptionDefinitionRetrieve the type of the option- Specified by:
getTypein interfaceITypedOptionDefinition- Returns:
- the type
-
getOptions
Description copied from interface:ITypedOptionDefinitionOptional additional options- Specified by:
getOptionsin interfaceITypedOptionDefinition- Returns:
- additional options, depends on type
-