public abstract class AbstractXmiSplitter extends Object implements XmiSplitter
| Modifier and Type | Field and Description |
|---|---|
protected Map<String,Set<JeDISVTDGraphNode>> |
annotationModules |
protected int |
currentSecondSofaMapKey |
protected String |
docTableName |
static String |
DOCUMENT_MODULE_LABEL |
protected Set<String> |
moduleAnnotationNames |
protected Map<Integer,JeDISVTDGraphNode> |
nodesByXmiId |
protected boolean |
recursively |
protected boolean |
storeBaseDocument |
| Constructor and Description |
|---|
AbstractXmiSplitter(Set<String> moduleAnnotationNames,
boolean recursively,
boolean storeBaseDocument,
String docTableName,
Set<String> baseDocumentAnnotations) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
adaptSofaIdMap(Map<Integer,JeDISVTDGraphNode> nodesByXmiId,
Map<String,Integer> updatedSofaIdMap)
Sets the correct XMI:ID values to the Sofa nodes.
|
protected org.apache.commons.lang3.tuple.ImmutablePair<Integer,Map<String,Integer>> |
assignNewXmiIds(Map<Integer,JeDISVTDGraphNode> nodesByXmiId,
Map<String,Integer> existingSofaIdMap,
int nextPossibleId) |
protected LinkedHashMap<String,ByteArrayOutputStream> |
createAnnotationModuleData(Map<Integer,JeDISVTDGraphNode> nodesByXmiId,
Map<String,Set<JeDISVTDGraphNode>> annotationModules) |
protected Map<String,Set<JeDISVTDGraphNode>> |
createAnnotationModules(Map<Integer,JeDISVTDGraphNode> nodesByXmiId) |
protected java.util.stream.Stream<String> |
determineLabelsForNode(JeDISVTDGraphNode node,
Set<String> moduleAnnotationNames,
boolean recursively) |
protected abstract String |
getNodeXml(JeDISVTDGraphNode node) |
protected void |
labelNodes(Map<Integer,JeDISVTDGraphNode> nodesByXmiId,
Set<String> moduleAnnotationNames,
boolean recursively) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitprocesspublic static final String DOCUMENT_MODULE_LABEL
protected final boolean recursively
protected final boolean storeBaseDocument
protected final String docTableName
protected int currentSecondSofaMapKey
protected Map<Integer,JeDISVTDGraphNode> nodesByXmiId
protected Map<String,Set<JeDISVTDGraphNode>> annotationModules
protected org.apache.commons.lang3.tuple.ImmutablePair<Integer,Map<String,Integer>> assignNewXmiIds(Map<Integer,JeDISVTDGraphNode> nodesByXmiId, Map<String,Integer> existingSofaIdMap, int nextPossibleId)
protected void adaptSofaIdMap(Map<Integer,JeDISVTDGraphNode> nodesByXmiId, Map<String,Integer> updatedSofaIdMap)
SOFA_UNKNOWN to indicate that no annotations referencing this sofa can be stored.nodesByXmiId - updatedSofaIdMap - protected Map<String,Set<JeDISVTDGraphNode>> createAnnotationModules(Map<Integer,JeDISVTDGraphNode> nodesByXmiId)
protected void labelNodes(Map<Integer,JeDISVTDGraphNode> nodesByXmiId, Set<String> moduleAnnotationNames, boolean recursively)
protected java.util.stream.Stream<String> determineLabelsForNode(JeDISVTDGraphNode node, Set<String> moduleAnnotationNames, boolean recursively)
protected abstract String getNodeXml(JeDISVTDGraphNode node) throws XMISplitterException
XMISplitterExceptionprotected LinkedHashMap<String,ByteArrayOutputStream> createAnnotationModuleData(Map<Integer,JeDISVTDGraphNode> nodesByXmiId, Map<String,Set<JeDISVTDGraphNode>> annotationModules) throws XMISplitterException
XMISplitterExceptionCopyright © 2019 JULIE Lab Jena, Germany. All rights reserved.