Package org.jboss.windup.config
Class AbstractConfigurationOption
- java.lang.Object
-
- org.jboss.windup.config.AbstractConfigurationOption
-
- All Implemented Interfaces:
ConfigurationOption
- Direct Known Subclasses:
AbstractPathConfigurationOption,KeepWorkDirsOption,SkipReportsRenderingOption
public abstract class AbstractConfigurationOption extends Object implements ConfigurationOption
Provides a base class for sharing default functionality betweenConfigurationOptions.- Author:
- Jesse Sightler, Ondrej Zizka
-
-
Constructor Summary
Constructors Constructor Description AbstractConfigurationOption()
-
Method Summary
All Methods Instance Methods Concrete 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).intgetPriority()Indicates the "priority" of this option.protected voidsetAvailableValues(Collection<?> availableValues)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.jboss.windup.config.ConfigurationOption
getDescription, getLabel, getName, getType, getUIType, isRequired, validate
-
-
-
-
Method Detail
-
getPriority
public int getPriority()
Description copied from interface:ConfigurationOptionIndicates 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.- Specified by:
getPriorityin interfaceConfigurationOption
-
getAvailableValues
public Collection<?> getAvailableValues()
Description copied from interface:ConfigurationOptionReturns an ordered list of available values. This is intended for use withInputType.SELECT_MANYandInputType.SELECT_ONE.- Specified by:
getAvailableValuesin interfaceConfigurationOption
-
setAvailableValues
protected void setAvailableValues(Collection<?> availableValues)
-
getDefaultValue
public Object getDefaultValue()
Description copied from interface:ConfigurationOptionDefault value for this option (if not set by user).- Specified by:
getDefaultValuein interfaceConfigurationOption
-
-