5152535455565758596061
switch (serializationFormat) { case DOT: DotGraphPrintingVisitor visitor = new DotGraphPrintingVisitor(out); visitor.enter(element); element.accept(visitor); visitor.leave(element); break; case TXT: OutlinePrintingVisitor v = new OutlinePrintingVisitor(out); v.enter(element); element.accept(v);