Class BambooSpecsGenerator
- java.lang.Object
-
- com.atlassian.bamboo.specs.codegen.BambooSpecsGenerator
-
public class BambooSpecsGenerator extends Object
Code generator for any Bamboo Spec entities, such us plan or deployment project.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceBambooSpecsGenerator.CodeSupplierstatic classBambooSpecsGenerator.CommentRepresents a comment in Bamboo Specs.
-
Constructor Summary
Constructors Constructor Description BambooSpecsGenerator()BambooSpecsGenerator(EntityProperties entityProperties)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description BambooSpecsGeneratoraddEntity(String entityName, EntityProperties entityProperties)StringemitCode()StringemitCode(@NotNull String bambooServerUrl)StringemitCode(@NotNull String bambooServerUrl, @NotNull String packageName, @NotNull String className)static voidmain(String... argv)
-
-
-
Constructor Detail
-
BambooSpecsGenerator
public BambooSpecsGenerator()
-
BambooSpecsGenerator
public BambooSpecsGenerator(EntityProperties entityProperties) throws PropertiesValidationException
- Throws:
PropertiesValidationException
-
-
Method Detail
-
addEntity
public BambooSpecsGenerator addEntity(String entityName, EntityProperties entityProperties) throws PropertiesValidationException
- Throws:
PropertiesValidationException
-
emitCode
public String emitCode() throws CodeGenerationException
- Throws:
CodeGenerationException
-
emitCode
public String emitCode(@NotNull @NotNull String bambooServerUrl) throws CodeGenerationException
- Throws:
CodeGenerationException
-
emitCode
public String emitCode(@NotNull @NotNull String bambooServerUrl, @NotNull @NotNull String packageName, @NotNull @NotNull String className) throws CodeGenerationException
- Throws:
CodeGenerationException
-
main
public static void main(String... argv)
-
-