pid
Class LabelType
java.lang.Object
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
Constructor Summary |
LabelType()
Default constructor, initialise the array. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
labelValues
private java.util.ArrayList<LabelValue> labelValues
name
private java.lang.String name
id
private int id
LabelType
public LabelType()
- Default constructor, initialise the array.
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