com.prowidesoftware.swift.utils
Interface IMessageVisitor
- All Known Implementing Classes:
- BaseMessageVisitor, FINWriterVisitor, XMLWriterVisitor
public interface IMessageVisitor
Interface to be implemented by classes that will 'visit' a swift message.
There method call sequence is as follows:
startMessage
startBlock1 -> value -> endBlock1
(if block 1 exists)
startBlock2 -> value -> endBlock2
(if block 2 exists)
startBlock3 -> tag (for every tag) -> endBlock3
(if block 3 exists)
startBlock4 -> tag (for every tag) -> endBlock4
(if block 4 exists)
startBlock5 -> tag (for every tag) -> endBlock5
(if block 5 exists)
startBlockUser -> tag (for every tag) -> endBlockUser
(for every user defined block and every tag of that block)
endMessage
Notice that the tag
and value
methods are overloaded for every type of SwiftBlock
derived class.
NOTE: this API has changed since 4.0 with SwiftBlocks 1-5 in each start/end
method pairs.
- Version:
- $Id: IMessageVisitor.java,v 1.1.1.1 2013/04/10 17:04:50 mgriffa Exp $
- Author:
- www.prowidesoftware.com
startBlock1
void startBlock1(SwiftBlock1 b)
- Parameters:
b
- block to visit
startBlock2
void startBlock2(SwiftBlock2 b)
- Parameters:
b
- block to visit
startBlock3
void startBlock3(SwiftBlock3 b)
- Parameters:
b
- block to visit
startBlock4
void startBlock4(SwiftBlock4 b)
- Parameters:
b
- block to visit
startBlock5
void startBlock5(SwiftBlock5 b)
- Parameters:
b
- block to visit
startBlockUser
void startBlockUser(SwiftBlockUser b)
- Parameters:
b
- block to visit
endBlock1
void endBlock1(SwiftBlock1 b)
- Parameters:
b
- block to visit
endBlock2
void endBlock2(SwiftBlock2 b)
- Parameters:
b
- block to visit
endBlock3
void endBlock3(SwiftBlock3 b)
- Parameters:
b
- block to visit
endBlock4
void endBlock4(SwiftBlock4 b)
- Parameters:
b
- block to visit
endBlock5
void endBlock5(SwiftBlock5 b)
- Parameters:
b
- block to visit
endBlockUser
void endBlockUser(SwiftBlockUser b)
- Parameters:
b
- block to visit
tag
void tag(SwiftBlock3 b,
Tag t)
- Parameters:
b
- t
-
tag
void tag(SwiftBlock4 b,
Tag t)
- Parameters:
b
- t
-
tag
void tag(SwiftBlock5 b,
Tag t)
- Parameters:
b
- t
-
tag
void tag(SwiftBlockUser b,
Tag t)
- Parameters:
b
- t
-
value
void value(SwiftBlock1 b,
java.lang.String v)
- Parameters:
b
- v
-
value
void value(SwiftBlock2 b,
java.lang.String v)
- Parameters:
b
- v
-
startMessage
void startMessage(SwiftMessage m)
- Parameters:
m
-
endMessage
void endMessage(SwiftMessage m)
- Parameters:
m
-