Class XmlChecksum
- java.lang.Object
-
- psidev.psi.mi.jami.model.impl.DefaultChecksum
-
- psidev.psi.mi.jami.xml.model.extension.XmlChecksum
-
- All Implemented Interfaces:
FileSourceContext
,Checksum
public class XmlChecksum extends DefaultChecksum implements FileSourceContext
Xml implementation of a checksum- Since:
24/07/13
- Version:
- $Id$
- Author:
- Marine Dumousseau (marine@ebi.ac.uk)
-
-
Field Summary
-
Fields inherited from interface psidev.psi.mi.jami.model.Checksum
CHECKSUM_MI, CHECKUM, INCHI, INCHI_KEY, INCHI_KEY_MI, INCHI_MI, INCHI_SHORT, IRIGID, IROGID, RIGID, RIGID_MI, ROGID, ROGID_MI, SMILE, SMILE_MI, SMILE_SHORT, STANDARD_INCHI_KEY, STANDARD_INCHI_KEY_MI
-
-
Constructor Summary
Constructors Constructor Description XmlChecksum(CvTerm method, String value)
Constructor for XmlChecksum.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FileSourceLocator
getSourceLocator()
Getter for the fieldsourceLocator
.void
setSourceLocator(FileSourceLocator locator)
Sets the source locatorvoid
setSourceLocator(PsiXmlLocator locator)
Setter for the fieldsourceLocator
.String
toString()
-
Methods inherited from class psidev.psi.mi.jami.model.impl.DefaultChecksum
equals, getMethod, getValue, hashCode
-
-
-
-
Method Detail
-
getSourceLocator
public FileSourceLocator getSourceLocator()
Getter for the field
sourceLocator
.- Specified by:
getSourceLocator
in interfaceFileSourceContext
- Returns:
- a
FileSourceLocator
object.
-
setSourceLocator
public void setSourceLocator(FileSourceLocator locator)
Sets the source locator- Specified by:
setSourceLocator
in interfaceFileSourceContext
- Parameters:
locator
- : the file locator
-
setSourceLocator
public void setSourceLocator(PsiXmlLocator locator)
Setter for the field
sourceLocator
.- Parameters:
locator
- aPsiXmlLocator
object.
-
toString
public String toString()
- Specified by:
toString
in interfaceFileSourceContext
- Overrides:
toString
in classDefaultChecksum
- Returns:
- the file source context as a String. If the source locator is not null, it should give the source locator properties
-
-