pid
Class LabelType

java.lang.Object
  extended by pid.LabelType
All Implemented Interfaces:
java.io.Serializable

public class LabelType
extends java.lang.Object
implements java.io.Serializable

LabelTypes are top level categories for a small ontology present within PID

Author:
Samuel Croset
See Also:
Serialized Form

Field Summary
private  int id
           
private  java.util.ArrayList<LabelValue> labelValues
           
private  java.lang.String name
           
 
Constructor Summary
LabelType()
          Default constructor, initialise the array.
 
Method Summary
 int getId()
           
 LabelValue getLabelValue(int id)
           
 java.util.ArrayList<LabelValue> getLabelValues()
           
 java.lang.String getName()
           
 void setId(int id)
           
 void setLabelValues(java.util.ArrayList<LabelValue> labelValues)
           
 void setName(java.lang.String name)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

labelValues

private java.util.ArrayList<LabelValue> labelValues

name

private java.lang.String name

id

private int id
Constructor Detail

LabelType

public LabelType()
Default constructor, initialise the array.

Method Detail

getName

public java.lang.String getName()
Returns:
the name of the label type, in other word name of the ontology

setName

public void setName(java.lang.String name)

getId

public int getId()
Returns:
the id of the label type

setId

public void setId(int id)

setLabelValues

public void setLabelValues(java.util.ArrayList<LabelValue> labelValues)

getLabelValues

public java.util.ArrayList<LabelValue> getLabelValues()
Returns:
the label values (children) associated with a label type.

getLabelValue

public LabelValue getLabelValue(int id)
Parameters:
id -
Returns:
return the label value (child of label type) matching the id