Interface SpecsExporter
-
- All Known Implementing Classes:
SpecsExporterImpl
@ExperimentalApi public interface SpecsExporter
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
SpecsExporter.ExportFormat
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description String
getCodeFromDeploymentProject(DeploymentProject deploymentProject, SpecsExporter.ExportFormat format, String packageName, String className)
Convert a deployment plan to a Java Bamboo SpecString
getCodeFromPlan(ImmutableTopLevelPlan immutableTopLevelPlan)
Delegates togetCodeFromPlan(ImmutableTopLevelPlan, ExportFormat, String, String)
with a default packageName and classNameString
getCodeFromPlan(ImmutableTopLevelPlan immutableTopLevelPlan, SpecsExporter.ExportFormat format, @Nullable String packageName, @Nullable String className)
Convert a plan to a Java Bamboo Spec
-
-
-
Method Detail
-
getCodeFromPlan
String getCodeFromPlan(ImmutableTopLevelPlan immutableTopLevelPlan) throws com.atlassian.bamboo.specs.api.codegen.CodeGenerationException
Delegates togetCodeFromPlan(ImmutableTopLevelPlan, ExportFormat, String, String)
with a default packageName and className- Parameters:
immutableTopLevelPlan
-- Throws:
com.atlassian.bamboo.specs.api.codegen.CodeGenerationException
-
getCodeFromPlan
String getCodeFromPlan(ImmutableTopLevelPlan immutableTopLevelPlan, SpecsExporter.ExportFormat format, @Nullable @Nullable String packageName, @Nullable @Nullable String className) throws com.atlassian.bamboo.specs.api.codegen.CodeGenerationException
Convert a plan to a Java Bamboo Spec- Parameters:
immutableTopLevelPlan
- The top level plan to extractformat
- specs format (Java or YAML)packageName
- The package to put the spec inclassName
- The class name for the spec- Throws:
com.atlassian.bamboo.specs.api.codegen.CodeGenerationException
- if generating the file fails
-
getCodeFromDeploymentProject
String getCodeFromDeploymentProject(DeploymentProject deploymentProject, SpecsExporter.ExportFormat format, String packageName, String className) throws com.atlassian.bamboo.specs.api.codegen.CodeGenerationException
Convert a deployment plan to a Java Bamboo Spec- Parameters:
deploymentProject
- The top level plan to extractformat
- specs format (Java or YAML)packageName
- The package to put the spec inclassName
- The class name for the spec- Throws:
com.atlassian.bamboo.specs.api.codegen.CodeGenerationException
- if generating the file fails
-
-