EmbeddedFormsData.java 1.25 KB
/*
 * Decompiled with CFR 0_118.
 * 
 * Could not load the following classes:
 *  org.apache.sling.commons.json.JSONObject
 */
package com.adobe.aemds.guide.utils.guideJson;

import com.adobe.aemds.guide.utils.GuideUtils;
import org.apache.sling.commons.json.JSONObject;

public class EmbeddedFormsData {
    private String fragRef;
    private String containerPath;
    private String bindRef;
    private String templateId;

    public EmbeddedFormsData(JSONObject panel) {
        this.fragRef = panel.optString("fragRef", "");
        this.bindRef = panel.optString("bindRef", "");
        this.templateId = panel.optString("templateId", "");
        this.containerPath = GuideUtils.convertFMAssetPathToContainerPath(this.fragRef);
    }

    public String toString() {
        return "EmbeddedFormsData{, fragRef='" + this.fragRef + '\'' + ", containerPath='" + this.containerPath + '\'' + ", bindRef='" + this.bindRef + '\'' + ", templateId='" + this.templateId + '\'' + '}';
    }

    public String getContainerPath() {
        return this.containerPath;
    }

    public String getFragRef() {
        return this.fragRef;
    }

    public String getBindRef() {
        return this.bindRef;
    }

    public String getTemplateId() {
        return this.templateId;
    }
}