Package jenkins.scm.impl
Class ChangeRequestSCMHeadCategory
java.lang.Object
jenkins.scm.api.SCMCategory<SCMHead>
jenkins.scm.api.SCMHeadCategory
jenkins.scm.impl.ChangeRequestSCMHeadCategory
Standard category for
SCMHead instances that implement ChangeRequestSCMHead.- Since:
- 2.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ChangeRequestSCMHeadCategoryTheChangeRequestSCMHeadCategorysingleton with the default naming. -
Constructor Summary
ConstructorsConstructorDescriptionChangeRequestSCMHeadCategory(org.jvnet.localizer.Localizable displayName) Constructs aChangeRequestSCMHeadCategorywith customized naming. -
Method Summary
Modifier and TypeMethodDescriptionbooleanChecks if the supplied instance is a match for thisSCMCategory.Methods inherited from class jenkins.scm.api.SCMHeadCategory
addUncategorizedIfMissing, collect, collectAndSimplify, defaultDisplayName, simplify, unionMethods inherited from class jenkins.scm.api.SCMCategory
getDisplayName, getName, group, group, isMatch, isUncategorized, toDisplayName, toDisplayName, toShortUrl, toShortUrl
-
Field Details
-
DEFAULT
TheChangeRequestSCMHeadCategorysingleton with the default naming.
-
-
Constructor Details
-
ChangeRequestSCMHeadCategory
public ChangeRequestSCMHeadCategory(@NonNull org.jvnet.localizer.Localizable displayName) Constructs aChangeRequestSCMHeadCategorywith 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 Details
-
isMatch
Checks if the supplied instance is a match for thisSCMCategory.- Specified by:
isMatchin classSCMCategory<SCMHead>- Parameters:
instance- the instance to test.- Returns:
trueif the instance belongs to thisSCMCategory.
-