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
A json marshaller for use with the PRIDE webservice.
- Author:
- Kenneth Verheggen
- See Also:
-
Field Summary
Fields inherited from class com.compomics.util.io.json.JsonMarshaller
builder, gsonFields inherited from class com.compomics.util.experiment.personalization.ExperimentObject
NO_KEY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionuk.ac.ebi.pride.archive.web.service.model.assay.AssayDetailListgetAssayDetailList(String jsonURL) Convert from JSON to a list of AssaytDetails.uk.ac.ebi.pride.archive.web.service.model.file.FileDetailListgetFileDetailList(String jsonURL) Convert from JSON to a list of FileDetails.uk.ac.ebi.pride.archive.web.service.model.peptide.PsmDetailListgetPeptideDetailList(String jsonURL) Convert from JSON to a list of ProteinDetails.uk.ac.ebi.pride.archive.web.service.model.project.ProjectDetailgetProjectDetail(String jsonURL) Convert from JSON to a list of ProjectDetails.uk.ac.ebi.pride.archive.web.service.model.project.ProjectSummaryListgetProjectSummaryList(String jsonURL) Convert from JSON to a list of ProjectDetails.uk.ac.ebi.pride.archive.web.service.model.protein.ProteinDetailListgetProteinDetailList(String jsonURL) Convert from JSON to a list of ProteinDetails.protected voidinit()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, toJsonMethods 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:JsonMarshallerInitializes the marshaller with (custom) type adapters.- Overrides:
initin classJsonMarshaller
-
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
-