edu.uchsc.ccp.knowtator.textsource.generif
Class GeneRIFTextSource

java.lang.Object
  extended by edu.uchsc.ccp.knowtator.textsource.DefaultTextSource
      extended by edu.uchsc.ccp.knowtator.textsource.filelines.FileLineTextSource
          extended by edu.uchsc.ccp.knowtator.textsource.generif.GeneRIFTextSource
All Implemented Interfaces:
TextSource

public class GeneRIFTextSource
extends FileLineTextSource


Field Summary
static String CLS_NAME
           
static String ENTREZ_GENE_SLOT_NAME
           
static String PMID_SLOT_NAME
           
 
Fields inherited from class edu.uchsc.ccp.knowtator.textsource.DefaultTextSource
name, protegeClsName, text
 
Constructor Summary
GeneRIFTextSource(String id, String[] entrezIDs, String pmid, String text)
           
 
Method Summary
 Instance createTextSourceInstance(KnowledgeBase knowledgeBase)
          This is the generic method for creating a "knowtator text source" instance from a TextSource object.
 String[] getEntrezIDs()
           
 
Methods inherited from class edu.uchsc.ccp.knowtator.textsource.DefaultTextSource
equals, getName, getProtegeClsName, getText, getText, getText, hashCode, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

CLS_NAME

public static final String CLS_NAME
See Also:
Constant Field Values

ENTREZ_GENE_SLOT_NAME

public static final String ENTREZ_GENE_SLOT_NAME
See Also:
Constant Field Values

PMID_SLOT_NAME

public static final String PMID_SLOT_NAME
See Also:
Constant Field Values
Constructor Detail

GeneRIFTextSource

public GeneRIFTextSource(String id,
                         String[] entrezIDs,
                         String pmid,
                         String text)
Method Detail

createTextSourceInstance

public Instance createTextSourceInstance(KnowledgeBase knowledgeBase)
Description copied from interface: TextSource
This is the generic method for creating a "knowtator text source" instance from a TextSource object. All instances of "knowtator text source" can be created in a very simplistic way from a TextSource object. An instance of the class specified by the name returned by getProtegeClsName() is created with the name returned by getName()

Specified by:
createTextSourceInstance in interface TextSource
Overrides:
createTextSourceInstance in class DefaultTextSource
Returns:
may return null if textSource.getProtegeClsName() is not a known cls name. Otherwise the new Protege instance that has been created.

getEntrezIDs

public String[] getEntrezIDs()