@Override PatchElementBuilder modifyLayer(String name, boolean addOn) { final PatchElementConfigBuilder config = PatchConfigBuilder.this.elements.get(name); if (config == null) { return null; //throw processingError("missing patch-config for layer %s", name); } final PatchElementBuilder builder; if (config.getPatchType() == null) { config.setPatchType(patchType); } if (patchType == Patch.PatchType.CUMULATIVE) { builder = upgradeElement(config.getPatchId(), name, addOn); } else { builder = oneOffPatchElement(config.getPatchId(), name, addOn); } if (config.getDescription() != null) { builder.setDescription(config.getDescription()); } builder.setContentItemFilter(config); return builder; } };
} else { final PatchElementBuilder elementBuilder = builder.upgradeElement(cp2El.getId(), provider.getName(), provider.isAddOn()).setDescription(cp2El.getDescription());
} else { final PatchElementBuilder elementBuilder = builder.upgradeElement(cp2El.getId(), provider.getName(), provider.isAddOn()).setDescription(cp2El.getDescription());
.addContentModification(fileModified) .oneOffPatchElement(patchElementId, "base", false) .setDescription(oneOffElementDescr) .addContentModification(moduleModified) .getParent() .addContentModification(fileModified2) .upgradeElement(patchElementId2, "base", false) .setDescription(cpElementDescr) .addContentModification(moduleModified2) .getParent()
.addContentModification(fileModified) .oneOffPatchElement(patchElementId, "base", false) .setDescription(oneOffElementDescr) .addContentModification(moduleModified) .getParent() .addContentModification(fileModified2) .upgradeElement(patchElementId2, "base", false) .setDescription(cpElementDescr) .addContentModification(moduleModified2) .getParent()