ReportSuiteTrafficVar.java
1.19 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
/*
* Decompiled with CFR 0_118.
*
* Could not load the following classes:
* org.apache.sling.commons.json.JSONArray
* org.apache.sling.commons.json.JSONException
* org.apache.sling.commons.json.JSONObject
*/
package com.day.cq.analytics.sitecatalyst.rsmerger.impl;
import com.day.cq.analytics.sitecatalyst.rsmerger.AbstractReportSuite;
import com.day.cq.analytics.sitecatalyst.rsmerger.impl.TrafficVar;
import java.util.ArrayList;
import java.util.Collection;
import org.apache.sling.commons.json.JSONArray;
import org.apache.sling.commons.json.JSONException;
import org.apache.sling.commons.json.JSONObject;
@Deprecated
public class ReportSuiteTrafficVar
extends AbstractReportSuite {
Collection<TrafficVar> trafficVars;
public ReportSuiteTrafficVar(JSONObject jsonObj) throws JSONException {
super(jsonObj);
JSONArray jsonArray = jsonObj.getJSONArray("props");
this.trafficVars = new ArrayList<TrafficVar>(jsonArray.length());
for (int i = 0; i < jsonArray.length(); ++i) {
this.trafficVars.add(new TrafficVar(jsonArray.getJSONObject(i)));
}
}
public Collection<TrafficVar> getVariables() {
return this.trafficVars;
}
}