public class XTAWriter extends AbstractVisitor
Document
.
Implemented via the visitor pattern.
Modifier and Type | Field and Description |
---|---|
protected int |
level |
protected Map<Element,String> |
names |
protected Writer |
writer |
Constructor and Description |
---|
XTAWriter(OutputStream stream) |
Modifier and Type | Method and Description |
---|---|
UGIWriter |
createUGIWriter(OutputStream stream)
Create and return a new UGI writer.
|
protected boolean |
hasFlag(Element element,
String property) |
protected boolean |
isEmpty(String str) |
void |
visitDocument(Document document) |
void |
visitTemplate(AbstractTemplate template) |
protected void |
writeNonEmptyProperty(Element element,
String name) |
protected void |
writeNonEmptyProperty(Element element,
String name,
String format) |
visitBranchPoint, visitCondition, visitCut, visitEdge, visitElement, visitInstanceLine, visitLocation, visitMessage, visitNail, visitNode, visitPrechart, visitProperty, visitUpdate
protected Writer writer
protected int level
public XTAWriter(OutputStream stream)
public UGIWriter createUGIWriter(OutputStream stream)
protected boolean isEmpty(String str)
protected void writeNonEmptyProperty(Element element, String name, String format) throws IOException
IOException
protected void writeNonEmptyProperty(Element element, String name) throws IOException
IOException
public void visitDocument(Document document) throws Exception
visitDocument
in interface Visitor
visitDocument
in class AbstractVisitor
Exception
public void visitTemplate(AbstractTemplate template) throws Exception
visitTemplate
in interface Visitor
visitTemplate
in class AbstractVisitor
Exception
Copyright © 2012 Uppsala University and Aalborg University. All Rights Reserved.