|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface TextSource
We recommend that instead of implementing this interface that you extend DefaultTextSource. If you decide to implement this interface directly we encourage you to look at the code for DefaultTextSource to help you.
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()
|
String |
getText(List<Span> spans)
Returns the text corresponding to the spans passed in. |
int |
hashCode()
|
String |
toString()
|
Method Detail |
---|
String getText() throws TextSourceAccessException
TextSourceAccessException
String getName()
String getProtegeClsName()
Instance createTextSourceInstance(KnowledgeBase knowledgeBase)
int hashCode()
hashCode
in class Object
boolean equals(Object object)
equals
in class Object
String toString()
toString
in class Object
String getText(List<Span> spans) throws TextSourceAccessException
TextSourceAccessException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |