Class BuildTypeBranchBean
- java.lang.Object
-
- jetbrains.buildServer.controllers.BranchBean
-
- jetbrains.buildServer.controllers.BuildTypeBranchBean
-
public abstract class BuildTypeBranchBean extends BranchBean
- Since:
- 2018.2
- Author:
- Yegor.Yarko
-
-
Field Summary
Fields Modifier and Type Field Description protected SBuildType
myBuildType
-
Constructor Summary
Constructors Constructor Description BuildTypeBranchBean(SBuildType buildType)
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description static BranchBean
allBranches()
static BuildTypeBranchBean
allBranches(SBuildType buildType)
abstract Branch
getBranch()
abstract java.util.Set<Branch>
getBranches()
Can return null if matches all branches or a single branchSBuildType
getBuildType()
boolean
isMatchesDefault()
boolean
isSelectedBranchExcluded()
boolean
matches(java.lang.String branchName)
boolean
matches(Branch branch)
-
Methods inherited from class jetbrains.buildServer.controllers.BranchBean
createIn, getUserBranch, isAllBranches, isDefaultBranch, isSingleBranch, isWildcardBranch
-
-
-
-
Field Detail
-
myBuildType
@NotNull protected final SBuildType myBuildType
-
-
Constructor Detail
-
BuildTypeBranchBean
public BuildTypeBranchBean(@NotNull SBuildType buildType)
-
-
Method Detail
-
getBranches
@Nullable public abstract java.util.Set<Branch> getBranches()
Can return null if matches all branches or a single branch
-
getBranch
@Nullable public abstract Branch getBranch()
- Returns:
- null if not a single branch
-
getBuildType
@NotNull public SBuildType getBuildType()
-
matches
public boolean matches(@Nullable java.lang.String branchName)
-
isSelectedBranchExcluded
public boolean isSelectedBranchExcluded()
- Specified by:
isSelectedBranchExcluded
in classBranchBean
- Returns:
- true if a single branch is selected in this branch bean but this branch is excluded by build type branch filter
-
matches
public boolean matches(@Nullable Branch branch)
-
isMatchesDefault
public boolean isMatchesDefault()
-
allBranches
public static BuildTypeBranchBean allBranches(@NotNull SBuildType buildType)
-
allBranches
public static BranchBean allBranches()
-
-