org.schwiebert.abl4j.io
Interface ISerializationVisitor
- All Known Implementing Classes:
- PlainTextSerializationVisitor, XMLVisitor
public interface ISerializationVisitor
Definition of a visitor-interface that can be used to serialize a ITreeBank.
- Author:
- sschwieb
initialize
void initialize(Writer writer,
Properties properties)
throws IOException
- Throws:
IOException
visitTreeBank
void visitTreeBank(ITreeBank<?> treebank)
throws IOException
- Throws:
IOException
visitTree
void visitTree(ITree tree,
boolean begin)
throws IOException
- Throws:
IOException
visitSentence
void visitSentence(ISentence tree)
throws IOException
- Throws:
IOException
visitConstituent
void visitConstituent(IConstituent constituent,
boolean begin)
throws IOException
- Throws:
IOException
visitWord
void visitWord(IWord word,
boolean hasNext)
throws IOException
- Throws:
IOException
visitNonTerminal
void visitNonTerminal(NonTerminal nonTerminal,
boolean hasNext)
throws IOException
- Throws:
IOException
close
void close()
throws IOException
- Throws:
IOException
© 2007 Stephan Schwiebert