Package psidev.psi.mi.jami.tab.extension
Class MitabXref
- java.lang.Object
-
- psidev.psi.mi.jami.tab.extension.MitabXref
-
- All Implemented Interfaces:
FileSourceContext
,Xref
public class MitabXref extends Object implements Xref, FileSourceContext
Mitab extension for Xref. It contains a FileSourceLocator- Since:
14/06/13
- Version:
- $Id$
- Author:
- Marine Dumousseau (marine@ebi.ac.uk)
-
-
Field Summary
-
Fields inherited from interface psidev.psi.mi.jami.model.Xref
CHAIN_PARENT, CHAIN_PARENT_MI, CHEBI, CHEBI_MI, COMPLEX_PORTAL, COMPLEX_PORTAL_MI, COMPLEX_PRIMARY, COMPLEX_PRIMARY_MI, DDBJ_EMBL_GENBANK, DDBJ_EMBL_GENBANK_MI, DOI, DOI_MI, ENSEMBL, ENSEMBL_GENOMES, ENSEMBL_GENOMES_MI, ENSEMBL_MI, ENTREZ_GENE, ENTREZ_GENE_MI, GO, GO_MI, IDENTITY, IDENTITY_MI, IMEX, IMEX_MI, IMEX_PRIMARY, IMEX_PRIMARY_MI, INTACT_MI, INTERACTOR_SET_QUALIFIER, INTERACTOR_SET_QUALIFIER_MI, INTERPRO, INTERPRO_MI, ISOFORM_PARENT, ISOFORM_PARENT_MI, METHOD_REFERENCE, METHOD_REFERENCE_MI, PRIMARY, PRIMARY_MI, PUBMED, PUBMED_MI, REFSEQ, REFSEQ_MI, RESID, RESID_MI, SECONDARY, SECONDARY_MI, SEE_ALSO, SEE_ALSO_MI, SO, SO_MI, UNIPROTKB, UNIPROTKB_MI, UNIPROTKB_SWISSPROT, UNIPROTKB_SWISSPROT_MI, UNIPROTKB_TREMBL, UNIPROTKB_TREMBL_MI
-
-
Constructor Summary
Constructors Constructor Description MitabXref(String database, String id)
Constructor for MitabXref.MitabXref(String database, String id, String qualifier)
Constructor for MitabXref.MitabXref(String database, String id, CvTerm qualifier)
Constructor for MitabXref.MitabXref(CvTerm database, String id)
Constructor for MitabXref.MitabXref(CvTerm database, String id, String version)
Constructor for MitabXref.MitabXref(CvTerm database, String id, String version, CvTerm qualifier)
Constructor for MitabXref.MitabXref(CvTerm database, String id, CvTerm qualifier)
Constructor for MitabXref.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
CvTerm
getDatabase()
Getter for the fielddatabase
.String
getId()
Getter for the fieldid
.CvTerm
getQualifier()
Getter for the fieldqualifier
.FileSourceLocator
getSourceLocator()
Getter for the fieldsourceLocator
.String
getVersion()
Getter for the fieldversion
.int
hashCode()
void
setQualifier(CvTerm qualifier)
Setter for the fieldqualifier
.void
setSourceLocator(FileSourceLocator sourceLocator)
Sets the source locatorString
toString()
toString
-
-
-
Constructor Detail
-
MitabXref
public MitabXref(CvTerm database, String id, CvTerm qualifier)
Constructor for MitabXref.
-
MitabXref
public MitabXref(CvTerm database, String id, String version, CvTerm qualifier)
Constructor for MitabXref.
-
MitabXref
public MitabXref(String database, String id, String qualifier)
Constructor for MitabXref.
-
MitabXref
public MitabXref(String database, String id, CvTerm qualifier)
Constructor for MitabXref.
-
-
Method Detail
-
getDatabase
public CvTerm getDatabase()
Getter for the field
database
.- Specified by:
getDatabase
in interfaceXref
- Returns:
- a
CvTerm
object.
-
getId
public String getId()
Getter for the field
id
.
-
getVersion
public String getVersion()
Getter for the field
version
.- Specified by:
getVersion
in interfaceXref
- Returns:
- a
String
object.
-
getQualifier
public CvTerm getQualifier()
Getter for the field
qualifier
.- Specified by:
getQualifier
in interfaceXref
- Returns:
- a
CvTerm
object.
-
setQualifier
public void setQualifier(CvTerm qualifier)
Setter for the field
qualifier
.- Parameters:
qualifier
- aCvTerm
object.
-
getSourceLocator
public FileSourceLocator getSourceLocator()
Getter for the field
sourceLocator
.- Specified by:
getSourceLocator
in interfaceFileSourceContext
- Returns:
- a
FileSourceLocator
object.
-
setSourceLocator
public void setSourceLocator(FileSourceLocator sourceLocator)
Sets the source locator- Specified by:
setSourceLocator
in interfaceFileSourceContext
- Parameters:
sourceLocator
- : the file locator
-
toString
public String toString()
toString
- Specified by:
toString
in interfaceFileSourceContext
- Overrides:
toString
in classObject
- Returns:
- the file source context as a String. If the source locator is not null, it should give the source locator properties
-
-