{
private int numberOfItemsFound;
- private Long sequenceLength;
-
private String responseTime;
private Collection<FTSData> searchSummary;
{
this.searchSummary = searchSummary;
}
-
- public long getSequenceLength() {
- return sequenceLength;
- }
-
- public void setSequenceLength(Long seqLength) {
- this.sequenceLength = seqLength;
- }
/**
* Convenience method to obtain a Table model for a given summary List based
}
Object uniprot_entry = jsonObj.get("uniprot_entry");
- Long seqLength = (Long) ((Map<String, Object>) jsonObj.get("uniprot_entry")).get("sequence_length");
- //System.out.println(uniprot_entry);
- //System.out.println(jsonObj);
- //System.out.println("seqLenght :" + seqLength);
-
- //Map<String, Object> tdbResponse = (Map<String, Object>) jsonObj.get("structures");
+ // TODO: decide if anything from uniprot_entry needs to be reported via the FTSRestResponse object
+ // Arnaud added seqLength = (Long) ((Map<String, Object>) jsonObj.get("uniprot_entry")).get("sequence_length");
+
List<Object> structures = (List<Object>) jsonObj.get("structures");
result = new ArrayList<>();
Map<String, Object> structure = (Map<String, Object>) strucIter.next();
result.add(getFTSData(structure, tdbRestRequest));
numFound++;
- //System.out.println(structure);
}
- //System.out.println("1 : " + structures.get(1));
searchResult.setNumberOfItemsFound(numFound);
searchResult.setSearchSummary(result);
- searchResult.setSequenceLength(seqLength);
} catch (ParseException e)
{