public abstract class AbstractLanguageResource extends AbstractResource implements LanguageResource
| Modifier and Type | Field and Description |
|---|---|
protected DataStore |
dataStore
The data store this LR lives in.
|
protected Object |
lrPersistentId
The persistence ID of this LR.
|
namefeatures| Constructor and Description |
|---|
AbstractLanguageResource() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
checkParameterValues, flushBeanInfoCache, forgetBeanInfo, getBeanInfo, getInitParameterValues, getInitParameterValues, getName, getParameterValue, getParameterValue, getParameterValues, init, removeResourceListeners, setName, setParameterValue, setParameterValue, setParameterValues, setParameterValues, setResourceListeners, toStringgetFeatures, setFeaturesclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetParameterValue, init, setParameterValue, setParameterValuesgetFeatures, setFeaturesgetName, setNameprotected transient DataStore dataStore
protected transient Object lrPersistentId
public DataStore getDataStore()
getDataStore in interface LanguageResourcepublic void setDataStore(DataStore dataStore) throws PersistenceException
setDataStore in interface LanguageResourcePersistenceExceptionpublic Object getLRPersistenceId()
getLRPersistenceId in interface LanguageResourcepublic void setLRPersistenceId(Object lrID)
setLRPersistenceId in interface LanguageResourcepublic void sync()
throws PersistenceException,
SecurityException
sync in interface LanguageResourcePersistenceExceptionSecurityExceptionpublic void cleanup()
cleanup in interface Resourcecleanup in class AbstractResourcepublic boolean isModified()
isModified in interface LanguageResourcepublic LanguageResource getParent() throws PersistenceException, SecurityException
getParent in interface LanguageResourcePersistenceExceptionSecurityExceptionpublic void setParent(LanguageResource parentLR) throws PersistenceException, SecurityException
setParent in interface LanguageResourcePersistenceExceptionSecurityExceptionCopyright © 2024 GATE. All rights reserved.