mil.dod.th.ose.gui.webapp/src/mil/dod/th/ose/gui/webapp/general/CapabilitiesTree.java
private void processCapabilityElement(final Field field, final Object obj, final TreeNode parent) 
            throws IllegalAccessException
    {
        final Object fieldObj = field.get(obj);
        final CapabilityModel capModel = createCapabilityModel(field, fieldObj);
        if (capModel == null)
        {
            return;
        }
        
        final TreeNode node = new DefaultTreeNode(capModel, parent);
        
        final boolean isThType = field.getGenericType().toString().contains(TH_OBJ_IDENTIFIER);
        if (isThType)
        {
            handleThAttr(field, fieldObj, node);
        }
        
        //If there are no children, remove the node.
        if (node.getChildCount() > 0)
        {
            node.setExpanded(true);
        }
        else if (isThType)
        {
            parent.getChildren().remove(node);
        }
    }
/**
     * Process the XML element/attribute that is part of the capabilities document.
     * @param field the Field, via reflection.
     * @param obj the obj used to retrieve the values.
     * @param parent the parent tree node.
     * @throws IllegalAccessException thrown if there are issues getting the field value.
     */
Process the XML element/attribute that is part of the capabilities document.
@param field the Field, via reflection.
@param obj the obj used to retrieve the values.
@param parent the parent tree node.
@throws IllegalAccessException thrown if there are issues getting the field value.
Process the XML element / attribute that is part of the capabilities document . @param field the Field via reflection . @param obj the obj used to retrieve the values . @param parent the parent tree node . @throws IllegalAccessException thrown if there are issues getting the field value .
private void processCapabilityElement(final Field field, final Object obj, final TreeNode parent) 
            throws IllegalAccessException
    {
        final Object fieldObj = field.get(obj);
        final CapabilityModel capModel = createCapabilityModel(field, fieldObj);
        if (capModel == null)
        {
            return;
        }
        final TreeNode node = new DefaultTreeNode(capModel, parent);
        final boolean isThType = field.getGenericType().toString().contains(TH_OBJ_IDENTIFIER);
        if (isThType)
        {
            handleThAttr(field, fieldObj, node);
        }
        if (node.getChildCount() > 0)
        {
            node.setExpanded(true);
        }
        else if (isThType)
        {
            parent.getChildren().remove(node);
        }
    }
private void processCapabilityElement ( final Field field , final Object obj , final TreeNode parent ) throws IllegalAccessException { final Object fieldObj = field . get ( obj ) ; final CapabilityModel capModel = createCapabilityModel ( field , fieldObj ) ; if ( capModel == null ) { return ; } final TreeNode node = new DefaultTreeNode ( capModel , parent ) ; final boolean isThType = field . getGenericType ( ) . toString ( ) . contains ( TH_OBJ_IDENTIFIER ) ; if ( isThType ) { handleThAttr ( field , fieldObj , node ) ; } if ( node . getChildCount ( ) > 0 ) { node . setExpanded ( true ) ; } else if ( isThType ) { parent . getChildren ( ) . remove ( node ) ; } }
Process the XML element/attribute that is part of the capabilities document.
Process the XML element / attribute that is part of the capabilities document .
//If there are no children, remove the node.