|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.uchsc.ccp.knowtator.textsource.TextSourceCollection
public abstract class TextSourceCollection
Authors: Philip V. Ogren Created: October, 2004 Description: Every extension of this class should have a corresponding extension of TextSource. Both extensions should be built together in parallel.
Field Summary | |
---|---|
static String |
CLS_NAME
Corresponds to the Protege class name of the text sources that are retrieved by this collection. |
static String |
DISPLAY_NAME
This is the name that is displayed when users are asked what type of text source collection they would like to access. |
Constructor Summary | |
---|---|
TextSourceCollection()
|
Method Summary | |
---|---|
static void |
createCls(KnowledgeBase kb)
This method ensures that the Protege cls definition corresponding to the text sources in this collection does exist. |
abstract TextSource |
find(Component parent)
|
abstract TextSource |
get(int index)
|
abstract TextSource |
get(String textSourceName)
|
abstract int |
getIndex(TextSource textSource)
|
abstract String |
getName()
|
abstract TextSourceIterator |
iterator()
provides an easy way for a script to iterate through all TextSources in a collection. |
static TextSourceCollection |
open(Project project)
This method should return the text source collection most recently opened by the provided project. |
static TextSourceCollection |
open(Project project,
Component parent)
|
abstract void |
save(Project project)
This method saves information about this text source collection to the Protege project. |
abstract TextSource |
select(Component parent)
|
abstract int |
size()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static String CLS_NAME
public static String DISPLAY_NAME
Constructor Detail |
---|
public TextSourceCollection()
Method Detail |
---|
public abstract TextSourceIterator iterator()
public abstract String getName()
public abstract int size()
public abstract TextSource get(int index) throws TextSourceAccessException
TextSourceAccessException
public abstract TextSource get(String textSourceName) throws TextSourceAccessException
TextSourceAccessException
public abstract int getIndex(TextSource textSource)
public abstract TextSource select(Component parent)
public abstract TextSource find(Component parent)
public abstract void save(Project project)
public static TextSourceCollection open(Project project)
public static TextSourceCollection open(Project project, Component parent)
public static void createCls(KnowledgeBase kb)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |