mil.dod.th.ose.jaxb.proto.converter/src/mil/dod/th/ose/jaxbprotoconverter/JaxbClassParser.java
private void handleBaseTypeImport(final ProtoMessage message)
    {
        final XsdType xsdType = message.getXsdType();
        final XsdType baseType = xsdType.getBaseType();
        final ProtoFile protoFile = message.getProtoFile();
        final Set<String> imports = protoFile.getImports();
            
        if (!xsdType.isComplexRestriction() && !xsdType.getXsdFile().equals(baseType.getXsdFile()))
        {
            final String importStatement = buildImportStatement(baseType.getXsdFile());
            imports.add(importStatement);
        }
    }
/**
     * Method that handles adding needed import statement for a message that extends another type.
     * 
     * @param message
     *      Message that extends another type.
     */
Method that handles adding needed import statement for a message that extends another type.

@param message
Message that extends another type.
Method that handles adding needed import statement for a message that extends another type . @param message Message that extends another type .
private void handleBaseTypeImport(final ProtoMessage message)
    {
        final XsdType xsdType = message.getXsdType();
        final XsdType baseType = xsdType.getBaseType();
        final ProtoFile protoFile = message.getProtoFile();
        final Set<String> imports = protoFile.getImports();
        if (!xsdType.isComplexRestriction() && !xsdType.getXsdFile().equals(baseType.getXsdFile()))
        {
            final String importStatement = buildImportStatement(baseType.getXsdFile());
            imports.add(importStatement);
        }
    }
private void handleBaseTypeImport ( final ProtoMessage message ) { final XsdType xsdType = message . getXsdType ( ) ; final XsdType baseType = xsdType . getBaseType ( ) ; final ProtoFile protoFile = message . getProtoFile ( ) ; final Set < String > imports = protoFile . getImports ( ) ; if ( ! xsdType . isComplexRestriction ( ) && ! xsdType . getXsdFile ( ) . equals ( baseType . getXsdFile ( ) ) ) { final String importStatement = buildImportStatement ( baseType . getXsdFile ( ) ) ; imports . add ( importStatement ) ; } }
Method that handles adding needed import statement for a message that extends another type.
Method that handles adding needed import statement for a message that extends another type .