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.
  • 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

      public String emitCode() throws com.atlassian.bamboo.specs.api.codegen.CodeGenerationException
      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

      public static void main(String... argv)