Class YamlHelper
java.lang.Object
com.atlassian.bamboo.configuration.external.helpers.YamlHelper
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Path
dumpToFile
(String yaml, File exportSubDir, String fileName) static Path
Deprecated.static Path
dumpToYmlFile
(com.atlassian.bamboo.specs.api.builders.EntityPropertiesBuilder builder, File exportSubDir, String fileName) static String
dumpToYmlString
(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