Class BibRef
- java.lang.Object
-
- psidev.psi.mi.jami.xml.model.extension.xml253.BibRef
-
- All Implemented Interfaces:
com.sun.xml.bind.Locatable,FileSourceContext,Publication
public class BibRef extends Object implements Publication, FileSourceContext, com.sun.xml.bind.Locatable
Xml implementation of a Publication- Since:
22/07/13
- Version:
- $Id$
- Author:
- Marine Dumousseau (marine@ebi.ac.uk)
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classBibRef.JAXBAttributeWrapper
-
Constructor Summary
Constructors Constructor Description BibRef()Constructor for BibRef.BibRef(String pubmed)Constructor for BibRef.BibRef(String title, String journal, Date publicationDate)Constructor for BibRef.BibRef(String title, String journal, Date publicationDate, String imexId, Source source)Constructor for BibRef.BibRef(String title, String journal, Date publicationDate, CurationDepth curationDepth, Source source)Constructor for BibRef.BibRef(String pubmed, String imexId, Source source)Constructor for BibRef.BibRef(String pubmed, CurationDepth curationDepth, Source source)Constructor for BibRef.BibRef(Xref identifier)Constructor for BibRef.BibRef(Xref identifier, String imexId, Source source)Constructor for BibRef.BibRef(Xref identifier, CurationDepth curationDepth, Source source)Constructor for BibRef.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanaddAllExperiments(Collection<? extends Experiment> exps)This method will add all the experiments and set the publication of the new experiments to this current publicationbooleanaddExperiment(Experiment exp)This method will add the experiment and set the publication of the new experiment to this current publicationvoidassignImexId(String identifier)Assign an IMEx id to a publication.Collection<Annotation>getAnnotations()getAnnotations.List<String>getAuthors()getAuthors.CurationDepthgetCurationDepth()getCurationDepth.StringgetDoi()getDoi.Collection<Experiment>getExperiments()Getter for the fieldexperiments.Collection<Xref>getIdentifiers()getIdentifiers.StringgetImexId()getImexId.StringgetJournal()getJournal.DategetPublicationDate()getPublicationDate.StringgetPubmedId()getPubmedId.DategetReleasedDate()Getter for the fieldreleasedDate.SourcegetSource()Getter for the fieldsource.FileSourceLocatorgetSourceLocator()Getter for the fieldsourceLocator.StringgetTitle()getTitle.Collection<Xref>getXrefs()getXrefs.protected voidinitialiseAnnotationWrapper()initialiseAnnotationWrapper.protected voidinitialiseExperiments()initialiseExperiments.booleanremoveAllExperiments(Collection<? extends Experiment> exps)This method will remove the experiments and set the publication of the removed experiments to null.booleanremoveExperiment(Experiment exp)This method will remove the experiment and set the publication of the removed experiment to null.voidsetCurationDepth(CurationDepth curationDepth)Set the curation depth of the publication.voidsetDoi(String doi)Sets the doi.voidsetJAXBAttributeWrapper(BibRef.JAXBAttributeWrapper wrapper)setJAXBAttributeWrapper.voidsetJAXBXref(PublicationXrefContainer xrefContainer)setJAXBXref.voidsetJournal(String journal)Set the journal where the publication has been publishedvoidsetPublicationDate(Date date)Set the date of publication.voidsetPubmedId(String pubmedId)Sets the pubmed identifier.voidsetReleasedDate(Date released)Set the released date of the curated publicationvoidsetSource(Source source)Sets the source who curated the publication.voidsetSourceLocator(FileSourceLocator sourceLocator)Sets the source locatorvoidsetTitle(String title)Set the publication titleLocatorsourceLocation()StringtoString()toString
-
-
-
Constructor Detail
-
BibRef
public BibRef()
Constructor for BibRef.
-
BibRef
public BibRef(Xref identifier)
Constructor for BibRef.
- Parameters:
identifier- aXrefobject.
-
BibRef
public BibRef(Xref identifier, CurationDepth curationDepth, Source source)
Constructor for BibRef.
- Parameters:
identifier- aXrefobject.curationDepth- aCurationDepthobject.source- aSourceobject.
-
BibRef
public BibRef(String pubmed, CurationDepth curationDepth, Source source)
Constructor for BibRef.
- Parameters:
pubmed- aStringobject.curationDepth- aCurationDepthobject.source- aSourceobject.
-
BibRef
public BibRef(String title, String journal, Date publicationDate, CurationDepth curationDepth, Source source)
Constructor for BibRef.
- Parameters:
title- aStringobject.journal- aStringobject.publicationDate- aDateobject.curationDepth- aCurationDepthobject.source- aSourceobject.
-
-
Method Detail
-
getPubmedId
public String getPubmedId()
getPubmedId.
- Specified by:
getPubmedIdin interfacePublication- Returns:
- a
Stringobject.
-
setPubmedId
public void setPubmedId(String pubmedId)
Sets the pubmed identifier. It will remove the previous pubmed identifier from the collection of identifiers, and add the new one in the collection of identifiers with qualifier identity. If pubmedId is null, it will remove all the pubmed identifiers from the collection of identifiers.- Specified by:
setPubmedIdin interfacePublication- Parameters:
pubmedId- : pubmed identifier
-
getDoi
public String getDoi()
getDoi.
- Specified by:
getDoiin interfacePublication- Returns:
- a
Stringobject.
-
setDoi
public void setDoi(String doi)
Sets the doi. It will remove the previous doi from the collection of identifiers, and add the new one in the collection of identifiers with qualifier identity. If doi is null, it will remove all the doi from the collection of identifiers.- Specified by:
setDoiin interfacePublication- Parameters:
doi- : DOI identifier
-
getIdentifiers
public Collection<Xref> getIdentifiers()
getIdentifiers.
- Specified by:
getIdentifiersin interfacePublication- Returns:
- a
Collectionobject.
-
getImexId
public String getImexId()
getImexId.
- Specified by:
getImexIdin interfacePublication- Returns:
- a
Stringobject.
-
assignImexId
public void assignImexId(String identifier)
Assign an IMEx id to a publication. It will add a Xref imex with qualifier imex-primary to the list of xrefs.- Specified by:
assignImexIdin interfacePublication- Parameters:
identifier- : the IMEx id from IMEx central
-
getTitle
public String getTitle()
getTitle.
- Specified by:
getTitlein interfacePublication- Returns:
- a
Stringobject.
-
setTitle
public void setTitle(String title)
Set the publication title- Specified by:
setTitlein interfacePublication- Parameters:
title- : publication title
-
getJournal
public String getJournal()
getJournal.
- Specified by:
getJournalin interfacePublication- Returns:
- a
Stringobject.
-
setJournal
public void setJournal(String journal)
Set the journal where the publication has been published- Specified by:
setJournalin interfacePublication- Parameters:
journal- : the journal
-
getPublicationDate
public Date getPublicationDate()
getPublicationDate.
- Specified by:
getPublicationDatein interfacePublication- Returns:
- a
Dateobject.
-
setPublicationDate
public void setPublicationDate(Date date)
Set the date of publication.- Specified by:
setPublicationDatein interfacePublication- Parameters:
date- : publication date
-
getAuthors
public List<String> getAuthors()
getAuthors.
- Specified by:
getAuthorsin interfacePublication- Returns:
- a
Listobject.
-
getXrefs
public Collection<Xref> getXrefs()
getXrefs.
- Specified by:
getXrefsin interfacePublication- Returns:
- a
Collectionobject.
-
getAnnotations
public Collection<Annotation> getAnnotations()
getAnnotations.
- Specified by:
getAnnotationsin interfacePublication- Returns:
- a
Collectionobject.
-
getExperiments
public Collection<Experiment> getExperiments()
Getter for the field
experiments.- Specified by:
getExperimentsin interfacePublication- Returns:
- a
Collectionobject.
-
getCurationDepth
public CurationDepth getCurationDepth()
getCurationDepth.
- Specified by:
getCurationDepthin interfacePublication- Returns:
- a
CurationDepthobject.
-
setCurationDepth
public void setCurationDepth(CurationDepth curationDepth)
Set the curation depth of the publication. If the curation depth is null, it should set the cuuration depth to CurationDepth.undefined- Specified by:
setCurationDepthin interfacePublication- Parameters:
curationDepth- : the curation depth
-
getReleasedDate
public Date getReleasedDate()
Getter for the field
releasedDate.- Specified by:
getReleasedDatein interfacePublication- Returns:
- a
Dateobject.
-
setReleasedDate
public void setReleasedDate(Date released)
Set the released date of the curated publication- Specified by:
setReleasedDatein interfacePublication- Parameters:
released- : the released date
-
getSource
public Source getSource()
Getter for the field
source.- Specified by:
getSourcein interfacePublication- Returns:
- a
Sourceobject.
-
setSource
public void setSource(Source source)
Sets the source who curated the publication.- Specified by:
setSourcein interfacePublication- Parameters:
source- : source for this publication
-
addExperiment
public boolean addExperiment(Experiment exp)
This method will add the experiment and set the publication of the new experiment to this current publication- Specified by:
addExperimentin interfacePublication- Parameters:
exp- : experiment to add- Returns:
- true if experiment is added to the list of experiments
-
removeExperiment
public boolean removeExperiment(Experiment exp)
This method will remove the experiment and set the publication of the removed experiment to null.- Specified by:
removeExperimentin interfacePublication- Parameters:
exp- : experiment to remove- Returns:
- true if experiment is removed from the list of experiments
-
addAllExperiments
public boolean addAllExperiments(Collection<? extends Experiment> exps)
This method will add all the experiments and set the publication of the new experiments to this current publication- Specified by:
addAllExperimentsin interfacePublication- Parameters:
exps- : experiments to add- Returns:
- true if experiments are added to the list of experiments
-
removeAllExperiments
public boolean removeAllExperiments(Collection<? extends Experiment> exps)
This method will remove the experiments and set the publication of the removed experiments to null.- Specified by:
removeAllExperimentsin interfacePublication- Parameters:
exps- : experiments to remove- Returns:
- true if experiments are removed from the list of experiments
-
setJAXBXref
public void setJAXBXref(PublicationXrefContainer xrefContainer)
setJAXBXref.
- Parameters:
xrefContainer- aPublicationXrefContainerobject.
-
setJAXBAttributeWrapper
public void setJAXBAttributeWrapper(BibRef.JAXBAttributeWrapper wrapper)
setJAXBAttributeWrapper.
- Parameters:
wrapper- aBibRef.JAXBAttributeWrapperobject.
-
sourceLocation
public Locator sourceLocation()
- Specified by:
sourceLocationin interfacecom.sun.xml.bind.Locatable
-
getSourceLocator
public FileSourceLocator getSourceLocator()
Getter for the field
sourceLocator.- Specified by:
getSourceLocatorin interfaceFileSourceContext- Returns:
- a
FileSourceLocatorobject.
-
setSourceLocator
public void setSourceLocator(FileSourceLocator sourceLocator)
Sets the source locator- Specified by:
setSourceLocatorin interfaceFileSourceContext- Parameters:
sourceLocator- : the file locator
-
toString
public String toString()
toString
- Specified by:
toStringin interfaceFileSourceContext- Overrides:
toStringin classObject- Returns:
- the file source context as a String. If the source locator is not null, it should give the source locator properties
-
initialiseAnnotationWrapper
protected void initialiseAnnotationWrapper()
initialiseAnnotationWrapper.
-
initialiseExperiments
protected void initialiseExperiments()
initialiseExperiments.
-
-