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 ConstantsEnum 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 factoryto compare refs.Indicates the SCM supports cross-repository operations.Indicates the SCM supports file edit operations.Indicates the SCM supportsforkingits repositories.Deprecated.in 8.0 for removal when the classic SCM is removedIndicates the SCM supports integrity checksIndicates the SCM supports streaming thelast modificationfor files.Indicates the SCM supportsmerging branches.Indicates the SCM supports selectable merge strategies.Indicates the SCM supportsmirroring repositoriesIndicates the SCM supportsstreaming patches.Indicates the SCM provides acommand factoryto create, view and mergepull requests.Indicates the SCM supportspushinglocal repositories to an URL.Indicates the SCM supportsrevertingchanges in a repository.Indicates the SCM supports retrievingsigned objects.Indicates the SCM supportsupdating the default branchin its repositories. -
Method Summary
Modifier and TypeMethodDescriptionstatic ScmFeaturestatic ScmFeatureReturns 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.- Since:
- 5.1
- See Also:
-
BULK_COMMITS
Indicates the SCM supportsbulk commit retrieval.- Since:
- 5.8
- See Also:
-
BULK_CONTENT
Indicates the SCM supportsbulk content retrieval.- Since:
- 4.2
- See Also:
-
BULK_TRAVERSAL
Indicates the SCM supportsbulk commit traversal.- Since:
- 5.11
- See Also:
-
COMMAND_BUILDERS
Indicates the SCM supportsbuilders.- See Also:
-
COMPARE
Indicates the SCM provides acommand factoryto compare refs.Note: SCMs may support comparing refs
cross-repository, but they are not required to do so.- See Also:
-
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 likecommitsor opening apull requestbetween two repositories will fail.- See Also:
-
EDIT_FILE
Indicates the SCM supports file edit operations.- Since:
- 4.13
- See Also:
-
FORK
Indicates the SCM supportsforkingits repositories.SCMs which do not support forking will not support
cross-repositoryoperations, 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.- See Also:
-
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 modificationfor files.- Since:
- 4.6
- See Also:
-
MERGE
Indicates the SCM supportsmerging branches.Note: SCMs may support
cross-repositorymerges, merging a branch from one repository to a target branch in another, but they are not required to do so.- See Also:
-
MERGE_STRATEGIES
Indicates the SCM supports selectable merge strategies. Only SCMs which supportmerge commandsand/orpull requestsshould 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.- Since:
- 6.7
- See Also:
-
PULL_REQUESTS
Indicates the SCM provides acommand factoryto create, view and mergepull requests.Note: SCMs may support
cross-repositorypull requests, merging commits from one repository into another, but they are not required to do so.- See Also:
-
PUSH
Indicates the SCM supportspushinglocal repositories to an URL.- Since:
- 7.11
- See Also:
-
REFS
- See Also:
-
REVERT
Indicates the SCM supportsrevertingchanges 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 branchin its repositories.- See Also:
-
-
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
-