mil.dod.th.ose.jaxb.proto.converter/src/mil/dod/th/ose/jaxbprotoconverter/xsd/XsdParser.java
private int handleExtensionType(final Element element, final XsdType type, final int index) 
            throws ClassNotFoundException, JaxbProtoConvertException
    {
        int indexInt = index;
        final String baseType = element.getAttribute(BASE_ATTRIBUTE);
        if ("xs:double".equals(baseType) || "xs:base64Binary".equals(baseType))
        {
            indexInt = handleFieldType(type, element, "value", indexInt);
        }
        else if (baseType.startsWith(XS_PREFIX))
        {
            throw new IllegalStateException(String.format("%s is a built in XSD type and should be "
                    + "handled", baseType));
        }
        else
        {
            handleBaseAttribute(element, type);
        }
        return indexInt;
    }
/**
     * Method that handles an XSD element that is an extension type.
     * 
     * @param element
     *      XML element that represents the extension type.
     * @param type
     *      The XSD type the extension belongs to.
     * @param index
     *      The current index value.
     * @return
     *      The current index value.
     * @throws ClassNotFoundException
     *      Thrown if no JAXB class can be found.
     * @throws JaxbProtoConvertException
     *      Thrown if a duplicate overridden ID is encountered.
     */
Method that handles an XSD element that is an extension type.

@param element
XML element that represents the extension type.
@param type
The XSD type the extension belongs to.
@param index
The current index value.
@return
The current index value.
@throws ClassNotFoundException
Thrown if no JAXB class can be found.
@throws JaxbProtoConvertException
Thrown if a duplicate overridden ID is encountered.
Method that handles an XSD element that is an extension type . @param element XML element that represents the extension type . @param type The XSD type the extension belongs to . @param index The current index value . @return The current index value . @throws ClassNotFoundException Thrown if no JAXB class can be found . @throws JaxbProtoConvertException Thrown if a duplicate overridden ID is encountered .
private int handleExtensionType(final Element element, final XsdType type, final int index) 
            throws ClassNotFoundException, JaxbProtoConvertException
    {
        int indexInt = index;
        final String baseType = element.getAttribute(BASE_ATTRIBUTE);
        if ("xs:double".equals(baseType) || "xs:base64Binary".equals(baseType))
        {
            indexInt = handleFieldType(type, element, "value", indexInt);
        }
        else if (baseType.startsWith(XS_PREFIX))
        {
            throw new IllegalStateException(String.format("%s is a built in XSD type and should be "
                    + "handled", baseType));
        }
        else
        {
            handleBaseAttribute(element, type);
        }
        return indexInt;
    }
private int handleExtensionType ( final Element element , final XsdType type , final int index ) throws ClassNotFoundException , JaxbProtoConvertException { int indexInt = index ; final String baseType = element . getAttribute ( BASE_ATTRIBUTE ) ; if ( "xs:double" . equals ( baseType ) || "xs:base64Binary" . equals ( baseType ) ) { indexInt = handleFieldType ( type , element , "value" , indexInt ) ; } else if ( baseType . startsWith ( XS_PREFIX ) ) { throw new IllegalStateException ( String . format ( "%s is a built in XSD type and should be " + "handled" , baseType ) ) ; } else { handleBaseAttribute ( element , type ) ; } return indexInt ; }
Method that handles an XSD element that is an extension type.
Method that handles an XSD element that is an extension type .