io.cloudslang.content.xml.entities.inputs.ApplyXslTransformationInputs Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of cs-xml Show documentation
Show all versions of cs-xml Show documentation
Actions for xml processing
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