Class PrideMarshaller
java.lang.Object
com.compomics.util.experiment.personalization.ExperimentObject
com.compomics.util.io.json.JsonMarshaller
com.compomics.util.io.json.marshallers.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
-
Field Summary
-
Constructor Summary
Constructors Constructor Description PrideMarshaller()
Create a PRIDE marshaller. -
Method Summary
Modifier and Type Method Description uk.ac.ebi.pride.archive.web.service.model.assay.AssayDetailList
getAssayDetailList(String jsonURL)
Convert from JSON to a list of AssaytDetails.uk.ac.ebi.pride.archive.web.service.model.file.FileDetailList
getFileDetailList(String jsonURL)
Convert from JSON to a list of FileDetails.uk.ac.ebi.pride.archive.web.service.model.peptide.PsmDetailList
getPeptideDetailList(String jsonURL)
Convert from JSON to a list of ProteinDetails.uk.ac.ebi.pride.archive.web.service.model.project.ProjectDetail
getProjectDetail(String jsonURL)
Convert from JSON to a list of ProjectDetails.uk.ac.ebi.pride.archive.web.service.model.project.ProjectSummaryList
getProjectSummaryList(String jsonURL)
Convert from JSON to a list of ProjectDetails.uk.ac.ebi.pride.archive.web.service.model.protein.ProteinDetailList
getProteinDetailList(String jsonURL)
Convert from JSON to a list of ProteinDetails.protected void
init()
Initializes the marshaller with (custom) type adapters.Methods inherited from class com.compomics.util.io.json.JsonMarshaller
fromJson, fromJson, fromJson, fromJson, fromJson, fromJson, getJsonStringFromFile, saveObjectToJson, toJson
Methods inherited from class com.compomics.util.experiment.personalization.ExperimentObject
addUrParam, asLong, clearParametersMap, getId, getUrParam, getUrParams, removeUrParam, setId, setUrParams
-
Constructor Details
-
PrideMarshaller
public PrideMarshaller()Create a PRIDE marshaller.
-
-
Method Details
-
init
protected void init()Description copied from class:JsonMarshaller
Initializes the marshaller with (custom) type adapters.- Overrides:
init
in classJsonMarshaller
-
getProjectDetail
public uk.ac.ebi.pride.archive.web.service.model.project.ProjectDetail getProjectDetail(String jsonURL) throws IOExceptionConvert 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 IOExceptionConvert 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 IOExceptionConvert 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 IOExceptionConvert 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 IOExceptionConvert 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 IOExceptionConvert 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
-