edu.mayo.informatics.resourcereader.obo
Class OBOCollection

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
All Implemented Interfaces:
ResourceCollection, TopResource
Direct Known Subclasses:
OBOAbbreviations, OBOInstances, OBORelations, OBOTerms

public class OBOCollection
extends OBO
implements ResourceCollection

A OBO implementation of a ResourceCollection

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
OBOCollection(CachingMessageDirectorIF rLogger)
           
 
Method Summary
 void addMember(ResourceEntity entity)
           
 java.util.Collection getAllMembers()
           
 ResourceEntity getMemberById(java.lang.String id)
           
 ResourceEntity getMemberByName(java.lang.String name)
           
 ResourceEntity getMemberByProperty(java.lang.Object obj)
           
 long getMembersCount()
           
 void init()
           
 
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, toString, wait, wait, wait
 

Constructor Detail

OBOCollection

public OBOCollection(CachingMessageDirectorIF rLogger)
Method Detail

init

public void init()
Specified by:
init in interface ResourceCollection

addMember

public void addMember(ResourceEntity entity)
               throws ResourceException
Specified by:
addMember in interface ResourceCollection
Throws:
ResourceException

getMemberById

public ResourceEntity getMemberById(java.lang.String id)
                             throws ResourceException
Specified by:
getMemberById in interface ResourceCollection
Throws:
ResourceException

getMemberByName

public ResourceEntity getMemberByName(java.lang.String name)
                               throws ResourceException
Specified by:
getMemberByName in interface ResourceCollection
Throws:
ResourceException

getMemberByProperty

public ResourceEntity getMemberByProperty(java.lang.Object obj)
                                   throws ResourceException
Specified by:
getMemberByProperty in interface ResourceCollection
Throws:
ResourceException

getAllMembers

public java.util.Collection getAllMembers()
                                   throws ResourceException
Specified by:
getAllMembers in interface ResourceCollection
Throws:
ResourceException

getMembersCount

public long getMembersCount()
Specified by:
getMembersCount in interface ResourceCollection

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.