peakml.io
Class SampleInfo

java.lang.Object
  extended by peakml.Annotatable
      extended by peakml.io.SampleInfo

public class SampleInfo
extends Annotatable

Central point for storing all information about a sample. The implementation only supports an id and an optional label. Remaining information can be stored with the controlled vocabulary and the annotations.


Constructor Summary
SampleInfo(java.lang.String id)
          Standard constructor, which sets the obligatory id-value for the sample.
SampleInfo(java.lang.String id, java.lang.String label)
          Standard constructor, which sets the obligatory id-value for the sample and the name.
 
Method Summary
 java.lang.String getID()
          Returns the id of the sample.
 java.lang.String getLabel()
          Returns the label of the sample.
 void setID(java.lang.String id)
          Sets the id of the sample.
 void setLabel(java.lang.String label)
          Sets the label of the sample.
 
Methods inherited from class peakml.Annotatable
addAnnotation, addAnnotation, addAnnotation, addAnnotation, addAnnotation, addAnnotations, getAnnotation, getAnnotations, removeAllAnnotations, removeAnnotation
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SampleInfo

public SampleInfo(java.lang.String id)
Standard constructor, which sets the obligatory id-value for the sample. The label is set to null.

Parameters:
id - The id of the sample.

SampleInfo

public SampleInfo(java.lang.String id,
                  java.lang.String label)
Standard constructor, which sets the obligatory id-value for the sample and the name.

Parameters:
id - The id of the sample.
label - The label of the sample.
Method Detail

getID

public java.lang.String getID()
Returns the id of the sample.

Returns:
The id of the sample.

setID

public void setID(java.lang.String id)
Sets the id of the sample.

Parameters:
id - The id of the sample.

getLabel

public java.lang.String getLabel()
Returns the label of the sample.

Returns:
The label of the sample.

setLabel

public void setLabel(java.lang.String label)
Sets the label of the sample.

Parameters:
label - The label of the sample.