All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.devonfw.cobigen.api.to.MergeTo Maven / Gradle / Ivy

There is a newer version: 2021.12.006
Show newest version
package com.devonfw.cobigen.api.to;

/**
 * Contains all the properties needed for requesting a merge on two files. It gets serialized and sent over
 * the network
 */
public class MergeTo {

    /**
     * Content of the base file
     */
    private String baseContent;

    /**
     * Content of the patch file
     */
    private String patchContent;

    /**
     * If true, in case of conflict, we will override base content with patch content. By default it should be
     * false.
     */
    private Boolean patchOverrides;

    /**
     * The constructor.
     *
     * @param baseContent
     *            Content of the base file
     * @param patchContent
     *            Content of the patch file
     * @param patchOverrides
     *            If true, in case of conflict, we will override base content with patch content
     */
    public MergeTo(String baseContent, String patchContent, Boolean patchOverrides) {

        super();
        this.baseContent = baseContent;
        this.patchContent = patchContent;
        this.patchOverrides = patchOverrides;
    }

    /**
     * @return baseContent
     */
    public String getBaseContent() {

        return baseContent;
    }

    /**
     * @param baseContent
     *            new value of {@link #baseContent}.
     */
    public void setBaseContent(String baseContent) {

        this.baseContent = baseContent;
    }

    /**
     * @return patchContent
     */
    public String getPatchContent() {

        return patchContent;
    }

    /**
     * @param patchContent
     *            new value of {@link #patchContent}.
     */
    public void setPatchContent(String patchContent) {

        this.patchContent = patchContent;
    }

    /**
     * @return patchOverrides
     */
    public Boolean getPatchOverrides() {

        return patchOverrides;
    }

    /**
     * @param patchOverrides
     *            new value of {@link #patchOverrides}.
     */
    public void setPatchOverrides(Boolean patchOverrides) {

        this.patchOverrides = patchOverrides;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy