Enum Class ScmFeature
- All Implemented Interfaces:
Serializable
,Comparable<ScmFeature>
,Constable
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionIndicates the SCM supportsstreaming archives
.Indicates the SCM supportsbulk commit retrieval
.Indicates the SCM supportsbulk content retrieval
.Indicates the SCM supportsbulk commit traversal
.Indicates the SCM supportsbuilders
.Indicates the SCM provides acommand factory
to compare refs.Indicates the SCM supports cross-repository operations.Indicates the SCM supports file edit operations.Indicates the SCM supportsforking
its repositories.Deprecated.in 8.0 for removal when the classic SCM is removedIndicates the SCM supports integrity checksIndicates the SCM supports streaming thelast modification
for files.Indicates the SCM supportsmerging branches
.Indicates the SCM supports selectable merge strategies.Indicates the SCM supportsmirroring repositories
Indicates the SCM supportsstreaming patches
.Indicates the SCM provides acommand factory
to create, view and mergepull requests
.Indicates the SCM supportspushing
local repositories to an URL.Indicates the SCM supportsreverting
changes in a repository.Indicates the SCM supports retrievingsigned objects
.Indicates the SCM supportsupdating the default branch
in its repositories. -
Method Summary
Modifier and TypeMethodDescriptionstatic ScmFeature
static ScmFeature
Returns the enum constant of this class with the specified name.static ScmFeature[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ARCHIVE
Indicates the SCM supportsstreaming archives
. -
BULK_COMMITS
Indicates the SCM supportsbulk commit retrieval
. -
BULK_CONTENT
Indicates the SCM supportsbulk content retrieval
. -
BULK_TRAVERSAL
Indicates the SCM supportsbulk commit traversal
. -
COMMAND_BUILDERS
Indicates the SCM supportsbuilders
.- See Also:
-
COMPARE
Indicates the SCM provides acommand factory
to compare refs.Note: SCMs may support comparing refs
cross-repository
, but they are not required to do so. -
CROSS_REPOSITORY
Indicates the SCM supports cross-repository operations. This feature applies to: Implementing these features in a cross-repository manner may involve substantial additional complexity, so SCMs are free not to. When this feature is not supported, providing a secondary repository on commands likecommits
or opening apull request
between two repositories will fail.- See Also:
-
EDIT_FILE
Indicates the SCM supports file edit operations.- Since:
- 4.13
- See Also:
-
FORK
Indicates the SCM supportsforking
its repositories.SCMs which do not support forking will not support
cross-repository
operations, but just because forking is supported does not imply cross-repository support. The complexity of cross-repository operations can be substantially higher than the complexity of creating forks, for some SCMs, and forks can still offer value (for example, a sandboxed place to work) even if cross-repository operations are not possible. -
HOOKS
Deprecated.in 8.0 for removal when the classic SCM is removedIndicates the SCM provides a handler factory to apply repository-level hooks. Support for this feature has been removed in 8.0 -
INTEGRITY_CHECKS
Indicates the SCM supports integrity checks- Since:
- 4.12
-
LAST_MODIFIED
Indicates the SCM supports streaming thelast modification
for files.- Since:
- 4.6
- See Also:
-
MERGE
Indicates the SCM supportsmerging branches
.Note: SCMs may support
cross-repository
merges, merging a branch from one repository to a target branch in another, but they are not required to do so. -
MERGE_STRATEGIES
Indicates the SCM supports selectable merge strategies. Only SCMs which supportmerge commands
and/orpull requests
should mark this feature as supported.Generally an SCM should support at least two strategies if this feature is enabled since, with only a single strategy, the strategy isn't actually selectable. But the only requirement of this feature is that the SCM must support at least one strategy.
- Since:
- 4.9
-
MIRRORS
Indicates the SCM supportsmirroring repositories
- Since:
- 4.1
- See Also:
-
PATCH
Indicates the SCM supportsstreaming patches
. -
PULL_REQUESTS
Indicates the SCM provides acommand factory
to create, view and mergepull requests
.Note: SCMs may support
cross-repository
pull requests, merging commits from one repository into another, but they are not required to do so. -
PUSH
Indicates the SCM supportspushing
local repositories to an URL. -
REFS
-
REVERT
Indicates the SCM supportsreverting
changes in a repository.- Since:
- 8.13
- See Also:
-
SIGNED_OBJECTS
Indicates the SCM supports retrievingsigned objects
.- Since:
- 5.1
-
UPDATE_DEFAULT_BRANCH
Indicates the SCM supportsupdating the default branch
in its repositories.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
parse
-