public class LanguageAnalyserPersistence extends PRPersistence
LanguageAnalyser
s.
Adds handling of corpus and document members for PRPersistence.Modifier and Type | Field and Description |
---|---|
protected Object |
corpus |
protected Object |
document |
protected Object |
features |
protected Object |
initParams |
protected static org.slf4j.Logger |
log |
protected String |
resourceName |
protected String |
resourceType |
runtimeParams
containingControllerName, initParamOverrides
Constructor and Description |
---|
LanguageAnalyserPersistence() |
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 Object corpus
protected Object document
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 Persistence
extractDataFromSource
in class PRPersistence
PersistenceException
public Object createObject() throws PersistenceException, ResourceInstantiationException
createObject
in interface Persistence
createObject
in class PRPersistence
PersistenceException
ResourceInstantiationException
protected static boolean storeParameterValue(Object value, Object defaultValue)
value
- the value we might storedefaultValue
- the default valueCopyright © 2024 GATE. All rights reserved.