public class BambooYamlSpecsServiceImpl extends Object implements BambooYamlSpecsService
Constructor and Description |
---|
BambooYamlSpecsServiceImpl() |
Modifier and Type | Method and Description |
---|---|
@NotNull BambooYamlEntityType |
determineEntityType(@NotNull Map<String,Object> yamlStructure)
Determine YAML entity type which is defined in a given YAML document.
|
@NotNull BambooYamlVersion |
determineVersion(@NotNull Map<String,Object> yamlStructure)
Determine YAML version in a document from the given YAML structure.
|
@NotNull List<Map<String,Object>> |
splitDocuments(@NotNull String yamlString,
@Nullable Path yamlDirectory)
Splits the given
yamlString into multiple documents, converting them to Map entities. |
@NotNull public @NotNull List<Map<String,Object>> splitDocuments(@NotNull @NotNull String yamlString, @Nullable @Nullable Path yamlDirectory)
BambooYamlSpecsService
yamlString
into multiple documents, converting them to Map
entities.
No additional processing of the YAML is occurring in this step.splitDocuments
in interface BambooYamlSpecsService
yamlString
- YAML string representing an entire YAML file, may define multiple documentsyamlDirectory
- YAML directory in case of using include filesMap
s created by parsing each YAML document@NotNull public @NotNull BambooYamlVersion determineVersion(@NotNull @NotNull Map<String,Object> yamlStructure) throws YamlSpecsValidationException
BambooYamlSpecsService
determineVersion
in interface BambooYamlSpecsService
yamlStructure
- structure of a parsed YAML documentYamlSpecsValidationException
- if the version is invalid@NotNull public @NotNull BambooYamlEntityType determineEntityType(@NotNull @NotNull Map<String,Object> yamlStructure) throws YamlSpecsValidationException
BambooYamlSpecsService
determineEntityType
in interface BambooYamlSpecsService
yamlStructure
- structure of a parsed YAML documentYamlSpecsValidationException
- if the entity type can't be determinedCopyright © 2022 Atlassian Software Systems Pty Ltd. All rights reserved.
View cookie preferences