public class CorpusPersistence extends LRPersistence
| Modifier and Type | Field and Description | 
|---|---|
| protected List<Serializable> | docList | 
| protected Object | features | 
| protected Object | initParams | 
| protected static org.slf4j.Logger | log | 
| protected String | resourceName | 
| protected String | resourceType | 
dsData, persistenceIDcontainingControllerName, initParamOverrides| Constructor and Description | 
|---|
| CorpusPersistence() | 
| Modifier and Type | Method and Description | 
|---|---|
| Object | createObject()Creates a new object from the data contained. | 
| void | extractDataFromSource(Object source)Populates this Persistence with the data that needs to be stored from the
 original source object. | 
| protected static boolean | storeParameterValue(Object value,
                   Object defaultValue)Returns true if we should store the parameter value as it is different
 from the default value. | 
protected List<Serializable> docList
protected static final org.slf4j.Logger log
protected String resourceType
protected String resourceName
protected Object initParams
protected Object features
public void extractDataFromSource(Object source) throws PersistenceException
extractDataFromSource in interface PersistenceextractDataFromSource in class LRPersistencePersistenceExceptionpublic Object createObject() throws PersistenceException, ResourceInstantiationException
createObject in interface PersistencecreateObject in class LRPersistencePersistenceExceptionResourceInstantiationExceptionprotected static boolean storeParameterValue(Object value, Object defaultValue)
value - the value we might storedefaultValue - the default valueCopyright © 2024 GATE. All rights reserved.