uk.ac.ebi.jmzidml.model.mzidml
Class PeptideHypothesis

java.lang.Object
  extended by uk.ac.ebi.jmzidml.model.MzIdentMLObject
      extended by uk.ac.ebi.jmzidml.model.mzidml.PeptideHypothesis
All Implemented Interfaces:
Serializable

public class PeptideHypothesis
extends MzIdentMLObject
implements Serializable

Peptide evidence on which this ProteinHypothesis is based by reference to a PeptideEvidence element. TODO marshalling/ persistor add validation to check for case where someone gets peptideEvidence and changes its id without updating ref id in PeptideHypothesis and other such classes. NOTE: There is no setter method for the peptideEvidenceRef. This simplifies keeping the peptideEvidence object reference and peptideEvidenceRef synchronized.

Java class for PeptideHypothesisType complex type.

The following schema fragment specifies the expected content contained within this class.

 <complexType name="PeptideHypothesisType">
   <complexContent>
     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
       <sequence>
         <element name="SpectrumIdentificationItemRef" type="{http://psidev.info/psi/pi/mzIdentML/1.1}SpectrumIdentificationItemRefType" maxOccurs="unbounded"/>
       </sequence>
       <attribute name="peptideEvidence_ref" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
     </restriction>
   </complexContent>
 </complexType>
 

See Also:
Serialized Form

Field Summary
protected  PeptideEvidence peptideEvidence
           
protected  String peptideEvidenceRef
           
protected  List<SpectrumIdentificationItemRef> spectrumIdentificationItemRef
           
 
Constructor Summary
PeptideHypothesis()
           
 
Method Summary
 PeptideEvidence getPeptideEvidence()
           
 String getPeptideEvidenceRef()
          Gets the value of the peptideEvidenceRef property.
 List<SpectrumIdentificationItemRef> getSpectrumIdentificationItemRef()
          Gets the value of the spectrumIdentificationItemRef property.
 void setPeptideEvidence(PeptideEvidence peptideEvidence)
           
 
Methods inherited from class uk.ac.ebi.jmzidml.model.MzIdentMLObject
getHid
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

spectrumIdentificationItemRef

protected List<SpectrumIdentificationItemRef> spectrumIdentificationItemRef

peptideEvidenceRef

protected String peptideEvidenceRef

peptideEvidence

protected PeptideEvidence peptideEvidence
Constructor Detail

PeptideHypothesis

public PeptideHypothesis()
Method Detail

getSpectrumIdentificationItemRef

public List<SpectrumIdentificationItemRef> getSpectrumIdentificationItemRef()
Gets the value of the spectrumIdentificationItemRef property.

This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a set method for the spectrumIdentificationItemRef property.

For example, to add a new item, do as follows:

    getSpectrumIdentificationItemRef().add(newItem);
 

Objects of the following type(s) are allowed in the list SpectrumIdentificationItemRef


getPeptideEvidenceRef

public String getPeptideEvidenceRef()
Gets the value of the peptideEvidenceRef property.

Returns:
possible object is String

getPeptideEvidence

public PeptideEvidence getPeptideEvidence()

setPeptideEvidence

public void setPeptideEvidence(PeptideEvidence peptideEvidence)


Copyright © 2012. All Rights Reserved.