Package com.atlassian.bamboo.plan
Class VcsBambooSpecsSourceImpl
java.lang.Object
com.atlassian.bamboo.plan.VcsBambooSpecsSourceImpl
- All Implemented Interfaces:
ImmutableVcsBambooSpecsSource
,VcsBambooSpecsSource
-
Constructor Summary
ConstructorDescriptionVcsBambooSpecsSourceImpl
(@NotNull VcsLocationBambooSpecsStateImpl vcsLocationBambooSpecsStateImpl, String sourceLocation) -
Method Summary
Modifier and TypeMethodDescriptionboolean
getId()
@NotNull VcsLocationBambooSpecsState
int
hashCode()
boolean
static VcsBambooSpecsSourceImpl
javaSpecsSource
(@NotNull VcsLocationBambooSpecsStateImpl vcsLocationBambooSpecsState) Creates instance of Specs Source which references Java Specs.void
void
setSourceLocation
(String sourceLocation) void
setVcsLocationBambooSpecsState
(VcsLocationBambooSpecsStateImpl vcsLocationBambooSpecsState) toString()
static VcsBambooSpecsSourceImpl
yamlSpecsSource
(@NotNull VcsLocationBambooSpecsStateImpl vcsLocationBambooSpecsState, String sourceFilename) Creates instance of Specs Source which references YAML file
-
Constructor Details
-
VcsBambooSpecsSourceImpl
public VcsBambooSpecsSourceImpl() -
VcsBambooSpecsSourceImpl
public VcsBambooSpecsSourceImpl(@NotNull @NotNull VcsLocationBambooSpecsStateImpl vcsLocationBambooSpecsStateImpl, String sourceLocation)
-
-
Method Details
-
getId
- Specified by:
getId
in interfaceImmutableVcsBambooSpecsSource
-
setId
-
getVcsLocationBambooSpecsState
- Specified by:
getVcsLocationBambooSpecsState
in interfaceImmutableVcsBambooSpecsSource
- Specified by:
getVcsLocationBambooSpecsState
in interfaceVcsBambooSpecsSource
- Returns:
- referenced Specs state
-
setVcsLocationBambooSpecsState
public void setVcsLocationBambooSpecsState(VcsLocationBambooSpecsStateImpl vcsLocationBambooSpecsState) -
getSourceLocation
- Specified by:
getSourceLocation
in interfaceImmutableVcsBambooSpecsSource
- Returns:
- Specs source filename
-
setSourceLocation
-
isYamlConfiguration
public boolean isYamlConfiguration()Description copied from interface:ImmutableVcsBambooSpecsSource
- Specified by:
isYamlConfiguration
in interfaceImmutableVcsBambooSpecsSource
- Returns:
true
if plan was created via Yaml Specs.Contract
ImmutableVcsBambooSpecsSource.getSourceLocation()
is not null or empty then it's Yaml plan.
-
javaSpecsSource
public static VcsBambooSpecsSourceImpl javaSpecsSource(@NotNull @NotNull VcsLocationBambooSpecsStateImpl vcsLocationBambooSpecsState) Creates instance of Specs Source which references Java Specs. -
yamlSpecsSource
public static VcsBambooSpecsSourceImpl yamlSpecsSource(@NotNull @NotNull VcsLocationBambooSpecsStateImpl vcsLocationBambooSpecsState, String sourceFilename) Creates instance of Specs Source which references YAML file -
equals
-
hashCode
public int hashCode() -
toString
-