| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectedu.uchsc.ccp.knowtator.textsource.DefaultTextSource
public class DefaultTextSource
| Field Summary | |
|---|---|
| static String | CLS_NAME | 
| protected  String | name | 
| protected  String | protegeClsName | 
| protected  String | text | 
| Constructor Summary | |
|---|---|
| DefaultTextSource()Creates a new instance of TextSource | |
| DefaultTextSource(String name,
                                   String text) | |
| DefaultTextSource(String name,
                                   String text,
                                   String protegeClsName) | |
| Method Summary | |
|---|---|
|  Instance | createTextSourceInstance(KnowledgeBase knowledgeBase)This is the generic method for creating a "knowtator text source" instance from a TextSource object. | 
|  boolean | equals(Object object) | 
|  String | getName() | 
|  String | getProtegeClsName()Every implementation of TextSource corresponds to a subclass of "knowtator text source" which is a class defined knowtator.pprj (which is the project that must be included in order to run Knowtator.) | 
|  String | getText()It might be prudent for extensions of this class to override this method such that the member variable text is not used - esp. | 
|  String | getText(List<Span> annotationSpans)Returns the text corresponding to the spans passed in. | 
| static String | getText(List<Span> annotationSpans,
               String text) | 
|  int | hashCode() | 
|  String | toString() | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, finalize, getClass, notify, notifyAll, wait, wait, wait | 
| Field Detail | 
|---|
public static final String CLS_NAME
protected String text
protected String name
protected String protegeClsName
| Constructor Detail | 
|---|
public DefaultTextSource()
public DefaultTextSource(String name,
                         String text)
public DefaultTextSource(String name,
                         String text,
                         String protegeClsName)
| Method Detail | 
|---|
public String getText()
               throws TextSourceAccessException
getText in interface TextSourceTextSourceAccessExceptionpublic String getName()
getName in interface TextSourcepublic String getProtegeClsName()
TextSource
getProtegeClsName in interface TextSourcepublic Instance createTextSourceInstance(KnowledgeBase knowledgeBase)
TextSource
createTextSourceInstance in interface TextSourcepublic int hashCode()
hashCode in interface TextSourcehashCode in class Objectpublic boolean equals(Object object)
equals in interface TextSourceequals in class Objectpublic String toString()
toString in interface TextSourcetoString in class Object
public String getText(List<Span> annotationSpans)
               throws TextSourceAccessException
TextSource
getText in interface TextSourceTextSourceAccessException
public static String getText(List<Span> annotationSpans,
                             String text)
                      throws TextSourceAccessException
TextSourceAccessException| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||