edu.mayo.informatics.resourcereader.obo
Class OBORelations

java.lang.Object
  extended by edu.mayo.informatics.resourcereader.core.impl.Resource
      extended by edu.mayo.informatics.resourcereader.obo.OBO
          extended by edu.mayo.informatics.resourcereader.obo.OBOCollection
              extended by edu.mayo.informatics.resourcereader.obo.OBORelations
All Implemented Interfaces:
ResourceCollection, TopResource

public class OBORelations
extends OBOCollection

The class stores the list of OBO relations

Version:
subversion $Revision: $ checked in on $Date: $
Author:
Deepak Sharma

Field Summary
 
Fields inherited from class edu.mayo.informatics.resourcereader.obo.OBO
logger
 
Constructor Summary
OBORelations(CachingMessageDirectorIF rLogger)
           
 
Method Summary
 void addMember(ResourceEntity relp)
           
 void addMergeMember(OBORelation rel)
           
 java.util.Collection<OBORelation> getAllMembers()
           
protected  java.util.Collection<OBORelation> getAllUsedRelationsDelete()
          Don't use this function as the rel.isUsed is not being set correctly while the OBO file is being read.
 OBORelation getMemberById(java.lang.String id)
           
 OBORelation getMemberByName(java.lang.String name)
           
 long getMembersCount()
           
 void init()
           
 java.lang.String toString()
           
 
Methods inherited from class edu.mayo.informatics.resourcereader.obo.OBOCollection
getMemberByProperty
 
Methods inherited from class edu.mayo.informatics.resourcereader.core.impl.Resource
getLogger, setLogger
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

OBORelations

public OBORelations(CachingMessageDirectorIF rLogger)
Method Detail

init

public void init()
Specified by:
init in interface ResourceCollection
Overrides:
init in class OBOCollection

addMember

public void addMember(ResourceEntity relp)
               throws ResourceException
Specified by:
addMember in interface ResourceCollection
Overrides:
addMember in class OBOCollection
Throws:
ResourceException

addMergeMember

public void addMergeMember(OBORelation rel)
                    throws ResourceException
Throws:
ResourceException

getMemberById

public OBORelation getMemberById(java.lang.String id)
                          throws ResourceException
Specified by:
getMemberById in interface ResourceCollection
Overrides:
getMemberById in class OBOCollection
Throws:
ResourceException

getMemberByName

public OBORelation getMemberByName(java.lang.String name)
                            throws ResourceException
Specified by:
getMemberByName in interface ResourceCollection
Overrides:
getMemberByName in class OBOCollection
Throws:
ResourceException

getAllMembers

public java.util.Collection<OBORelation> getAllMembers()
Specified by:
getAllMembers in interface ResourceCollection
Overrides:
getAllMembers in class OBOCollection

getAllUsedRelationsDelete

protected java.util.Collection<OBORelation> getAllUsedRelationsDelete()
Don't use this function as the rel.isUsed is not being set correctly while the OBO file is being read.


getMembersCount

public long getMembersCount()
Specified by:
getMembersCount in interface ResourceCollection
Overrides:
getMembersCount in class OBOCollection

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

Copyright: (c) 2004-2006 Mayo Foundation for Medical Education and Research (MFMER). All rights reserved. MAYO, MAYO CLINIC, and the triple-shield Mayo logo are trademarks and service marks of MFMER.