Class YamlHelper
java.lang.Object
com.atlassian.bamboo.configuration.external.helpers.YamlHelper
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic PathdumpToFile(String yaml, File exportSubDir, String fileName) static PathDeprecated.static PathdumpToYmlFile(com.atlassian.bamboo.specs.api.builders.EntityPropertiesBuilder builder, File exportSubDir, String fileName) static StringdumpToYmlString(com.atlassian.bamboo.specs.api.builders.EntityPropertiesBuilder builder) static <T extends com.atlassian.bamboo.specs.api.model.EntityProperties>
Tstatic <T extends com.atlassian.bamboo.specs.api.model.EntityProperties>
TparseAndNarrow(@NotNull String yamlString, Class<T> entityClass)
-
Constructor Details
-
YamlHelper
public YamlHelper()
-
-
Method Details
-
dumpToYml
Deprecated.since 6.0 usedumpToYmlFile(EntityPropertiesBuilder, File, String)instead -
dumpToYmlFile
-
dumpToFile
-
dumpToYmlString
public static String dumpToYmlString(com.atlassian.bamboo.specs.api.builders.EntityPropertiesBuilder builder) -
parse
@NotNull public static <T extends com.atlassian.bamboo.specs.api.model.EntityProperties> T parse(@NotNull @NotNull String yamlString, Class<T> entityClass) throws YamlValidationException - Throws:
YamlValidationException
-
parseAndNarrow
@NotNull public static <T extends com.atlassian.bamboo.specs.api.model.EntityProperties> T parseAndNarrow(@NotNull @NotNull String yamlString, Class<T> entityClass) throws YamlValidationException - Throws:
YamlValidationException
-
dumpToYmlFile(EntityPropertiesBuilder, File, String)instead