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

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

public class FragmentArray
extends MzIdentMLObject
implements Serializable

An array of values for a given type of measure and for a particular ion type, in parallel to the index of ions identified. TODO marshalling/ persistor add validation to check for case where someone gets measure and changes its id without updating ref id in FragmentArray and other such clases. NOTE: There is no setter method for the measureRef. This simplifies keeping the measure object reference and measureRef synchronized.

Java class for FragmentArrayType complex type.

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

 <complexType name="FragmentArrayType">
   <complexContent>
     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
       <attribute name="values" use="required" type="{http://psidev.info/psi/pi/mzIdentML/1.1}listOfFloats" />
       <attribute name="measure_ref" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
     </restriction>
   </complexContent>
 </complexType>
 

See Also:
Serialized Form

Field Summary
protected  Measure measure
           
protected  String measureRef
           
protected  List<Float> values
           
 
Constructor Summary
FragmentArray()
           
 
Method Summary
 Measure getMeasure()
           
 String getMeasureRef()
          Gets the value of the measureRef property.
 List<Float> getValues()
          Gets the value of the values property.
 void setMeasure(Measure measure)
           
 
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

values

protected List<Float> values

measureRef

protected String measureRef

measure

protected Measure measure
Constructor Detail

FragmentArray

public FragmentArray()
Method Detail

getValues

public List<Float> getValues()
Gets the value of the values 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 values property.

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

    getValues().add(newItem);
 

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


getMeasureRef

public String getMeasureRef()
Gets the value of the measureRef property.

Returns:
possible object is String

getMeasure

public Measure getMeasure()

setMeasure

public void setMeasure(Measure measure)


Copyright © 2012. All Rights Reserved.