Package org.jboss.windup.config
Interface ConfigurationOption
-
- All Known Implementing Classes:
AbstractConfigurationOption,AbstractPathConfigurationOption,AnalyzeKnownLibrariesOption,KeepWorkDirsOption,SkipReportsRenderingOption
public interface ConfigurationOptionSpecifies details regarding a particular configuration option that can be passed into the Windup executor. This information is used by the UI to determine the available options for running Windup.- Author:
- Jesse Sightler, Ondrej Zizka
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Collection<?>getAvailableValues()Returns an ordered list of available values.ObjectgetDefaultValue()Default value for this option (if not set by user).StringgetDescription()Returns descriptive text that may be more lengthy and descriptive (for example, "Excludes the specified Java packages from Windup's scans").StringgetLabel()Return a short amount of descriptive text regarding the option (for example, "Exclude Packages").StringgetName()Returns the name of the parameter.intgetPriority()Indicates the "priority" of this option.Class<?>getType()Returns the datatype for this Option (typically File, String, or List). InputTypegetUIType()Returns a type that can be used as a hint to indicate what type of user interface should be presented for this option.booleanisRequired()Indicates whether or not this option must be specified.ValidationResultvalidate(Object value)Validate the user indicated value and return the result.
-
-
-
Method Detail
-
getName
String getName()
Returns the name of the parameter. This should be a short name that is suitable for use in a command line parameter (for example, "packages" or "excludePackages").
-
getLabel
String getLabel()
Return a short amount of descriptive text regarding the option (for example, "Exclude Packages").
-
getDescription
String getDescription()
Returns descriptive text that may be more lengthy and descriptive (for example, "Excludes the specified Java packages from Windup's scans").
-
getType
Class<?> getType()
Returns the datatype for this Option (typically File, String, or List).
-
getUIType
InputType getUIType()
Returns a type that can be used as a hint to indicate what type of user interface should be presented for this option.
-
isRequired
boolean isRequired()
Indicates whether or not this option must be specified.
-
getDefaultValue
Object getDefaultValue()
Default value for this option (if not set by user).
-
getAvailableValues
Collection<?> getAvailableValues()
Returns an ordered list of available values. This is intended for use withInputType.SELECT_MANYandInputType.SELECT_ONE.
-
validate
ValidationResult validate(Object value)
Validate the user indicated value and return the result.
-
getPriority
int getPriority()
Indicates the "priority" of this option. Higher values (and therefore higher priority) of this value will result in the item being asked earlier than items with a lower priority value.
-
-