pid
Class Ontology

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

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

Ontologies behind PID

Author:
Samuel Croset
See Also:
Serialized Form

Field Summary
private  java.util.ArrayList<LabelType> labelTypes
           
 
Constructor Summary
Ontology()
          Only constructor, initialise the array of LabelTypes.
 
Method Summary
 LabelType getLabelType(int id)
          From the id of the labelType, returns the object.
 LabelType getLabelType(java.lang.String name)
          From the name of the LabelType (aka small internal ontology, e.g: "function" or "edge-type") return the object.
 java.util.ArrayList<LabelType> getLabelTypes()
           
 void setLabelTypes(java.util.ArrayList<LabelType> labelTypes)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

labelTypes

private java.util.ArrayList<LabelType> labelTypes
Constructor Detail

Ontology

public Ontology()
Only constructor, initialise the array of LabelTypes.

Method Detail

setLabelTypes

public void setLabelTypes(java.util.ArrayList<LabelType> labelTypes)

getLabelTypes

public java.util.ArrayList<LabelType> getLabelTypes()
Returns:
the labelTypes, which is a small ontology about a particular facet of the DB.

getLabelType

public LabelType getLabelType(java.lang.String name)
From the name of the LabelType (aka small internal ontology, e.g: "function" or "edge-type") return the object.

Parameters:
name -
Returns:
the LabelType object matching the name or null.

getLabelType

public LabelType getLabelType(int id)
From the id of the labelType, returns the object.

Parameters:
id -
Returns:
the labelType object with the corresponding id.