XsdDocumentDataMerger.java
1.37 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
/*
* Decompiled with CFR 0_118.
*
* Could not load the following classes:
* org.apache.sling.commons.json.JSONException
* org.apache.sling.commons.json.JSONObject
* org.slf4j.Logger
* org.slf4j.LoggerFactory
*/
package com.adobe.aemds.guide.utils;
import com.adobe.aemds.guide.utils.DocumentDataMerger;
import com.adobe.aemds.guide.utils.XMLUtils;
import java.util.Map;
import org.apache.sling.commons.json.JSONException;
import org.apache.sling.commons.json.JSONObject;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.w3c.dom.Document;
/*
* This class specifies class file version 49.0 but uses Java 6 signatures. Assumed Java 6.
*/
public class XsdDocumentDataMerger
extends DocumentDataMerger {
private Logger logger = LoggerFactory.getLogger(XsdDocumentDataMerger.class);
protected final String xsdRootElement;
public XsdDocumentDataMerger(JSONObject guideJson, Document mergeReferenceDocument, Map<String, Object> params) {
super(guideJson, mergeReferenceDocument, params);
this.xsdRootElement = XMLUtils.extractXsdRootElement(guideJson);
}
@Override
protected void setBindProperty() {
this.bindProperty = "bindRef";
}
@Override
protected String getComputedBindProperty(JSONObject jsonObject) throws JSONException {
return XMLUtils.getXSDRootBindRef(jsonObject, this.xsdRootElement);
}
}