mil.dod.th.ose.lexicon.doc/src/mil/dod/th/ose/lexicon/doc/parser/LexiconParser.java
private void  handleElement(final Element element, final String elementName, final LexiconComplexType complexType)
    {
        final String type = getTypeAttribute(element);
        String minOccurs = element.getAttribute("minOccurs");
        if (minOccurs.isEmpty())
        {
            minOccurs = " "; 
        }
        String maxOccurs = element.getAttribute("maxOccurs");
        if (maxOccurs.isEmpty())
        {
            maxOccurs = " ";
        }
        final LexiconElement lexElement = new LexiconElement();
        
        lexElement.setName(elementName);
        lexElement.setType(type);
        lexElement.setMinOccurs(minOccurs);
        lexElement.setMaxOccurs(maxOccurs);
        
        complexType.getElements().add(lexElement);
        traverseNodes(element.getChildNodes(), element, lexElement);
    }
/**
     * Method that handles parsing an element.
     * 
     * @param element
     *      XSD element.
     * @param elementName
     *      Name of the XSD element.
     * @param complexType
     *      Complex type the element belongs to.
     */
Method that handles parsing an element.

@param element
XSD element.
@param elementName
Name of the XSD element.
@param complexType
Complex type the element belongs to.
Method that handles parsing an element . @param element XSD element . @param elementName Name of the XSD element . @param complexType Complex type the element belongs to .
private void  handleElement(final Element element, final String elementName, final LexiconComplexType complexType)
    {
        final String type = getTypeAttribute(element);
        String minOccurs = element.getAttribute("minOccurs");
        if (minOccurs.isEmpty())
        {
            minOccurs = " "; 
        }
        String maxOccurs = element.getAttribute("maxOccurs");
        if (maxOccurs.isEmpty())
        {
            maxOccurs = " ";
        }
        final LexiconElement lexElement = new LexiconElement();
        lexElement.setName(elementName);
        lexElement.setType(type);
        lexElement.setMinOccurs(minOccurs);
        lexElement.setMaxOccurs(maxOccurs);
        complexType.getElements().add(lexElement);
        traverseNodes(element.getChildNodes(), element, lexElement);
    }
private void handleElement ( final Element element , final String elementName , final LexiconComplexType complexType ) { final String type = getTypeAttribute ( element ) ; String minOccurs = element . getAttribute ( "minOccurs" ) ; if ( minOccurs . isEmpty ( ) ) { minOccurs = " " ; } String maxOccurs = element . getAttribute ( "maxOccurs" ) ; if ( maxOccurs . isEmpty ( ) ) { maxOccurs = " " ; } final LexiconElement lexElement = new LexiconElement ( ) ; lexElement . setName ( elementName ) ; lexElement . setType ( type ) ; lexElement . setMinOccurs ( minOccurs ) ; lexElement . setMaxOccurs ( maxOccurs ) ; complexType . getElements ( ) . add ( lexElement ) ; traverseNodes ( element . getChildNodes ( ) , element , lexElement ) ; }
Method that handles parsing an element.
Method that handles parsing an element .