Class YamlHelper
- java.lang.Object
-
- com.atlassian.bamboo.configuration.external.helpers.YamlHelper
-
public class YamlHelper extends Object
-
-
Constructor Summary
Constructors Constructor Description YamlHelper()
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static Path
dumpToFile(String yaml, File exportSubDir, String fileName)
static Path
dumpToYml(Object data, File exportSubDir, String fileName)
Deprecated.since 6.0 usedumpToYmlFile(EntityPropertiesBuilder, File, String)
insteadstatic 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>
Tparse(@NotNull String yamlString, Class<T> entityClass)
static <T extends com.atlassian.bamboo.specs.api.model.EntityProperties>
TparseAndNarrow(@NotNull String yamlString, Class<T> entityClass)
-
-
-
Method Detail
-
dumpToYml
@Deprecated public static Path dumpToYml(Object data, File exportSubDir, String fileName)
Deprecated.since 6.0 usedumpToYmlFile(EntityPropertiesBuilder, File, String)
instead
-
dumpToYmlFile
public static Path dumpToYmlFile(com.atlassian.bamboo.specs.api.builders.EntityPropertiesBuilder builder, File exportSubDir, String fileName)
-
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
-
-