Class BuildDependencyImpl
- java.lang.Object
-
- jetbrains.buildServer.serverSide.impl.dependency.BuildDependencyImpl
-
- All Implemented Interfaces:
Comparable<BuildDependencyEx>
,BuildDependency
,BuildDependencyEx
,DependencyOptions
,OptionSupport
public class BuildDependencyImpl extends Object implements BuildDependencyEx
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface jetbrains.buildServer.serverSide.dependency.DependencyOptions
DependencyOptions.BuildContinuationMode
-
-
Field Summary
-
Fields inherited from interface jetbrains.buildServer.serverSide.dependency.DependencyOptions
RUN_BUILD_IF_DEPENDENCY_FAILED, RUN_BUILD_IF_DEPENDENCY_FAILED_TO_START, RUN_BUILD_ON_THE_SAME_AGENT, SYNCHRONIZE_REVISIONS, TAKE_STARTED_BUILD_WITH_SAME_REVISIONS, TAKE_SUCCESSFUL_BUILDS_ONLY
-
-
Constructor Summary
Constructors Constructor Description BuildDependencyImpl(BuildPromotionEx dependOn, BuildPromotionEx dependent, OptionSupport options)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(BuildDependencyEx o)
static DependencyOptions
copyOptions(OptionSupport optionSupport)
boolean
equals(Object o)
Option[]
getChangedOptions()
Return options with changed values, i.e.<T> T
getDeclaredOption(Option<T> option)
Get option value declared in this BuildTypeSettingsBuildPromotionEx
getDependent()
Return a Build Promotion which has this dependencyBuildPromotionEx
getDependOn()
Return a Build Promotion object we depend on<T> T
getOption(Option<T> option)
Get option value<T> T
getOptionDefaultValue(Option<T> option)
Collection<Option>
getOptions()
int
getOptionsMask()
Collection<Option>
getOwnOptions()
Return options defined in this object, i.e.int
hashCode()
static DependencyOptions
maskToOptions(int optionsMask)
<T> void
setOption(Option<T> option, T value)
Set option value, clears value if it is the same as defaultString
toString()
-
-
-
Constructor Detail
-
BuildDependencyImpl
public BuildDependencyImpl(@NotNull BuildPromotionEx dependOn, @NotNull BuildPromotionEx dependent, @NotNull OptionSupport options) throws IllegalArgumentException
- Throws:
IllegalArgumentException
-
-
Method Detail
-
getDependent
@NotNull public BuildPromotionEx getDependent()
Description copied from interface:BuildDependency
Return a Build Promotion which has this dependency- Specified by:
getDependent
in interfaceBuildDependency
- Specified by:
getDependent
in interfaceBuildDependencyEx
- Returns:
- see above
-
getDependOn
@NotNull public BuildPromotionEx getDependOn()
Description copied from interface:BuildDependency
Return a Build Promotion object we depend on- Specified by:
getDependOn
in interfaceBuildDependency
- Specified by:
getDependOn
in interfaceBuildDependencyEx
- Returns:
- see above
-
getOptionsMask
public int getOptionsMask()
- Specified by:
getOptionsMask
in interfaceBuildDependencyEx
-
compareTo
public int compareTo(BuildDependencyEx o)
- Specified by:
compareTo
in interfaceComparable<BuildDependencyEx>
-
setOption
public <T> void setOption(@NotNull Option<T> option, @NotNull T value)
Description copied from interface:OptionSupport
Set option value, clears value if it is the same as default- Specified by:
setOption
in interfaceOptionSupport
- Parameters:
option
- option to set value forvalue
- option value
-
getOwnOptions
@NotNull public Collection<Option> getOwnOptions()
Description copied from interface:OptionSupport
Return options defined in this object, i.e. options for which some value has been set usingOptionSupport.setOption(Option, Object)
method.- Specified by:
getOwnOptions
in interfaceOptionSupport
- Returns:
- see above
-
getOptions
@NotNull public Collection<Option> getOptions()
- Specified by:
getOptions
in interfaceOptionSupport
- Returns:
- combined set of options - own and inherited
-
getChangedOptions
@NotNull public Option[] getChangedOptions()
Description copied from interface:OptionSupport
Return options with changed values, i.e. options with non-default values- Specified by:
getChangedOptions
in interfaceOptionSupport
- Returns:
- see above
-
getOption
@NotNull public <T> T getOption(@NotNull Option<T> option)
Description copied from interface:OptionSupport
Get option value- Specified by:
getOption
in interfaceOptionSupport
- Parameters:
option
- option to retrieve value for- Returns:
- value of the option. If value wasn't set, Option:getDefaultValue is returned
-
getOptionDefaultValue
@NotNull public <T> T getOptionDefaultValue(@NotNull Option<T> option)
- Specified by:
getOptionDefaultValue
in interfaceOptionSupport
- Parameters:
option
- option whose default value to return- Returns:
- default value for specified option
-
getDeclaredOption
@Nullable public <T> T getDeclaredOption(Option<T> option)
Description copied from interface:OptionSupport
Get option value declared in this BuildTypeSettings
- Specified by:
getDeclaredOption
in interfaceOptionSupport
- Parameters:
option
- option to retrieve value for- Returns:
- value of the option. If value wasn't set, null is returned
-
maskToOptions
@NotNull public static DependencyOptions maskToOptions(int optionsMask)
-
copyOptions
@NotNull public static DependencyOptions copyOptions(@NotNull OptionSupport optionSupport)
-
-