public interface BambooYamlSpecsService
Modifier and Type | Method and Description |
---|---|
BambooYamlEntityType |
determineEntityType(Map<String,Object> yamlStructure)
Determine YAML entity type which is defined in a given YAML document.
|
BambooYamlVersion |
determineVersion(Map<String,Object> yamlStructure)
Determine YAML version in a document from the given YAML structure.
|
List<Map<String,Object>> |
splitDocuments(String yamlString,
Path yamlDirectory)
Splits the given
yamlString into multiple documents, converting them to Map entities. |
@NotNull List<Map<String,Object>> splitDocuments(@NotNull String yamlString, @Nullable Path yamlDirectory) throws YamlSpecsValidationException
yamlString
into multiple documents, converting them to Map
entities.
No additional processing of the YAML is occurring in this step.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 documentYamlSpecsValidationException
- if the YAML string is invalid@NotNull BambooYamlVersion determineVersion(@NotNull Map<String,Object> yamlStructure) throws YamlSpecsValidationException
yamlStructure
- structure of a parsed YAML documentYamlSpecsValidationException
- if the version is invalid@NotNull BambooYamlEntityType determineEntityType(@NotNull Map<String,Object> yamlStructure) throws YamlSpecsValidationException
yamlStructure
- structure of a parsed YAML documentYamlSpecsValidationException
- if the entity type can't be determinedCopyright © 2021 Atlassian Software Systems Pty Ltd. All rights reserved.