Changes

Jump to: navigation, search

JSON Integration Adapter

237 bytes added, 09:52, 23 June 2011
m
Message Details
format(TransferObject tobj, Message message, Output out)
Algorithm for format method is as follows
1. # Retrieve the root of the message2. # Iterate through each of the parts of the root 2.1 ## If the part is a CompositeMessagePartInstance, it is a message node 2.2 ## If the part is a PrimitiveMessagePart, it is a value node 2.3 ## Validate the part against the MessagePartMapping. Different types of validation must be done if the part is a Composite versus if it is a Primitive. 2.4 ## If the part is a CompositeMessagePartInstance, recursively call the format method with TransferObject set to the part. Suggested to overload the format method to format(TransferObject tobj, MessagePart message, Output out) and pass in the part, since retrieving a message root with getRoot() will always get the highest root of the message but what you want is the parent. 2.4 ## If the part is a PrimitiveMessagePart, write the message part to the output.
== Resources ==
1
edit

Navigation menu