mil.dod.th.ose.gui.webapp/src/mil/dod/th/ose/gui/webapp/general/CapabilitiesTree.java
protected TreeNode buildCapabilitiesTree(final Object capsObj)
    {
        m_Caps = capsObj;

        final DefaultTreeNode root = new DefaultTreeNode("root", null);
        
        if (capsObj == null)
        {
            final CapabilityModel capModel = new CapabilityModel();
            capModel.setName("No Capabilities Document Found.");
            capModel.setValue("");
            new DefaultTreeNode(capModel, root);
            return root;
        }
        
        m_Caps = capsObj;
        
        final Class<?> clazz = m_Caps.getClass();

        addChildren(clazz, root, m_Caps);    
        
        return root;
    }
/**
     * Build the Capabilities Tree based on the object passed in.
     * @param capsObj a Capabilities object. If null, a single node with an error message is created.
     * @return the root of the tree
     */
Build the Capabilities Tree based on the object passed in.
@param capsObj a Capabilities object. If null, a single node with an error message is created.
@return the root of the tree
Build the Capabilities Tree based on the object passed in . @param capsObj a Capabilities object . If null a single node with an error message is created . @return the root of the tree
protected TreeNode buildCapabilitiesTree(final Object capsObj)
    {
        m_Caps = capsObj;
        final DefaultTreeNode root = new DefaultTreeNode("root", null);
        if (capsObj == null)
        {
            final CapabilityModel capModel = new CapabilityModel();
            capModel.setName("No Capabilities Document Found.");
            capModel.setValue("");
            new DefaultTreeNode(capModel, root);
            return root;
        }
        m_Caps = capsObj;
        final Class<?> clazz = m_Caps.getClass();
        addChildren(clazz, root, m_Caps);    
        return root;
    }
protected TreeNode buildCapabilitiesTree ( final Object capsObj ) { m_Caps = capsObj ; final DefaultTreeNode root = new DefaultTreeNode ( "root" , null ) ; if ( capsObj == null ) { final CapabilityModel capModel = new CapabilityModel ( ) ; capModel . setName ( "No Capabilities Document Found." ) ; capModel . setValue ( "" ) ; new DefaultTreeNode ( capModel , root ) ; return root ; } m_Caps = capsObj ; final Class < ? > clazz = m_Caps . getClass ( ) ; addChildren ( clazz , root , m_Caps ) ; return root ; }
Build the Capabilities Tree based on the object passed in.
Build the Capabilities Tree based on the object passed in .