Package psidev.psi.mi.jami.json.elements
Class SimpleJsonPublicationWriter
- java.lang.Object
-
- psidev.psi.mi.jami.json.elements.SimpleJsonPublicationWriter
-
- All Implemented Interfaces:
JsonElementWriter<Publication>
public class SimpleJsonPublicationWriter extends Object implements JsonElementWriter<Publication>
Json writer for publications- Since:
18/07/14
- Version:
- $Id$
- Author:
- Marine Dumousseau (marine@ebi.ac.uk)
-
-
Constructor Summary
Constructors Constructor Description SimpleJsonPublicationWriter(Writer writer)
Constructor for SimpleJsonPublicationWriter.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description JsonElementWriter<CvTerm>
getCvWriter()
Getter for the fieldcvWriter
.JsonElementWriter<Xref>
getIdentifierWriter()
Getter for the fieldidentifierWriter
.void
setCvWriter(JsonElementWriter<CvTerm> cvWriter)
Setter for the fieldcvWriter
.void
setIdentifierWriter(JsonElementWriter<Xref> identifierWriter)
Setter for the fieldidentifierWriter
.void
write(Publication object)
write.
-
-
-
Method Detail
-
write
public void write(Publication object) throws IOException
write.
- Specified by:
write
in interfaceJsonElementWriter<Publication>
- Parameters:
object
- aPublication
object.- Throws:
IOException
- if any.
-
getCvWriter
public JsonElementWriter<CvTerm> getCvWriter()
Getter for the field
cvWriter
.- Returns:
- a
JsonElementWriter
object.
-
setCvWriter
public void setCvWriter(JsonElementWriter<CvTerm> cvWriter)
Setter for the field
cvWriter
.- Parameters:
cvWriter
- aJsonElementWriter
object.
-
getIdentifierWriter
public JsonElementWriter<Xref> getIdentifierWriter()
Getter for the field
identifierWriter
.- Returns:
- a
JsonElementWriter
object.
-
setIdentifierWriter
public void setIdentifierWriter(JsonElementWriter<Xref> identifierWriter)
Setter for the field
identifierWriter
.- Parameters:
identifierWriter
- aJsonElementWriter
object.
-
-