mil.dod.th.ose.shared/src/mil/dod/th/ose/shared/protoconverter/JaxbConverter.java
private static Message buildProto(final Object object, final Class<? extends Message> refclass) 
            throws ObjectConverterException
    {
        //get the builder for the referenced proto message class
        final Message.Builder protoBuilder = getBuilder(refclass);
        for (FieldDescriptor fieldDesc : protoBuilder.getDescriptorForType().getFields())
        {
            processField(object, protoBuilder, refclass, fieldDesc);
        }
        return protoBuilder.build();
    }
/**
     * Fill out and build a message representing the passed jaxb object.
     * @param object
     *      the object to make a proto message of
     * @param refclass
     *      the proto message class of the object
     * @return
     *      the message representing the jaxb object passed
     * @throws ObjectConverterException
     *      if one of the message fields cannot be set
     */
Fill out and build a message representing the passed jaxb object.
@param object
the object to make a proto message of
@param refclass
the proto message class of the object
@return
the message representing the jaxb object passed
@throws ObjectConverterException
if one of the message fields cannot be set
Fill out and build a message representing the passed jaxb object . @param object the object to make a proto message of @param refclass the proto message class of the object @return the message representing the jaxb object passed @throws ObjectConverterException if one of the message fields cannot be set
private static Message buildProto(final Object object, final Class<? extends Message> refclass) 
            throws ObjectConverterException
    {
        final Message.Builder protoBuilder = getBuilder(refclass);
        for (FieldDescriptor fieldDesc : protoBuilder.getDescriptorForType().getFields())
        {
            processField(object, protoBuilder, refclass, fieldDesc);
        }
        return protoBuilder.build();
    }
private static Message buildProto ( final Object object , final Class < ? extends Message > refclass ) throws ObjectConverterException { final Message . Builder protoBuilder = getBuilder ( refclass ) ; for ( FieldDescriptor fieldDesc : protoBuilder . getDescriptorForType ( ) . getFields ( ) ) { processField ( object , protoBuilder , refclass , fieldDesc ) ; } return protoBuilder . build ( ) ; }
Fill out and build a message representing the passed jaxb object.
Fill out and build a message representing the passed jaxb object .
//get the builder for the referenced proto message class