Package jenkins.scm.impl
Class TagSCMHeadCategory
- java.lang.Object
-
- jenkins.scm.api.SCMCategory<SCMHead>
-
- jenkins.scm.api.SCMHeadCategory
-
- jenkins.scm.impl.TagSCMHeadCategory
-
public final class TagSCMHeadCategory extends SCMHeadCategory
Standard category forSCMHead
instances that implementTagSCMHead
.- Since:
- 2.0
-
-
Field Summary
Fields Modifier and Type Field Description static TagSCMHeadCategory
DEFAULT
TheTagSCMHeadCategory
singleton with the default naming.
-
Constructor Summary
Constructors Constructor Description TagSCMHeadCategory(org.jvnet.localizer.Localizable displayName)
Constructs aTagSCMHeadCategory
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 TagSCMHeadCategory DEFAULT
TheTagSCMHeadCategory
singleton with the default naming.
-
-
Constructor Detail
-
TagSCMHeadCategory
public TagSCMHeadCategory(@NonNull org.jvnet.localizer.Localizable displayName)
Constructs aTagSCMHeadCategory
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
.
-
-