
com.adobe.aemds.guide.utils.AdaptiveFormData Maven / Gradle / Ivy
package com.adobe.aemds.guide.utils;
import com.adobe.forms.common.service.FileAttachmentWrapper;
import org.apache.sling.commons.json.JSONObject;
import org.w3c.dom.Document;
import java.util.List;
/**
* @pad.exclude Exclude from Published API.
*/
public class AdaptiveFormData {
private String xmlStr;
private String bindRef;
private String path;
private List attachments;
public AdaptiveFormData(String xmlStr, String bindRef, String path, List attachments) {
this.xmlStr = xmlStr;
this.bindRef = bindRef;
this.path = path;
this.attachments = attachments;
}
public String getXmlStr() {
return xmlStr;
}
public String getBindRef() {
return bindRef;
}
public String getPath() {
return path;
}
public List getAttachments() {
return attachments;
}
@Override
public String toString() {
String attachemntNames = "";
if(attachments != null) {
for (FileAttachmentWrapper attachment: attachments){
attachemntNames = attachemntNames + "\t" + attachment.getFileName();
}
}
return "AdaptiveFormData{" +
", path='" + path + '\'' + "\n\n" +
", bindRef='" + bindRef + '\'' + "\n\n" +
"xml=\n" + xmlStr + "\n\n" +
"attachment names = " + attachemntNames + "\n" + '}'
+"\n\n\n";
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy