public abstract class GeneralTextExporter extends Object implements ExporterPlugin, Serializable
| Constructor and Description |
|---|
GeneralTextExporter() |
| Modifier and Type | Method and Description |
|---|---|
void |
appendMetaData(Writer out,
List<String> metaKeys,
String toplevelCorpus,
String documentName,
Map<String,Map<String,org.corpus_tools.salt.core.SMetaAnnotation>> metadataCache,
com.vaadin.ui.UI ui) |
void |
convertText(org.corpus_tools.salt.common.SaltProject queryResult,
List<String> keys,
Map<String,String> args,
Writer out,
int offset,
com.vaadin.ui.UI ui) |
Exception |
convertText(String queryAnnisQL,
QueryLanguage queryLanguage,
int contextLeft,
int contextRight,
Set<String> corpora,
List<String> keys,
String argsAsString,
boolean alignmc,
Writer out,
com.google.common.eventbus.EventBus eventBus,
Map<String,CorpusConfiguration> corpusConfigs,
com.vaadin.ui.UI ui) |
protected List<String> |
getAllAnnotationsAsExporterKey(Collection<String> corpora,
CorporaApi api)
Queries all annotations for the given corpora.
|
String |
getFileEnding() |
boolean |
isCancelable() |
boolean |
needsContext() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetHelpMessage, isAlignablepublic void appendMetaData(Writer out, List<String> metaKeys, String toplevelCorpus, String documentName, Map<String,Map<String,org.corpus_tools.salt.core.SMetaAnnotation>> metadataCache, com.vaadin.ui.UI ui) throws IOException
IOExceptionpublic void convertText(org.corpus_tools.salt.common.SaltProject queryResult,
List<String> keys,
Map<String,String> args,
Writer out,
int offset,
com.vaadin.ui.UI ui)
throws IOException
IOExceptionpublic Exception convertText(String queryAnnisQL, QueryLanguage queryLanguage, int contextLeft, int contextRight, Set<String> corpora, List<String> keys, String argsAsString, boolean alignmc, Writer out, com.google.common.eventbus.EventBus eventBus, Map<String,CorpusConfiguration> corpusConfigs, com.vaadin.ui.UI ui)
convertText in interface ExporterPluginpublic String getFileEnding()
getFileEnding in interface ExporterPluginpublic boolean isCancelable()
isCancelable in interface ExporterPluginpublic boolean needsContext()
needsContext in interface ExporterPluginprotected List<String> getAllAnnotationsAsExporterKey(Collection<String> corpora, CorporaApi api) throws ApiException
corpora - The corpora to queryapi - An API object used to perform the lookupApiExceptionCopyright © 2021 Corpuslinguistic working group Humboldt University Berlin. All rights reserved.