public class YamlHelper extends Object
| Constructor and Description |
|---|
YamlHelper() |
| Modifier and Type | Method and Description |
|---|---|
static Path |
dumpToFile(String yaml,
File exportSubDir,
String fileName) |
static Path |
dumpToYml(Object data,
File exportSubDir,
String fileName)
Deprecated.
since 6.0 use
dumpToYmlFile(EntityPropertiesBuilder, File, String) instead |
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> |
parse(@NotNull String yamlString,
Class<T> entityClass) |
static <T extends com.atlassian.bamboo.specs.api.model.EntityProperties> |
parseAndNarrow(@NotNull String yamlString,
Class<T> entityClass) |
@Deprecated public static Path dumpToYml(Object data, File exportSubDir, String fileName)
dumpToYmlFile(EntityPropertiesBuilder, File, String) insteadpublic static Path dumpToYmlFile(com.atlassian.bamboo.specs.api.builders.EntityPropertiesBuilder builder, File exportSubDir, String fileName)
public static String dumpToYmlString(com.atlassian.bamboo.specs.api.builders.EntityPropertiesBuilder builder)
@NotNull
public static <T extends com.atlassian.bamboo.specs.api.model.EntityProperties> T parse(@NotNull
@NotNull String yamlString,
Class<T> entityClass)
throws YamlValidationException
YamlValidationException@NotNull
public static <T extends com.atlassian.bamboo.specs.api.model.EntityProperties> T parseAndNarrow(@NotNull
@NotNull String yamlString,
Class<T> entityClass)
throws YamlValidationException
YamlValidationExceptionCopyright © 2022 Atlassian Software Systems Pty Ltd. All rights reserved.