org.fudgemsg.mapping
Interface FudgeMessageBuilder<T>

Type Parameters:
T - the Java type this builder creates Fudge message from
All Known Subinterfaces:
FudgeBuilder<T>

public interface FudgeMessageBuilder<T>

Defines an object capable of adding data from a given Java object to a fudge message.


Method Summary
 MutableFudgeFieldContainer buildMessage(FudgeSerializationContext context, T object)
          Creates a message from the given object.
 

Method Detail

buildMessage

MutableFudgeFieldContainer buildMessage(FudgeSerializationContext context,
                                        T object)
Creates a message from the given object. Note that a mutable container must be returned, this is to allow efficient implementation of sub-class builders that only need append data to the super-class message.

Parameters:
context - the FudgeSerializationContext
object - the object to serialise
Returns:
the Fudge message


Copyright 2009-Present by OpenGamma Inc. and individual contributors
Released under the Apache License, Version 2.0