23 lines
828 B
Java
23 lines
828 B
Java
package _VisualDVM.ComponentsServer.BugReport.Json;
|
|
import _VisualDVM.ProjectData.SapforData.SapforProperties;
|
|
import com.google.gson.annotations.Expose;
|
|
|
|
import java.util.List;
|
|
import java.util.Vector;
|
|
public class VisualiserSettingsJson {
|
|
@Expose
|
|
public List<VisualiserSettingJson> array = new Vector<>();
|
|
public String getSummary() {
|
|
SapforProperties properties = new SapforProperties(); //только для извлечения описаний.
|
|
Vector<String> res = new Vector<>();
|
|
for (VisualiserSettingJson setting : array) {
|
|
try {
|
|
res.add(properties.getFieldDescription(setting.name) + "=" + setting.value);
|
|
} catch (Exception ex) {
|
|
ex.printStackTrace();
|
|
}
|
|
}
|
|
return String.join("\n", res);
|
|
}
|
|
}
|