gate.creole
Class AbstractLanguageResource
java.lang.Object
|
+--gate.util.AbstractFeatureBearer
|
+--gate.creole.AbstractResource
|
+--gate.creole.AbstractLanguageResource
- All Implemented Interfaces:
- FeatureBearer, LanguageResource, Resource, Serializable
- Direct Known Subclasses:
- AnnotationSchema, DocumentFormat, DocumentImpl
- public abstract class AbstractLanguageResource
- extends AbstractResource
- implements LanguageResource
A convenience implementation of LanguageResource with some default code.
- See Also:
- Serialized Form
Method Summary |
DataStore |
getDataStore()
Get the data store that this LR lives in. |
void |
setDataStore(DataStore dataStore)
Set the data store that this LR lives in. |
void |
sync()
Save: synchonise the in-memory image of the LR with the persistent
image. |
Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait |
serialVersionUID
static final long serialVersionUID
dataStore
protected transient DataStore dataStore
- The data store this LR lives in.
AbstractLanguageResource
public AbstractLanguageResource()
getDataStore
public DataStore getDataStore()
- Get the data store that this LR lives in. Null for transient LRs.
- Specified by:
getDataStore
in interface LanguageResource
setDataStore
public void setDataStore(DataStore dataStore)
throws PersistenceException
- Set the data store that this LR lives in.
- Specified by:
setDataStore
in interface LanguageResource
sync
public void sync()
throws PersistenceException
- Save: synchonise the in-memory image of the LR with the persistent
image.
- Specified by:
sync
in interface LanguageResource