|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--gate.util.AbstractFeatureBearer | +--gate.creole.AbstractResource | +--gate.creole.AbstractLanguageResource | +--gate.corpora.CorpusImpl | +--gate.corpora.DatabaseCorpusImpl
Field Summary |
Fields inherited from interface gate.corpora.EventAwareLanguageResource |
DOC_CONTENT, DOC_MAIN, RES_FEATURES, RES_NAME |
Fields inherited from interface gate.Corpus |
CORPUS_DOCLIST_PARAMETER_NAME, CORPUS_NAME_PARAMETER_NAME |
Constructor Summary | |
DatabaseCorpusImpl()
|
|
DatabaseCorpusImpl(String _name,
DatabaseDataStore _ds,
Long _persistenceID,
FeatureMap _features,
Vector _dbDocs)
|
Method Summary | |
void |
add(int index,
Object element)
|
boolean |
add(Object o)
|
boolean |
addAll(Collection c)
|
boolean |
addAll(int index,
Collection c)
|
void |
cleanup()
Overriden to remove the features listener, when the document is closed. |
boolean |
contains(Object o)
|
int |
findDocument(Document doc)
|
Object |
get(int index)
returns a document in the coprus by index |
String |
getDocumentName(int index)
Gets the name of a document in this corpus. |
List |
getDocumentNames()
Gets the names of the documents in this corpus. |
Object |
getInitData__$$__(Object initData)
|
List |
getLoadedDocuments()
|
List |
getRemovedDocuments()
|
boolean |
isModified()
Returns true of an LR has been modified since the last sync. |
boolean |
isResourceChanged(int changeType)
|
Iterator |
iterator()
|
Object |
remove(int index)
|
boolean |
remove(Object obj)
|
void |
resourceAdopted(DatastoreEvent evt)
Called by a datastore when a new resource has been adopted |
void |
resourceDeleted(DatastoreEvent evt)
Called by a datastore when a resource has been deleted |
void |
resourceWritten(DatastoreEvent evt)
Called by a datastore when a resource has been wrote into the datastore |
void |
setFeatures(FeatureMap features)
Set the feature set |
void |
setInitData__$$__(Object data)
|
void |
setName(String name)
Sets the name of this resource |
Methods inherited from class gate.corpora.CorpusImpl |
addCorpusListener, clear, containsAll, datastoreClosed, datastoreCreated, datastoreOpened, equals, getDocumentsList, hashCode, indexOf, init, isDocumentLoaded, isEmpty, lastIndexOf, listIterator, listIterator, populate, populate, removeAll, removeCorpusListener, resourceLoaded, resourceRenamed, resourceUnloaded, retainAll, set, setDocumentsList, size, subList, toArray, toArray, unloadDocument |
Methods inherited from class gate.creole.AbstractLanguageResource |
getDataStore, getLRPersistenceId, getParent, setDataStore, setLRPersistenceId, setParent, sync |
Methods inherited from class gate.creole.AbstractResource |
checkParameterValues, getName, getParameterValue, getParameterValue, removeResourceListeners, setParameterValue, setParameterValue, setParameterValues, setParameterValues, setResourceListeners |
Methods inherited from class gate.util.AbstractFeatureBearer |
getFeatures |
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface gate.LanguageResource |
getDataStore, getLRPersistenceId, getParent, setDataStore, setLRPersistenceId, setParent, sync |
Methods inherited from interface gate.Resource |
getParameterValue, setParameterValue, setParameterValues |
Methods inherited from interface gate.util.FeatureBearer |
getFeatures |
Methods inherited from interface gate.util.NameBearer |
getName |
Constructor Detail |
public DatabaseCorpusImpl()
public DatabaseCorpusImpl(String _name, DatabaseDataStore _ds, Long _persistenceID, FeatureMap _features, Vector _dbDocs)
Method Detail |
public boolean add(Object o)
add
in interface List
add
in class CorpusImpl
public void add(int index, Object element)
add
in interface List
add
in class CorpusImpl
public boolean addAll(Collection c)
addAll
in interface List
addAll
in class CorpusImpl
public boolean addAll(int index, Collection c)
addAll
in interface List
addAll
in class CorpusImpl
public void resourceAdopted(DatastoreEvent evt)
DatastoreListener
resourceAdopted
in interface DatastoreListener
public void resourceDeleted(DatastoreEvent evt)
DatastoreListener
resourceDeleted
in interface DatastoreListener
public void resourceWritten(DatastoreEvent evt)
DatastoreListener
resourceWritten
in interface DatastoreListener
public boolean isResourceChanged(int changeType)
isResourceChanged
in interface EventAwareLanguageResource
public boolean isModified()
isModified
in interface LanguageResource
isModified
in class AbstractLanguageResource
public void setName(String name)
setName
in interface NameBearer
setName
in class AbstractResource
public void setFeatures(FeatureMap features)
setFeatures
in interface FeatureBearer
setFeatures
in class AbstractFeatureBearer
public void cleanup()
cleanup
in interface Resource
cleanup
in class CorpusImpl
public void setInitData__$$__(Object data)
public Object getInitData__$$__(Object initData)
public List getDocumentNames()
getDocumentNames
in interface Corpus
getDocumentNames
in class CorpusImpl
List
of Strings representing the names of the documents
in this corpus.public String getDocumentName(int index)
getDocumentName
in interface Corpus
getDocumentName
in class CorpusImpl
index
- the index of the document
public Object get(int index)
get
in interface List
get
in class CorpusImpl
index
- the index of the document
public Object remove(int index)
remove
in interface List
remove
in class CorpusImpl
public boolean remove(Object obj)
remove
in interface List
remove
in class CorpusImpl
public int findDocument(Document doc)
public boolean contains(Object o)
contains
in interface List
contains
in class CorpusImpl
public Iterator iterator()
iterator
in interface List
iterator
in class CorpusImpl
public List getLoadedDocuments()
getLoadedDocuments
in interface EventAwareCorpus
public List getRemovedDocuments()
getRemovedDocuments
in interface EventAwareCorpus
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |