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

io.cloudslang.content.xml.entities.inputs.ApplyXslTransformationInputs Maven / Gradle / Ivy

There is a newer version: 0.0.15
Show newest version
package io.cloudslang.content.xml.entities.inputs;

import io.cloudslang.content.utils.StringUtilities;
import io.cloudslang.content.xml.utils.Constants;

/**
 * Created by moldovas on 08/07/2016.
 */
public class ApplyXslTransformationInputs {
    private String xmlDocument;
    private String xslTemplate;
    private String outputFile;
    private String parsingFeatures;

    private ApplyXslTransformationInputs(ApplyXslTransformationInputsBuilder builder) {
        this.xmlDocument = builder.xmlDocument;
        this.xslTemplate = builder.xslTemplate;
        this.outputFile = builder.outputFile;
        this.parsingFeatures = builder.parsingFeatures;
    }

    public String getXmlDocument() {
        return xmlDocument;
    }

    public String getXslTemplate() {
        return xslTemplate;
    }

    public String getOutputFile() {
        return outputFile;
    }

    public String getParsingFeatures() {
        return parsingFeatures;
    }

    public static class ApplyXslTransformationInputsBuilder {
        private String xmlDocument;
        private String xslTemplate;
        private String outputFile;
        private String parsingFeatures;

        public ApplyXslTransformationInputs build() {
            return new ApplyXslTransformationInputs(this);
        }


        public ApplyXslTransformationInputsBuilder withXmlDocument(String inputValue) {
            xmlDocument = StringUtilities.defaultIfBlank(inputValue,Constants.EMPTY_STRING);
            return this;
        }

        public ApplyXslTransformationInputsBuilder withXslTemplate(String inputValue) {
            xslTemplate = inputValue;
            return this;
        }

        public ApplyXslTransformationInputsBuilder withOutputFile(String inputValue) {
            outputFile = StringUtilities.defaultIfBlank(inputValue, Constants.EMPTY_STRING);
            return this;
        }

        public ApplyXslTransformationInputsBuilder withParsingFeatures(String inputValue) {
            parsingFeatures = inputValue;
            return this;
        }
    }
}





© 2015 - 2025 Weber Informatics LLC | Privacy Policy