|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.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 TextSource
TextSourceAccessException
public String getName()
getName
in interface TextSource
public String getProtegeClsName()
TextSource
getProtegeClsName
in interface TextSource
public Instance createTextSourceInstance(KnowledgeBase knowledgeBase)
TextSource
createTextSourceInstance
in interface TextSource
public int hashCode()
hashCode
in interface TextSource
hashCode
in class Object
public boolean equals(Object object)
equals
in interface TextSource
equals
in class Object
public String toString()
toString
in interface TextSource
toString
in class Object
public String getText(List<Span> annotationSpans) throws TextSourceAccessException
TextSource
getText
in interface TextSource
TextSourceAccessException
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 |