jetbrains.buildServer.util
Interface OptionSupport

All Known Subinterfaces:
BuildDependency, BuildTypeOptions, BuildTypeSettings, BuildTypeTemplate, Dependency, DependencyOptions, RemoteBuildType, SBuildType

public interface OptionSupport

This interface provides basic support for options of various types. It allows to set and retrieve options.

See Also:
Option

Method Summary
 Option[] getChangedOptions()
          Return options with changed values, i.e.
<T> T
getOption(Option<T> option)
          Get option value
<T> void
setOption(Option<T> option, T value)
          Set option value, clears value if it is the same as default
 

Method Detail

setOption

<T> void setOption(Option<T> option,
                   @NotNull
                   T value)
Set option value, clears value if it is the same as default

Parameters:
option - option to set value for
value - option value

getChangedOptions

Option[] getChangedOptions()
Return options with changed values, i.e. options with non-default values

Returns:
see above

getOption

@NotNull
<T> T getOption(Option<T> option)
Get option value

Parameters:
option - option to retrieve value for
Returns:
value of the option. If value wasn't set, Option:getDefaultValue is returned