org.intermine.bio.chado
Class ChadoCV

java.lang.Object
  extended by org.intermine.bio.chado.ChadoCV

public class ChadoCV
extends java.lang.Object

Objects of this class represent a controlled vocabulary from chado.


Constructor Summary
ChadoCV(java.lang.String cvName)
          Create a new ChadoCV.
 
Method Summary
 void addByChadoId(java.lang.Integer cvtermId, ChadoCVTerm chadoCvTerm)
          Add a cvterm and its chado id to this cv.
 java.util.Set<ChadoCVTerm> getAllCVTerms()
          Return a Set of all the CVTerms in this CV.
 ChadoCVTerm getByChadoId(java.lang.Integer cvtermId)
          Return the ChadoCVTerm object for a given cvterm_id.
 java.lang.String getCvName()
          Return the cvName that was passed to the constructor.
 java.util.Set<ChadoCVTerm> getRootCVTerms()
          Return a Set of the root CVTerms in this CV - ie. those with no parents.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ChadoCV

public ChadoCV(java.lang.String cvName)
Create a new ChadoCV.

Parameters:
cvName - the name of the cv in chado that this object represents.
Method Detail

getCvName

public final java.lang.String getCvName()
Return the cvName that was passed to the constructor.

Returns:
the cv name

addByChadoId

public void addByChadoId(java.lang.Integer cvtermId,
                         ChadoCVTerm chadoCvTerm)
Add a cvterm and its chado id to this cv.

Parameters:
cvtermId - the chado id = cvterm.cvterm_id
chadoCvTerm - the ChadoCVTerm object

getByChadoId

public ChadoCVTerm getByChadoId(java.lang.Integer cvtermId)
Return the ChadoCVTerm object for a given cvterm_id.

Parameters:
cvtermId - the chado id = cvterm.cvterm_id
Returns:
the ChadoCVTerm

getRootCVTerms

public java.util.Set<ChadoCVTerm> getRootCVTerms()
Return a Set of the root CVTerms in this CV - ie. those with no parents.

Returns:
the cvterms

getAllCVTerms

public java.util.Set<ChadoCVTerm> getAllCVTerms()
Return a Set of all the CVTerms in this CV.

Returns:
the cvterms