Class AbstractXmlConfidence

  • All Implemented Interfaces:
    com.sun.xml.bind.Locatable, FileSourceContext, Confidence
    Direct Known Subclasses:
    XmlConfidence

    public abstract class AbstractXmlConfidence
    extends Object
    implements Confidence, FileSourceContext, com.sun.xml.bind.Locatable
    abstract Xml implementation of confidence
    Since:
    19/07/13
    Version:
    $Id$
    Author:
    Marine Dumousseau (marine@ebi.ac.uk)
    • Constructor Detail

      • AbstractXmlConfidence

        public AbstractXmlConfidence()

        Constructor for AbstractXmlConfidence.

      • AbstractXmlConfidence

        public AbstractXmlConfidence​(CvTerm type,
                                     String value)

        Constructor for AbstractXmlConfidence.

        Parameters:
        type - a CvTerm object.
        value - a String object.
    • Method Detail

      • getType

        public CvTerm getType()
        Gets the value of the type property.
        Specified by:
        getType in interface Confidence
        Returns:
        a CvTerm object.
      • setJAXBValue

        public void setJAXBValue​(String value)
        Sets the value of the value property.
        Parameters:
        value - allowed object is String
      • setJAXBType

        public void setJAXBType​(XmlOpenCvTerm value)
        Sets the value of the type property.
        Parameters:
        value - allowed object is XmlOpenCvTerm
      • sourceLocation

        public Locator sourceLocation()
        Specified by:
        sourceLocation in interface com.sun.xml.bind.Locatable
      • toString

        public String toString()

        toString

        Specified by:
        toString in interface FileSourceContext
        Overrides:
        toString in class Object
        Returns:
        the file source context as a String. If the source locator is not null, it should give the source locator properties
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object