mil.dod.th.ose.jaxb.proto.converter/src/mil/dod/th/ose/jaxbprotoconverter/JaxbClassParser.java
private void handleReference(final Class<?> refClass, final ProtoField field) throws JaxbProtoConvertException
    {
        final XsdType refXsdType = findXsdType(refClass);
        final ProtoElement refElement;
        if (refXsdType == null)
        {
            refElement = getNonGeneratedType(refClass);
            field.setType(ProtoType.Reference);
        }
        else if (refClass.isEnum())
        {
            refElement = getOrCreateEnum(refClass, refXsdType);
            field.setType(ProtoType.Enum);
        }
        else
        {
            refElement = getOrCreateMessage(refClass.getSimpleName(), refClass, refXsdType);
            field.setType(ProtoType.Reference);
        }
        field.setTypeRef(refElement);
        handleRefImport(field, refClass);
    }
/**
     * Method that handles a field that references another message or enumeration.
     *  
     * @param refClass
     *      Class type of the reference message or enumeration.
     * @param field
     *      Model that represents the reference message or enumeration.
     * @throws JaxbProtoConvertException
     *      Thrown if reference type is not known.
     */
Method that handles a field that references another message or enumeration.

@param refClass
Class type of the reference message or enumeration.
@param field
Model that represents the reference message or enumeration.
@throws JaxbProtoConvertException
Thrown if reference type is not known.
Method that handles a field that references another message or enumeration . @param refClass Class type of the reference message or enumeration . @param field Model that represents the reference message or enumeration . @throws JaxbProtoConvertException Thrown if reference type is not known .
private void handleReference(final Class<?> refClass, final ProtoField field) throws JaxbProtoConvertException
    {
        final XsdType refXsdType = findXsdType(refClass);
        final ProtoElement refElement;
        if (refXsdType == null)
        {
            refElement = getNonGeneratedType(refClass);
            field.setType(ProtoType.Reference);
        }
        else if (refClass.isEnum())
        {
            refElement = getOrCreateEnum(refClass, refXsdType);
            field.setType(ProtoType.Enum);
        }
        else
        {
            refElement = getOrCreateMessage(refClass.getSimpleName(), refClass, refXsdType);
            field.setType(ProtoType.Reference);
        }
        field.setTypeRef(refElement);
        handleRefImport(field, refClass);
    }
private void handleReference ( final Class < ? > refClass , final ProtoField field ) throws JaxbProtoConvertException { final XsdType refXsdType = findXsdType ( refClass ) ; final ProtoElement refElement ; if ( refXsdType == null ) { refElement = getNonGeneratedType ( refClass ) ; field . setType ( ProtoType . Reference ) ; } else if ( refClass . isEnum ( ) ) { refElement = getOrCreateEnum ( refClass , refXsdType ) ; field . setType ( ProtoType . Enum ) ; } else { refElement = getOrCreateMessage ( refClass . getSimpleName ( ) , refClass , refXsdType ) ; field . setType ( ProtoType . Reference ) ; } field . setTypeRef ( refElement ) ; handleRefImport ( field , refClass ) ; }
Method that handles a field that references another message or enumeration.
Method that handles a field that references another message or enumeration .