@CreoleResource(name="Inline XML Exporter", tool=true, autoinstances=, icon="InlineXML") public class InlineXMLExporter extends DocumentExporter
defaultExtension, fileType, filter, mimeType
name
features
Constructor and Description |
---|
InlineXMLExporter() |
Modifier and Type | Method and Description |
---|---|
void |
export(Document doc,
OutputStream out,
FeatureMap options)
Exports the provided
Document instance to the specified
OutputStream using the specified options. |
String |
getAnnotationSetName() |
List<String> |
getAnnotationTypes() |
String |
getEncoding() |
Boolean |
getIncludeFeatures() |
Boolean |
getIncludeOriginalMarkups() |
String |
getRootElement() |
void |
setAnnotationSetName(String annotationSetName) |
void |
setAnnotationTypes(List<String> annotationTypes) |
void |
setEncoding(String encoding) |
void |
setIncludeFeatures(Boolean includeFeatures) |
void |
setIncludeOriginalMarkups(Boolean includeOriginalMarkups) |
void |
setRootElement(String rootElement) |
export, export, export, getDefaultExtension, getFileFilter, getFileType, getInstance, getMimeType, getName
checkParameterValues, cleanup, flushBeanInfoCache, forgetBeanInfo, getBeanInfo, getInitParameterValues, getInitParameterValues, getParameterValue, getParameterValue, getParameterValues, init, removeResourceListeners, setName, setParameterValue, setParameterValue, setParameterValues, setParameterValues, setResourceListeners, toString
getFeatures, setFeatures
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getFeatures, setFeatures
public String getAnnotationSetName()
public String getEncoding()
@RunTime @CreoleParameter(defaultValue="UTF-8") public void setEncoding(String encoding)
public String getRootElement()
@RunTime @Optional @CreoleParameter public void setRootElement(String rootElement)
@RunTime @Optional @CreoleParameter public void setAnnotationSetName(String annotationSetName)
@RunTime @CreoleParameter(defaultValue="Person;Location;Organization") public void setAnnotationTypes(List<String> annotationTypes)
public Boolean getIncludeOriginalMarkups()
@RunTime @CreoleParameter(defaultValue="false") public void setIncludeOriginalMarkups(Boolean includeOriginalMarkups)
public Boolean getIncludeFeatures()
@RunTime @CreoleParameter(defaultValue="true") public void setIncludeFeatures(Boolean includeFeatures)
public void export(Document doc, OutputStream out, FeatureMap options) throws IOException
DocumentExporter
Document
instance to the specified
OutputStream
using the specified options.export
in class DocumentExporter
doc
- the document to exportout
- the OutputStream to export the document tooptions
- DocumentExporter specific optionsIOException
Copyright © 2024 GATE. All rights reserved.