Package com.atlassian.bamboo.plan
Class VcsBambooSpecsSourceImpl
- java.lang.Object
-
- com.atlassian.bamboo.plan.VcsBambooSpecsSourceImpl
-
- All Implemented Interfaces:
ImmutableVcsBambooSpecsSource
,VcsBambooSpecsSource
@Entity public class VcsBambooSpecsSourceImpl extends Object implements VcsBambooSpecsSource
-
-
Constructor Summary
Constructors Constructor Description VcsBambooSpecsSourceImpl()
VcsBambooSpecsSourceImpl(@NotNull VcsLocationBambooSpecsStateImpl vcsLocationBambooSpecsStateImpl, String sourceLocation)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
Long
getId()
@NotNull Optional<String>
getSourceLocation()
@NotNull VcsLocationBambooSpecsState
getVcsLocationBambooSpecsState()
int
hashCode()
boolean
isYamlConfiguration()
static VcsBambooSpecsSourceImpl
javaSpecsSource(@NotNull VcsLocationBambooSpecsStateImpl vcsLocationBambooSpecsState)
Creates instance of Specs Source which references Java Specs.void
setId(Long id)
void
setSourceLocation(String sourceLocation)
void
setVcsLocationBambooSpecsState(VcsLocationBambooSpecsStateImpl vcsLocationBambooSpecsState)
String
toString()
static VcsBambooSpecsSourceImpl
yamlSpecsSource(@NotNull VcsLocationBambooSpecsStateImpl vcsLocationBambooSpecsState, String sourceFilename)
Creates instance of Specs Source which references YAML file
-
-
-
Constructor Detail
-
VcsBambooSpecsSourceImpl
public VcsBambooSpecsSourceImpl()
-
VcsBambooSpecsSourceImpl
public VcsBambooSpecsSourceImpl(@NotNull @NotNull VcsLocationBambooSpecsStateImpl vcsLocationBambooSpecsStateImpl, String sourceLocation)
-
-
Method Detail
-
getId
public Long getId()
- Specified by:
getId
in interfaceImmutableVcsBambooSpecsSource
-
setId
public void setId(Long id)
-
getVcsLocationBambooSpecsState
@NotNull public @NotNull VcsLocationBambooSpecsState getVcsLocationBambooSpecsState()
- Specified by:
getVcsLocationBambooSpecsState
in interfaceImmutableVcsBambooSpecsSource
- Specified by:
getVcsLocationBambooSpecsState
in interfaceVcsBambooSpecsSource
- Returns:
- referenced Specs state
-
setVcsLocationBambooSpecsState
public void setVcsLocationBambooSpecsState(VcsLocationBambooSpecsStateImpl vcsLocationBambooSpecsState)
-
getSourceLocation
@NotNull public @NotNull Optional<String> getSourceLocation()
- Specified by:
getSourceLocation
in interfaceImmutableVcsBambooSpecsSource
- Returns:
- Specs source filename
-
setSourceLocation
public void setSourceLocation(String sourceLocation)
-
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
-
-