Package jenkins.scm.impl
Class ChangeRequestSCMHeadCategory
- java.lang.Object
-
- jenkins.scm.api.SCMCategory<SCMHead>
-
- jenkins.scm.api.SCMHeadCategory
-
- jenkins.scm.impl.ChangeRequestSCMHeadCategory
-
public final class ChangeRequestSCMHeadCategory extends SCMHeadCategory
Standard category forSCMHead
instances that implementChangeRequestSCMHead
.- Since:
- 2.0
-
-
Field Summary
Fields Modifier and Type Field Description static ChangeRequestSCMHeadCategory
DEFAULT
TheChangeRequestSCMHeadCategory
singleton with the default naming.
-
Constructor Summary
Constructors Constructor Description ChangeRequestSCMHeadCategory(org.jvnet.localizer.Localizable displayName)
Constructs aChangeRequestSCMHeadCategory
with customized naming.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isMatch(SCMHead instance)
Checks if the supplied instance is a match for thisSCMCategory
.-
Methods inherited from class jenkins.scm.api.SCMHeadCategory
addUncategorizedIfMissing, collect, collectAndSimplify, defaultDisplayName, simplify, union
-
Methods inherited from class jenkins.scm.api.SCMCategory
getDisplayName, getName, group, group, isMatch, isUncategorized, toDisplayName, toDisplayName, toShortUrl, toShortUrl
-
-
-
-
Field Detail
-
DEFAULT
public static final ChangeRequestSCMHeadCategory DEFAULT
TheChangeRequestSCMHeadCategory
singleton with the default naming.
-
-
Constructor Detail
-
ChangeRequestSCMHeadCategory
public ChangeRequestSCMHeadCategory(@NonNull org.jvnet.localizer.Localizable displayName)
Constructs aChangeRequestSCMHeadCategory
with customized naming. Use this constructor when the generic naming is not appropriate terminology for the specificSCMSource
's naming of change requests.- Parameters:
displayName
- the display name for change requests.
-
-
Method Detail
-
isMatch
public boolean isMatch(@NonNull SCMHead instance)
Checks if the supplied instance is a match for thisSCMCategory
.- Specified by:
isMatch
in classSCMCategory<SCMHead>
- Parameters:
instance
- the instance to test.- Returns:
true
if the instance belongs to thisSCMCategory
.
-
-