Class XmlConfidenceWrapper
- java.lang.Object
-
- psidev.psi.mi.jami.xml.model.extension.xml253.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 PublicationgetPublication()The publication where this confidence has been reported if relevant, null otherwise.CvTermgetType()Method used to compute the confidence value.StringgetValue()The confidence value cannot be null.voidsetPublication(Publication publication)Sets the publication of this confidenceStringtoString()
-
-
-
Constructor Detail
-
XmlConfidenceWrapper
public XmlConfidenceWrapper(Confidence conf)
Constructor for XmlConfidenceWrapper.
- Parameters:
conf- aConfidenceobject.
-
-
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:
getTypein 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:
getValuein interfaceConfidence- Returns:
- the confidence value
-
getPublication
public Publication getPublication()
The publication where this confidence has been reported if relevant, null otherwise.- Specified by:
getPublicationin 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:
setPublicationin interfaceModelledConfidence- Parameters:
publication- : the publication
-
-