mil.dod.th.ose.shared/src/mil/dod/th/ose/shared/protoconverter/JaxbConverter.java
public static Message convertToProto(final Object object)
            throws ObjectConverterException
    {   
        final Class<? extends Message> messageClass = findProtoClass(object.getClass());
        final Message.Builder protoBuilder = getBuilder(messageClass);
        
        //fill in the fields for the particular message using the values from the jaxb class
        for (FieldDescriptor fieldDesc : protoBuilder.getDescriptorForType().getFields())
        {
            processField(object, protoBuilder, messageClass, fieldDesc);
        }
        
        return protoBuilder.build();
    }
/**
     * The method responsible for handling the conversion of the JAXB object to the Protocol {@link Message}.
     * 
     * @param object
     *          The JAXB object to be converted to a Protocol {@link Message}.
     * @return
     *          The {@link Message} that represents the JAXB object.
     * @throws ObjectConverterException 
     *          When the JAXB object is unable to be converted to a @{link Message}.
     */
The method responsible for handling the conversion of the JAXB object to the Protocol  Message.

@param object
The JAXB object to be converted to a Protocol  Message.
@return
The  Message that represents the JAXB object.
@throws ObjectConverterException
When the JAXB object is unable to be converted to a @{link Message}.
The method responsible for handling the conversion of the JAXB object to the Protocol Message . @param object The JAXB object to be converted to a Protocol Message . @return The Message that represents the JAXB object . @throws ObjectConverterException When the JAXB object is unable to be converted to a @ { link Message } .
public static Message convertToProto(final Object object)
            throws ObjectConverterException
    {   
        final Class<? extends Message> messageClass = findProtoClass(object.getClass());
        final Message.Builder protoBuilder = getBuilder(messageClass);
        for (FieldDescriptor fieldDesc : protoBuilder.getDescriptorForType().getFields())
        {
            processField(object, protoBuilder, messageClass, fieldDesc);
        }
        return protoBuilder.build();
    }
public static Message convertToProto ( final Object object ) throws ObjectConverterException { final Class < ? extends Message > messageClass = findProtoClass ( object . getClass ( ) ) ; final Message . Builder protoBuilder = getBuilder ( messageClass ) ; for ( FieldDescriptor fieldDesc : protoBuilder . getDescriptorForType ( ) . getFields ( ) ) { processField ( object , protoBuilder , messageClass , fieldDesc ) ; } return protoBuilder . build ( ) ; }
The method responsible for handling the conversion of the JAXB object to the Protocol {@link Message}.
The method responsible for handling the conversion of the JAXB object to the Protocol { @link Message } .
//fill in the fields for the particular message using the values from the jaxb class