mil.dod.th.ose.jaxb.proto.converter/src/mil/dod/th/ose/jaxbprotoconverter/xsd/XsdParser.java
private void handleRestrictionType(final Element element, final Element parentElement, final XsdType type)
            throws ClassNotFoundException
    {   
        final String baseType = element.getAttribute(BASE_ATTRIBUTE);
        if (!parentElement.getNodeName().equals(XS_SIMPLE_TPYE) && !baseType.startsWith(XS_PREFIX))
        {
            type.setComplexRestriction(true);
            handleBaseAttribute(element, type);
        }
    }
/**
     * Method that handles an XSD element that is a restriction type.
     * 
     * @param element
     *      XML element that represents the restriction type.
     * @param parentElement
     *      Parent element of the restriction element.
     * @param type
     *      The XSD type the restriction belongs to.
     * @throws ClassNotFoundException
     *      Thrown if no JAXB class can be found.
     */
Method that handles an XSD element that is a restriction type.

@param element
XML element that represents the restriction type.
@param parentElement
Parent element of the restriction element.
@param type
The XSD type the restriction belongs to.
@throws ClassNotFoundException
Thrown if no JAXB class can be found.
Method that handles an XSD element that is a restriction type . @param element XML element that represents the restriction type . @param parentElement Parent element of the restriction element . @param type The XSD type the restriction belongs to . @throws ClassNotFoundException Thrown if no JAXB class can be found .
private void handleRestrictionType(final Element element, final Element parentElement, final XsdType type)
            throws ClassNotFoundException
    {   
        final String baseType = element.getAttribute(BASE_ATTRIBUTE);
        if (!parentElement.getNodeName().equals(XS_SIMPLE_TPYE) && !baseType.startsWith(XS_PREFIX))
        {
            type.setComplexRestriction(true);
            handleBaseAttribute(element, type);
        }
    }
private void handleRestrictionType ( final Element element , final Element parentElement , final XsdType type ) throws ClassNotFoundException { final String baseType = element . getAttribute ( BASE_ATTRIBUTE ) ; if ( ! parentElement . getNodeName ( ) . equals ( XS_SIMPLE_TPYE ) && ! baseType . startsWith ( XS_PREFIX ) ) { type . setComplexRestriction ( true ) ; handleBaseAttribute ( element , type ) ; } }
Method that handles an XSD element that is a restriction type.
Method that handles an XSD element that is a restriction type .