mil.dod.th.ose.jaxb.proto.converter/src/mil/dod/th/ose/jaxbprotoconverter/ProtoFileGenerator.java
private String appendRule(final ProtoField field, final StringBuilder fieldBuilder)
    {
        String packString = "";
        
        switch (field.getRule())
        {
            case Optional:
                fieldBuilder.append("optional ");
                break;
                
            case Repeated:
                fieldBuilder.append("repeated ");
                if (field.getType() != ProtoType.Reference 
                        && field.getType() != ProtoType.Enum 
                        && field.getType() != ProtoType.String)
                {
                    packString = " [packed=true]";
                }
                break;
                
            case Required:
                fieldBuilder.append("required ");
                break;
        
            default:
                throw new IllegalStateException("Invalid field qualifier: " + field.getRule());    
        }
        
        return packString;
    }
/**
     * This method is responsible for appending the {@link mil.dod.th.ose.jaxbprotoconverter.proto.ProtoField.Rule} 
     * type for each field.
     * 
     * @param field
     *      The {@link ProtoField} with the {@link mil.dod.th.ose.jaxbprotoconverter.proto.ProtoField.Rule} to be 
     *      appended.
     * @param fieldBuilder
     *      The {@link StringBuilder} the {@link mil.dod.th.ose.jaxbprotoconverter.proto.ProtoField.Rule} type is to 
     *      be appended to.
     * @return packString
     *      A string is returned that is not empty if a {@link mil.dod.th.ose.jaxbprotoconverter.proto.ProtoField.Rule} 
     *      is of the repeated type and is not of the {@link ProtoType} type of reference. 
     */
This method is responsible for appending the  mil.dod.th.ose.jaxbprotoconverter.proto.ProtoField.Rule
type for each field.

@param field
The  ProtoField with the  mil.dod.th.ose.jaxbprotoconverter.proto.ProtoField.Rule to be
appended.
@param fieldBuilder
The  StringBuilder the  mil.dod.th.ose.jaxbprotoconverter.proto.ProtoField.Rule type is to
be appended to.
@return packString
A string is returned that is not empty if a  mil.dod.th.ose.jaxbprotoconverter.proto.ProtoField.Rule
is of the repeated type and is not of the  ProtoType type of reference.
This method is responsible for appending the mil . dod . th . ose . jaxbprotoconverter . proto . ProtoField . Rule type for each field . @param field The ProtoField with the mil . dod . th . ose . jaxbprotoconverter . proto . ProtoField . Rule to be appended . @param fieldBuilder The StringBuilder the mil . dod . th . ose . jaxbprotoconverter . proto . ProtoField . Rule type is to be appended to . @return packString A string is returned that is not empty if a mil . dod . th . ose . jaxbprotoconverter . proto . ProtoField . Rule is of the repeated type and is not of the ProtoType type of reference .
private String appendRule(final ProtoField field, final StringBuilder fieldBuilder)
    {
        String packString = "";
        switch (field.getRule())
        {
            case Optional:
                fieldBuilder.append("optional ");
                break;
            case Repeated:
                fieldBuilder.append("repeated ");
                if (field.getType() != ProtoType.Reference 
                        && field.getType() != ProtoType.Enum 
                        && field.getType() != ProtoType.String)
                {
                    packString = " [packed=true]";
                }
                break;
            case Required:
                fieldBuilder.append("required ");
                break;
            default:
                throw new IllegalStateException("Invalid field qualifier: " + field.getRule());    
        }
        return packString;
    }
private String appendRule ( final ProtoField field , final StringBuilder fieldBuilder ) { String packString = "" ; switch ( field . getRule ( ) ) { case Optional : fieldBuilder . append ( "optional " ) ; break ; case Repeated : fieldBuilder . append ( "repeated " ) ; if ( field . getType ( ) != ProtoType . Reference && field . getType ( ) != ProtoType . Enum && field . getType ( ) != ProtoType . String ) { packString = " [packed=true]" ; } break ; case Required : fieldBuilder . append ( "required " ) ; break ; default : throw new IllegalStateException ( "Invalid field qualifier: " + field . getRule ( ) ) ; } return packString ; }
This method is responsible for appending the {@link mil.dod.th.ose.jaxbprotoconverter.proto.ProtoField.Rule}
 type for each field.
This method is responsible for appending the { @link mil . dod . th . ose . jaxbprotoconverter . proto . ProtoField . Rule } type for each field .