Package io.jenkins.plugins.casc.yaml
Interface MergeStrategy
-
- All Known Implementing Classes:
ErrorOnConflictMergeStrategy
,OverrideMergeStrategy
public interface MergeStrategy
YAML merge strategy between multiple files
-
-
Field Summary
Fields Modifier and Type Field Description static String
DEFAULT_STRATEGY
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description String
getName()
Name of the merge strategy which must be unique.void
merge(org.yaml.snakeyaml.nodes.Node firstNode, org.yaml.snakeyaml.nodes.Node secondNode, String source)
Merge two nodes which come from two YAML files
-
-
-
Field Detail
-
DEFAULT_STRATEGY
static final String DEFAULT_STRATEGY
- See Also:
- Constant Field Values
-
-
Method Detail
-
merge
void merge(org.yaml.snakeyaml.nodes.Node firstNode, org.yaml.snakeyaml.nodes.Node secondNode, String source) throws ConfiguratorException
Merge two nodes which come from two YAML files- Parameters:
firstNode
- the first node of a node listsecondNode
- the second node of a node listsource
- is the source of node- Throws:
ConfiguratorException
- if the merge fails
-
getName
String getName()
Name of the merge strategy which must be unique.- Returns:
- name of the merge strategy
-
-