com.prowidesoftware.swift.io.writer
Class XMLWriterVisitor

java.lang.Object
  extended by com.prowidesoftware.swift.io.writer.XMLWriterVisitor
All Implemented Interfaces:
IMessageVisitor

public class XMLWriterVisitor
extends java.lang.Object
implements IMessageVisitor

Main class for XML generation, that is called from SwiftMessage.visit(IMessageVisitor). Presence of blocks is checked by the calling class so the methods below asume that blocks are not null.

Version:
$Id: XMLWriterVisitor.java,v 1.1.1.1 2013/04/10 17:04:50 mgriffa Exp $
Author:
www.prowidesoftware.com

Constructor Summary
XMLWriterVisitor(java.io.Writer writer)
          Constructor for XMLWriteVisitor from a Writer object
 
Method Summary
 void endBlock1(SwiftBlock1 b)
           
 void endBlock2(SwiftBlock2 b)
           
 void endBlock3(SwiftBlock3 b)
           
 void endBlock4(SwiftBlock4 b)
           
 void endBlock5(SwiftBlock5 b)
           
 void endBlockUser(SwiftBlockUser b)
           
 void endMessage(SwiftMessage m)
           
 void startBlock1(SwiftBlock1 b)
           
 void startBlock2(SwiftBlock2 b)
           
 void startBlock3(SwiftBlock3 b)
           
 void startBlock4(SwiftBlock4 b)
           
 void startBlock5(SwiftBlock5 b)
           
 void startBlockUser(SwiftBlockUser b)
           
 void startMessage(SwiftMessage m)
           
 void tag(SwiftBlock3 b, Tag t)
           
 void tag(SwiftBlock4 b, Tag t)
           
 void tag(SwiftBlock5 b, Tag t)
           
 void tag(SwiftBlock b, Tag t)
           
 void tag(SwiftBlockUser b, Tag t)
           
 void value(SwiftBlock1 b, java.lang.String v)
           
 void value(SwiftBlock2 b, java.lang.String v)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMLWriterVisitor

public XMLWriterVisitor(java.io.Writer writer)
Constructor for XMLWriteVisitor from a Writer object

Parameters:
writer -
Method Detail

startMessage

public void startMessage(SwiftMessage m)
Specified by:
startMessage in interface IMessageVisitor

endMessage

public void endMessage(SwiftMessage m)
Specified by:
endMessage in interface IMessageVisitor

startBlock1

public void startBlock1(SwiftBlock1 b)
Specified by:
startBlock1 in interface IMessageVisitor
Parameters:
b - block to visit

value

public void value(SwiftBlock1 b,
                  java.lang.String v)
Specified by:
value in interface IMessageVisitor

endBlock1

public void endBlock1(SwiftBlock1 b)
Specified by:
endBlock1 in interface IMessageVisitor
Parameters:
b - block to visit

startBlock2

public void startBlock2(SwiftBlock2 b)
Specified by:
startBlock2 in interface IMessageVisitor
Parameters:
b - block to visit

value

public void value(SwiftBlock2 b,
                  java.lang.String v)
Specified by:
value in interface IMessageVisitor

endBlock2

public void endBlock2(SwiftBlock2 b)
Specified by:
endBlock2 in interface IMessageVisitor
Parameters:
b - block to visit

startBlock3

public void startBlock3(SwiftBlock3 b)
Specified by:
startBlock3 in interface IMessageVisitor
Parameters:
b - block to visit

tag

public void tag(SwiftBlock3 b,
                Tag t)
Specified by:
tag in interface IMessageVisitor

endBlock3

public void endBlock3(SwiftBlock3 b)
Specified by:
endBlock3 in interface IMessageVisitor
Parameters:
b - block to visit

startBlock4

public void startBlock4(SwiftBlock4 b)
Specified by:
startBlock4 in interface IMessageVisitor
Parameters:
b - block to visit

tag

public void tag(SwiftBlock4 b,
                Tag t)
Specified by:
tag in interface IMessageVisitor

endBlock4

public void endBlock4(SwiftBlock4 b)
Specified by:
endBlock4 in interface IMessageVisitor
Parameters:
b - block to visit

startBlock5

public void startBlock5(SwiftBlock5 b)
Specified by:
startBlock5 in interface IMessageVisitor
Parameters:
b - block to visit

tag

public void tag(SwiftBlock5 b,
                Tag t)
Specified by:
tag in interface IMessageVisitor

endBlock5

public void endBlock5(SwiftBlock5 b)
Specified by:
endBlock5 in interface IMessageVisitor
Parameters:
b - block to visit

startBlockUser

public void startBlockUser(SwiftBlockUser b)
Specified by:
startBlockUser in interface IMessageVisitor
Parameters:
b - block to visit

tag

public void tag(SwiftBlockUser b,
                Tag t)
Specified by:
tag in interface IMessageVisitor

endBlockUser

public void endBlockUser(SwiftBlockUser b)
Specified by:
endBlockUser in interface IMessageVisitor
Parameters:
b - block to visit

tag

public void tag(SwiftBlock b,
                Tag t)