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

Constructor Summary
AbstractLanguageResource()
           
 
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 gate.creole.AbstractResource
getName, init, setName
 
Methods inherited from class gate.util.AbstractFeatureBearer
getFeatures, setFeatures
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface gate.Resource
init
 
Methods inherited from interface gate.util.FeatureBearer
getFeatures, getName, setFeatures, setName
 

Constructor Detail

AbstractLanguageResource

public AbstractLanguageResource()
Method Detail

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