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 newoption
with 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 newoption
with 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:IOptionDefinition
Get the option description.- Specified by:
getDescription
in interfaceIOptionDefinition
- Returns:
- the optional (but strongly recommended) definition description
-
getName
Description copied from interface:IOptionDefinition
Get the definition name. If name is null, then this option is a simple description field.- Specified by:
getName
in interfaceIOptionDefinition
- Returns:
- the mandatory definition name
-
getDefaultValue
- Specified by:
getDefaultValue
in interfaceIOptionDefinition
- Returns:
-
getType
Description copied from interface:ITypedOptionDefinition
Retrieve the type of the option- Specified by:
getType
in interfaceITypedOptionDefinition
- Returns:
- the type
-
getOptions
Description copied from interface:ITypedOptionDefinition
Optional additional options- Specified by:
getOptions
in interfaceITypedOptionDefinition
- Returns:
- additional options, depends on type
-