mil.dod.th.ose.jaxb.proto.converter/src/mil/dod/th/ose/jaxbprotoconverter/ProtoFileGenerator.java
private void printMessage(final PrintStream outStream, final ProtoMessage message) 
            throws JaxbProtoConvertException
    {
        final String prefix = "message %s {%n";
        final String overriddenName = message.getXsdType().getOverriddenName();

        if (overriddenName == null)
        {
            outStream.format(prefix, message.getName());
        }
        else
        {
            outStream.format(prefix, overriddenName);
        }
        
        printMessageContents(outStream, message);

        outStream.println("}");
        outStream.println();
    }
/**
     * This method is responsible for taking a specified {@link ProtoMessage} and writing it to the provided 
     * {@link PrintStream}. 
     * 
     * @param outStream
     *      The output stream the {@link ProtoMessage} will be written to.
     * @param message
     *      The {@link ProtoMessage} that will be written to the {@link PrintStream}.
     * @throws JaxbProtoConvertException
     *      If the {@link ProtoMessage} cannot successfully be written to the specified {@link PrintStream}.
     * @throws JaxbProtoConvertException
     *      If the proto message is empty.
     */
This method is responsible for taking a specified  ProtoMessage and writing it to the provided
PrintStream.

@param outStream
The output stream the  ProtoMessage will be written to.
@param message
The  ProtoMessage that will be written to the  PrintStream.
@throws JaxbProtoConvertException
If the  ProtoMessage cannot successfully be written to the specified  PrintStream.
@throws JaxbProtoConvertException
If the proto message is empty.
This method is responsible for taking a specified ProtoMessage and writing it to the provided PrintStream . @param outStream The output stream the ProtoMessage will be written to . @param message The ProtoMessage that will be written to the PrintStream . @throws JaxbProtoConvertException If the ProtoMessage cannot successfully be written to the specified PrintStream . @throws JaxbProtoConvertException If the proto message is empty .
private void printMessage(final PrintStream outStream, final ProtoMessage message) 
            throws JaxbProtoConvertException
    {
        final String prefix = "message %s {%n";
        final String overriddenName = message.getXsdType().getOverriddenName();
        if (overriddenName == null)
        {
            outStream.format(prefix, message.getName());
        }
        else
        {
            outStream.format(prefix, overriddenName);
        }
        printMessageContents(outStream, message);
        outStream.println("}");
        outStream.println();
    }
private void printMessage ( final PrintStream outStream , final ProtoMessage message ) throws JaxbProtoConvertException { final String prefix = "message %s {%n" ; final String overriddenName = message . getXsdType ( ) . getOverriddenName ( ) ; if ( overriddenName == null ) { outStream . format ( prefix , message . getName ( ) ) ; } else { outStream . format ( prefix , overriddenName ) ; } printMessageContents ( outStream , message ) ; outStream . println ( "}" ) ; outStream . println ( ) ; }
This method is responsible for taking a specified {@link ProtoMessage} and writing it to the provided
 {@link PrintStream}.
This method is responsible for taking a specified { @link ProtoMessage } and writing it to the provided { @link PrintStream } .