public class XmiBuilder extends Object
| Modifier and Type | Field and Description |
|---|---|
static List<String> |
noViewMembers
Start tags of elements whose xmi ids should not appear in the
cas:View-element.
|
| Constructor and Description |
|---|
XmiBuilder(Map<String,String> nsAndXmiVersionMap,
String[] annotationsToRetrieve) |
XmiBuilder(Map<String,String> nsAndXmiVersionMap,
String[] annotationsToRetrieve,
long attribute_size) |
| Modifier and Type | Method and Description |
|---|---|
ByteArrayOutputStream |
buildXmi(LinkedHashMap<String,InputStream> xmiData,
String docTable,
org.apache.uima.cas.TypeSystem ts)
Builds a single xmi representation out of the base document and the
selected annotations.
|
void |
setdocTableName(String docTableName)
The name of the table containing the base document.
|
void |
setInputSize(int dataSize) |
void |
setXmiData(HashMap<String,InputStream> xmiData)
The xmi data (document and annotations) as input streams mapped to table
names.
|
protected void |
setXMIStartElementData(Map<String,String> namespacesAndXmiVersion) |
public XmiBuilder(Map<String,String> nsAndXmiVersionMap, String[] annotationsToRetrieve, long attribute_size)
public ByteArrayOutputStream buildXmi(LinkedHashMap<String,InputStream> xmiData, String docTable, org.apache.uima.cas.TypeSystem ts)
xmiData - The xmi data (document and annotations) as input streams
mapped from storage keys. It is a LinkedHashMap because
the order of the annotation data - e.g. first Sentences, then
Tokens - influences the internal index order in the CAS. Thus,
when serializing, the order of the LinkedHashMap will
be reflected in the XMI. Since we rely on the order of
appearance of annotations to determine the end of the base
document, we must provide the correct order.docTable - The name of the table containing the base document.ts - protected void setXMIStartElementData(Map<String,String> namespacesAndXmiVersion)
public void setdocTableName(String docTableName)
docTableName - public void setXmiData(HashMap<String,InputStream> xmiData)
xmiData - public void setInputSize(int dataSize)
Copyright © 2019 JULIE Lab Jena, Germany. All rights reserved.