private String summary;
+ private JSONObject rawJson;
+
private int width = 480;
- public PDBSummaryListModel(String pdbId, String summary)
- {
- this.pdbId = pdbId;
- this.summary = summary;
- }
public PDBSummaryListModel(JSONObject doc)
{
+ this.rawJson = doc;
StringBuilder summary = new StringBuilder();
if (doc.get("molecule_type") != null)
{
this.summary = summary;
}
+ public JSONObject getRawJson()
+ {
+ return rawJson;
+ }
+
+ public void setRawJson(JSONObject rawJson)
+ {
+ this.rawJson = rawJson;
+ }
+
public String toString()
{
StringBuilder html = new StringBuilder();
html.append("</div></html>");
return html.toString();
}
-
}