Class XmlConfidenceWrapper

    • Constructor Detail

      • XmlConfidenceWrapper

        public XmlConfidenceWrapper​(Confidence conf)

        Constructor for XmlConfidenceWrapper.

        Parameters:
        conf - a Confidence 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 interface Confidence
        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 interface Confidence
        Returns:
        the confidence value
      • getPublication

        public Publication getPublication()
        The publication where this confidence has been reported if relevant, null otherwise.
        Specified by:
        getPublication in interface ModelledConfidence
        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 interface ModelledConfidence
        Parameters:
        publication - : the publication