Class XmlConfidenceWrapper
- java.lang.Object
-
- psidev.psi.mi.jami.xml.model.extension.xml254.XmlConfidenceWrapper
-
- All Implemented Interfaces:
Confidence
,ModelledConfidence
public class XmlConfidenceWrapper extends Object implements ModelledConfidence
A wrapper for confidences- Since:
11/10/13
- Version:
- $Id$
- Author:
- Marine Dumousseau (marine@ebi.ac.uk)
-
-
Field Summary
-
Fields inherited from interface psidev.psi.mi.jami.model.Confidence
AUTHOR_BASED_CONFIDENCE, AUTHOR_BASED_CONFIDENCE_MI
-
-
Constructor Summary
Constructors Constructor Description XmlConfidenceWrapper(Confidence conf)
Constructor for XmlConfidenceWrapper.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Publication
getPublication()
The publication where this confidence has been reported if relevant, null otherwise.CvTerm
getType()
Method used to compute the confidence value.String
getValue()
The confidence value cannot be null.void
setPublication(Publication publication)
Sets the publication of this confidenceString
toString()
-
-
-
Constructor Detail
-
XmlConfidenceWrapper
public XmlConfidenceWrapper(Confidence conf)
Constructor for XmlConfidenceWrapper.
- Parameters:
conf
- aConfidence
object.
-
-
Method Detail
-
getType
public CvTerm getType()
Method used to compute the confidence value. The confidence type is a controlled vocabulary term and it cannot be null. Ex: author-based confidence, statistical-based confidence, ...- Specified by:
getType
in interfaceConfidence
- Returns:
- the confidence type
-
getValue
public String getValue()
The confidence value cannot be null. It can be a numerical or literal value Ex: 'high', 'low', 0.4, ...- Specified by:
getValue
in interfaceConfidence
- Returns:
- the confidence value
-
getPublication
public Publication getPublication()
The publication where this confidence has been reported if relevant, null otherwise.- Specified by:
getPublication
in interfaceModelledConfidence
- Returns:
- the Publication where this modelledConfidence has been reported, null if no publications reported this confidence
-
setPublication
public void setPublication(Publication publication)
Sets the publication of this confidence- Specified by:
setPublication
in interfaceModelledConfidence
- Parameters:
publication
- : the publication
-
-