Class PrideMarshaller

All Implemented Interfaces:
Serializable

public class PrideMarshaller
extends JsonMarshaller
A json marshaller for use with the PRIDE webservice.
Author:
Kenneth Verheggen
See Also:
Serialized Form
  • Constructor Details

  • Method Details

    • init

      protected void init()
      Description copied from class: JsonMarshaller
      Initializes the marshaller with (custom) type adapters.
      Overrides:
      init in class JsonMarshaller
    • getProjectDetail

      public uk.ac.ebi.pride.archive.web.service.model.project.ProjectDetail getProjectDetail​(String jsonURL) throws IOException
      Convert from JSON to a list of ProjectDetails.
      Parameters:
      jsonURL - the URL for the JSON object
      Returns:
      an instance of the objectType containing the JSON information
      Throws:
      IOException - thrown if the webservice is down or the json response was invalid
    • getProjectSummaryList

      public uk.ac.ebi.pride.archive.web.service.model.project.ProjectSummaryList getProjectSummaryList​(String jsonURL) throws IOException
      Convert from JSON to a list of ProjectDetails.
      Parameters:
      jsonURL - the URL for the JSON object
      Returns:
      an instance of the objectType containing the JSON information
      Throws:
      IOException - thrown if the webservice is down or the json response was invalid
    • getAssayDetailList

      public uk.ac.ebi.pride.archive.web.service.model.assay.AssayDetailList getAssayDetailList​(String jsonURL) throws IOException
      Convert from JSON to a list of AssaytDetails.
      Parameters:
      jsonURL - the URL for the JSON object
      Returns:
      an instance of the objectType containing the JSON information
      Throws:
      IOException - thrown if the webservice is down or the json response was invalid
    • getFileDetailList

      public uk.ac.ebi.pride.archive.web.service.model.file.FileDetailList getFileDetailList​(String jsonURL) throws IOException
      Convert from JSON to a list of FileDetails.
      Parameters:
      jsonURL - the URL for the JSON object
      Returns:
      an instance of the objectType containing the JSON information
      Throws:
      IOException - thrown if the webservice is down or the json response was invalid
    • getProteinDetailList

      public uk.ac.ebi.pride.archive.web.service.model.protein.ProteinDetailList getProteinDetailList​(String jsonURL) throws IOException
      Convert from JSON to a list of ProteinDetails.
      Parameters:
      jsonURL - the URL for the JSON object
      Returns:
      an instance of the objectType containing the JSON information
      Throws:
      IOException - thrown if the webservice is down or the json response was invalid
    • getPeptideDetailList

      public uk.ac.ebi.pride.archive.web.service.model.peptide.PsmDetailList getPeptideDetailList​(String jsonURL) throws IOException
      Convert from JSON to a list of ProteinDetails.
      Parameters:
      jsonURL - the URL for the JSON object
      Returns:
      an instance of the objectType containing the JSON information
      Throws:
      IOException - thrown if the webservice is down or the json response was invalid