public final class UncategorizedSCMHeadCategory extends SCMHeadCategory
Modifier and Type | Field and Description |
---|---|
static UncategorizedSCMHeadCategory |
DEFAULT
The
UncategorizedSCMHeadCategory singleton with the default naming. |
Constructor and Description |
---|
UncategorizedSCMHeadCategory(org.jvnet.localizer.Localizable displayName)
Constructs a
UncategorizedSCMHeadCategory with customized naming. |
Modifier and Type | Method and Description |
---|---|
boolean |
isMatch(SCMHead instance)
Checks if the supplied instance is a match for this
SCMCategory . |
addUncategorizedIfMissing, collect, collectAndSimplify, defaultDisplayName, simplify, union
getDisplayName, getName, group, group, isMatch, isUncategorized, toDisplayName, toDisplayName, toShortUrl, toShortUrl
public static final UncategorizedSCMHeadCategory DEFAULT
UncategorizedSCMHeadCategory
singleton with the default naming.public UncategorizedSCMHeadCategory(@NonNull org.jvnet.localizer.Localizable displayName)
UncategorizedSCMHeadCategory
with customized naming. Use this constructor when the generic
naming is not appropriate terminology for the specific SCMSource
's naming of branches.
For example: the Accurev source control system uses the term "streams" to refer to the same thing that
Git would call "branches", it would confuse Accurev users if we called their "streams" as "branches" so an
Accurev specific provider would use this constructor to generate a singleton with the "streams" name.
If there is a Git and Accurev source in the same context then
SCMHeadCategory.collectAndSimplify(Iterable)
will contain an UncategorizedSCMHeadCategory
under
the default
key that has a SCMCategory.getDisplayName()
of Branches / Streams
displayName
- the display name for the uncategorized SCMHead
s when the source control system uses a
different terminology from "branches".public boolean isMatch(@NonNull SCMHead instance)
SCMCategory
.isMatch
in class SCMCategory<SCMHead>
instance
- the instance to test.true
if the instance belongs to this SCMCategory
.Copyright © 2016–2022. All rights reserved.