public class JSONMerger extends Object implements com.devonfw.cobigen.api.extension.Merger
JSONMerger merges a patch and the base file of the same JSON file. The merger is a recursive
method that goes through all children of each JsonElement merging them if necessary| Constructor and Description |
|---|
JSONMerger(String type,
boolean patchOverrides)
Creates a new
JSONMerger |
| Modifier and Type | Method and Description |
|---|---|
String |
getType() |
String |
merge(File base,
String patch,
String targetCharset) |
public JSONMerger(String type, boolean patchOverrides)
JSONMergertype - merger typepatchOverrides - if true, conflicts will be resolved by using the patch contentsfalse, conflicts will be resolved by using the base contentspublic String getType()
getType in interface com.devonfw.cobigen.api.extension.MergerCopyright © 2018 DevonFw. All rights reserved.