|
GATE Version 3.1-2270 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectgate.util.AbstractFeatureBearer
gate.creole.AbstractResource
gate.creole.AbstractLanguageResource
public abstract class AbstractLanguageResource
A convenience implementation of LanguageResource with some default code.
| Field Summary | |
|---|---|
protected DataStore |
dataStore
The data store this LR lives in. |
protected Object |
lrPersistentId
The persistence ID of this LR. |
| Fields inherited from class gate.creole.AbstractResource |
|---|
name |
| Fields inherited from class gate.util.AbstractFeatureBearer |
|---|
features |
| Constructor Summary | |
|---|---|
AbstractLanguageResource()
|
|
| Method Summary | |
|---|---|
void |
cleanup()
Clear the internal state of the resource |
DataStore |
getDataStore()
Get the data store that this LR lives in. |
Object |
getLRPersistenceId()
Returns the persistence id of this LR, if it has been stored in a datastore. |
LanguageResource |
getParent()
Returns the parent LR of this LR. |
boolean |
isModified()
Returns true of an LR has been modified since the last sync. |
void |
setDataStore(DataStore dataStore)
Set the data store that this LR lives in. |
void |
setLRPersistenceId(Object lrID)
Sets the persistence id of this LR. |
void |
setParent(LanguageResource parentLR)
Sets the parent LR of this LR. |
void |
sync()
Save: synchonise the in-memory image of the LR with the persistent image. |
| Methods inherited from class gate.creole.AbstractResource |
|---|
checkParameterValues, getBeanInfo, getName, getParameterValue, getParameterValue, init, removeResourceListeners, setName, setParameterValue, setParameterValue, setParameterValues, setParameterValues, setResourceListeners |
| Methods inherited from class gate.util.AbstractFeatureBearer |
|---|
getFeatures, setFeatures |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface gate.Resource |
|---|
getParameterValue, init, setParameterValue, setParameterValues |
| Methods inherited from interface gate.util.FeatureBearer |
|---|
getFeatures, setFeatures |
| Methods inherited from interface gate.util.NameBearer |
|---|
getName, setName |
| Field Detail |
|---|
protected transient DataStore dataStore
protected transient Object lrPersistentId
| Constructor Detail |
|---|
public AbstractLanguageResource()
| Method Detail |
|---|
public DataStore getDataStore()
getDataStore in interface LanguageResource
public void setDataStore(DataStore dataStore)
throws PersistenceException
setDataStore in interface LanguageResourcePersistenceExceptionpublic Object getLRPersistenceId()
getLRPersistenceId in interface LanguageResourcepublic void setLRPersistenceId(Object lrID)
setLRPersistenceId in interface LanguageResource
public void sync()
throws PersistenceException,
SecurityException
sync in interface LanguageResourcePersistenceException
SecurityExceptionpublic void cleanup()
cleanup in interface Resourcecleanup in class AbstractResourcepublic boolean isModified()
isModified in interface LanguageResource
public LanguageResource getParent()
throws PersistenceException,
SecurityException
getParent in interface LanguageResourcePersistenceException
SecurityException
public void setParent(LanguageResource parentLR)
throws PersistenceException,
SecurityException
setParent in interface LanguageResourcePersistenceException
SecurityException
|
GATE Version 3.1-2270 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||