Class BambooSpecsGenerator


  • public class BambooSpecsGenerator
    extends java.lang.Object
    Code generator for any Bamboo Spec entities, such us plan or deployment project.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      BambooSpecsGenerator addEntity​(java.lang.String entityName, com.atlassian.bamboo.specs.api.model.EntityProperties entityProperties)  
      java.lang.String emitCode()  
      java.lang.String emitCode​(@NotNull java.lang.String bambooServerUrl)  
      java.lang.String emitCode​(@NotNull java.lang.String bambooServerUrl, @NotNull java.lang.String packageName, @NotNull java.lang.String className)  
      static void main​(java.lang.String... argv)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

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

      • addEntity

        public BambooSpecsGenerator addEntity​(java.lang.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 java.lang.String emitCode()
                                  throws com.atlassian.bamboo.specs.api.codegen.CodeGenerationException
        Throws:
        com.atlassian.bamboo.specs.api.codegen.CodeGenerationException
      • emitCode

        public java.lang.String emitCode​(@NotNull
                                         @NotNull java.lang.String bambooServerUrl)
                                  throws com.atlassian.bamboo.specs.api.codegen.CodeGenerationException
        Throws:
        com.atlassian.bamboo.specs.api.codegen.CodeGenerationException
      • emitCode

        public java.lang.String emitCode​(@NotNull
                                         @NotNull java.lang.String bambooServerUrl,
                                         @NotNull
                                         @NotNull java.lang.String packageName,
                                         @NotNull
                                         @NotNull java.lang.String className)
                                  throws com.atlassian.bamboo.specs.api.codegen.CodeGenerationException
        Throws:
        com.atlassian.bamboo.specs.api.codegen.CodeGenerationException
      • main

        public static void main​(java.lang.String... argv)