Partilhar via


SourceControlType Class

public final class SourceControlType
extends ExpandableStringEnum<SourceControlType>

The type of source control service.

Field Summary

Modifier and Type Field and Description
static final SourceControlType GITHUB

Static value Github for SourceControlType.

static final SourceControlType VISUAL_STUDIO_TEAM_SERVICE

Static value VisualStudioTeamService for SourceControlType.

Constructor Summary

Constructor Description
SourceControlType()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of SourceControlType value.

Method Summary

Modifier and Type Method and Description
static SourceControlType fromString(String name)

Creates or finds a SourceControlType from its string representation.

static Collection<SourceControlType> values()

Gets known SourceControlType values.

Methods inherited from ExpandableStringEnum

Methods inherited from java.lang.Object

Field Details

GITHUB

public static final SourceControlType GITHUB

Static value Github for SourceControlType.

VISUAL_STUDIO_TEAM_SERVICE

public static final SourceControlType VISUAL_STUDIO_TEAM_SERVICE

Static value VisualStudioTeamService for SourceControlType.

Constructor Details

SourceControlType

@Deprecated
public SourceControlType()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of SourceControlType value.

Method Details

fromString

public static SourceControlType fromString(String name)

Creates or finds a SourceControlType from its string representation.

Parameters:

name - a name to look for.

Returns:

the corresponding SourceControlType.

values

public static Collection values()

Gets known SourceControlType values.

Returns:

known SourceControlType values.

Applies to