mil.dod.th.ose.gui.webapp/src/mil/dod/th/ose/gui/webapp/asset/AssetCommandViewImpl.java
private void buildTree(final Object object, final TreeNode treeNode)
    {
        for (final Field field: object.getClass().getDeclaredFields())
        {
            try
            {
                handleField(field, object, treeNode);
            }
            catch (final ReflectionsUtilException exception)
            {
                m_GrowlUtil.createLocalFacesMessage(FacesMessage.SEVERITY_ERROR, 
                        REFLECTIONS_RETRIEVE_ERROR_TITLE, String.format(REFLECTIONS_RETRIEVE_ERROR_MSG, 
                                field.getName()), exception);
                return;
            }
        }
        //Check to see if the object has a super class and then find all fields declared by the superclass.
        Class<?> superClass = object.getClass().getSuperclass();
        while (superClass != null && !superClass.equals(Object.class))
        {
            for (final Field field: superClass.getDeclaredFields())
            {
                try
                {
                    handleField(field, object, treeNode);
                }
                catch (final ReflectionsUtilException exception)
                {
                    m_GrowlUtil.createLocalFacesMessage(FacesMessage.SEVERITY_ERROR, 
                            REFLECTIONS_RETRIEVE_ERROR_TITLE, String.format(REFLECTIONS_RETRIEVE_ERROR_MSG, 
                                    field.getName()), exception);
                    return;
                }
            }
            superClass = superClass.getSuperclass();
        }
    }
/**
     * Method used to build the tree that will display all the command values on the asset command and control
     * tab.
     * 
     * @param object
     *          Object that contains the fields that the tree is to be built for.
     * @param treeNode
     *          Parent node that the fields will be added to as child nodes.
     */
Method used to build the tree that will display all the command values on the asset command and control
tab.

@param object
Object that contains the fields that the tree is to be built for.
@param treeNode
Parent node that the fields will be added to as child nodes.
Method used to build the tree that will display all the command values on the asset command and control tab . @param object Object that contains the fields that the tree is to be built for . @param treeNode Parent node that the fields will be added to as child nodes .
private void buildTree(final Object object, final TreeNode treeNode)
    {
        for (final Field field: object.getClass().getDeclaredFields())
        {
            try
            {
                handleField(field, object, treeNode);
            }
            catch (final ReflectionsUtilException exception)
            {
                m_GrowlUtil.createLocalFacesMessage(FacesMessage.SEVERITY_ERROR, 
                        REFLECTIONS_RETRIEVE_ERROR_TITLE, String.format(REFLECTIONS_RETRIEVE_ERROR_MSG, 
                                field.getName()), exception);
                return;
            }
        }
        Class<?> superClass = object.getClass().getSuperclass();
        while (superClass != null && !superClass.equals(Object.class))
        {
            for (final Field field: superClass.getDeclaredFields())
            {
                try
                {
                    handleField(field, object, treeNode);
                }
                catch (final ReflectionsUtilException exception)
                {
                    m_GrowlUtil.createLocalFacesMessage(FacesMessage.SEVERITY_ERROR, 
                            REFLECTIONS_RETRIEVE_ERROR_TITLE, String.format(REFLECTIONS_RETRIEVE_ERROR_MSG, 
                                    field.getName()), exception);
                    return;
                }
            }
            superClass = superClass.getSuperclass();
        }
    }
private void buildTree ( final Object object , final TreeNode treeNode ) { for ( final Field field : object . getClass ( ) . getDeclaredFields ( ) ) { try { handleField ( field , object , treeNode ) ; } catch ( final ReflectionsUtilException exception ) { m_GrowlUtil . createLocalFacesMessage ( FacesMessage . SEVERITY_ERROR , REFLECTIONS_RETRIEVE_ERROR_TITLE , String . format ( REFLECTIONS_RETRIEVE_ERROR_MSG , field . getName ( ) ) , exception ) ; return ; } } Class < ? > superClass = object . getClass ( ) . getSuperclass ( ) ; while ( superClass != null && ! superClass . equals ( Object . class ) ) { for ( final Field field : superClass . getDeclaredFields ( ) ) { try { handleField ( field , object , treeNode ) ; } catch ( final ReflectionsUtilException exception ) { m_GrowlUtil . createLocalFacesMessage ( FacesMessage . SEVERITY_ERROR , REFLECTIONS_RETRIEVE_ERROR_TITLE , String . format ( REFLECTIONS_RETRIEVE_ERROR_MSG , field . getName ( ) ) , exception ) ; return ; } } superClass = superClass . getSuperclass ( ) ; } }
Method used to build the tree that will display all the command values on the asset command and control
 tab.
Method used to build the tree that will display all the command values on the asset command and control tab .
//Check to see if the object has a super class and then find all fields declared by the superclass.