mil.dod.th.ose.gui.webapp/src/mil/dod/th/ose/gui/webapp/utils/ReflectionsUtil.java
public static Field retrieveField(final String fieldName, final Object containingObject)
    {
        for (Field field: containingObject.getClass().getDeclaredFields())
        {
            if (field.getName().equals(fieldName))
            {
                return field;
            }
        }
        
        Class<?> superClass = containingObject.getClass().getSuperclass();
        while (superClass != null && !superClass.equals(Object.class))
        {
            for (Field field: superClass.getDeclaredFields())
            {
                if (field.getName().equals(fieldName))
                {
                    return field;
                }
            }
            superClass = superClass.getSuperclass();
        }
        
        return null;
    }
/**
     * Method used to retrieve the specified field for an object. This class checks super classes for the specified
     * field as well. Will return null if a field with the specified name cannot be found.
     * 
     * @param fieldName
     *      String the represents the name of the field to be retrieved.
     * @param containingObject
     *      Object that contains the field to be retrieved.
     * @return
     *      {@link Field} that represents the retrieved field or null if no field with the specified name can be
     *      found.
     */
Method used to retrieve the specified field for an object. This class checks super classes for the specified
field as well. Will return null if a field with the specified name cannot be found.

@param fieldName
String the represents the name of the field to be retrieved.
@param containingObject
Object that contains the field to be retrieved.
@return
Field that represents the retrieved field or null if no field with the specified name can be
found.
Method used to retrieve the specified field for an object . This class checks super classes for the specified field as well . Will return null if a field with the specified name cannot be found . @param fieldName String the represents the name of the field to be retrieved . @param containingObject Object that contains the field to be retrieved . @return Field that represents the retrieved field or null if no field with the specified name can be found .
public static Field retrieveField(final String fieldName, final Object containingObject)
    {
        for (Field field: containingObject.getClass().getDeclaredFields())
        {
            if (field.getName().equals(fieldName))
            {
                return field;
            }
        }
        Class<?> superClass = containingObject.getClass().getSuperclass();
        while (superClass != null && !superClass.equals(Object.class))
        {
            for (Field field: superClass.getDeclaredFields())
            {
                if (field.getName().equals(fieldName))
                {
                    return field;
                }
            }
            superClass = superClass.getSuperclass();
        }
        return null;
    }
public static Field retrieveField ( final String fieldName , final Object containingObject ) { for ( Field field : containingObject . getClass ( ) . getDeclaredFields ( ) ) { if ( field . getName ( ) . equals ( fieldName ) ) { return field ; } } Class < ? > superClass = containingObject . getClass ( ) . getSuperclass ( ) ; while ( superClass != null && ! superClass . equals ( Object . class ) ) { for ( Field field : superClass . getDeclaredFields ( ) ) { if ( field . getName ( ) . equals ( fieldName ) ) { return field ; } } superClass = superClass . getSuperclass ( ) ; } return null ; }
Method used to retrieve the specified field for an object.
Method used to retrieve the specified field for an object .