Class BambooSpecsGenerator
java.lang.Object
com.atlassian.bamboo.specs.codegen.BambooSpecsGenerator
Code generator for any Bamboo Spec entities, such us plan or deployment project.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfacestatic classRepresents a comment in Bamboo Specs. -
Constructor Summary
ConstructorsConstructorDescriptionBambooSpecsGenerator(com.atlassian.bamboo.specs.api.model.EntityProperties entityProperties) -
Method Summary
-
Constructor Details
-
BambooSpecsGenerator
public BambooSpecsGenerator() -
BambooSpecsGenerator
public BambooSpecsGenerator(com.atlassian.bamboo.specs.api.model.EntityProperties entityProperties) throws com.atlassian.bamboo.specs.api.exceptions.PropertiesValidationException - Throws:
com.atlassian.bamboo.specs.api.exceptions.PropertiesValidationException
-
-
Method Details
-
addEntity
public BambooSpecsGenerator addEntity(String entityName, com.atlassian.bamboo.specs.api.model.EntityProperties entityProperties) throws com.atlassian.bamboo.specs.api.exceptions.PropertiesValidationException - Throws:
com.atlassian.bamboo.specs.api.exceptions.PropertiesValidationException
-
emitCode
- Throws:
com.atlassian.bamboo.specs.api.codegen.CodeGenerationException
-
emitCode
public String emitCode(@NotNull @NotNull String bambooServerUrl) throws com.atlassian.bamboo.specs.api.codegen.CodeGenerationException - Throws:
com.atlassian.bamboo.specs.api.codegen.CodeGenerationException
-
emitCode
public String emitCode(@NotNull @NotNull String bambooServerUrl, @NotNull @NotNull String packageName, @NotNull @NotNull String className) throws com.atlassian.bamboo.specs.api.codegen.CodeGenerationException - Throws:
com.atlassian.bamboo.specs.api.codegen.CodeGenerationException
-
main
-