mil.dod.th.ose.gui.webapp/src/mil/dod/th/ose/gui/webapp/utils/ReflectionsUtil.java
public static void unsetField(final Object containingObject, final String fieldName) throws ReflectionsUtilException
    {
        final Method unsetMethod = retrieveUnsetMethod(containingObject, fieldName);
        if (unsetMethod == null)
        {
            setInnerObject(containingObject, fieldName, null);
        }
        else
        {
            try
            {
                unsetMethod.invoke(containingObject, new Object[] {});
            }
            catch (final IllegalArgumentException exception)
            {
                throw new ReflectionsUtilException(exception);
            }
            catch (final IllegalAccessException exception)
            {
                throw new ReflectionsUtilException(exception);
            }
            catch (final InvocationTargetException exception)
            {
                throw new ReflectionsUtilException(exception);
            }
        }
    }
/**
     * Method used to set a value back to null. This method attempts to use the classes unset method for the specified
     * field. If none exists then this method attempts to call the fields setter method by passing null to it. The unset
     * method is usually specified in JAXB generated classes for certain fields. Not all JAXB fields have an unset 
     * method.
     * 
     * @param containingObject
     *      Object that contains the field to be set to null.
     * @param fieldName
     *      Name of the field to be unset.
     * @throws ReflectionsUtilException 
     *      Thrown if an exception occurs while using reflections to call the unset method.
     */
Method used to set a value back to null. This method attempts to use the classes unset method for the specified
field. If none exists then this method attempts to call the fields setter method by passing null to it. The unset
method is usually specified in JAXB generated classes for certain fields. Not all JAXB fields have an unset
method.

@param containingObject
Object that contains the field to be set to null.
@param fieldName
Name of the field to be unset.
@throws ReflectionsUtilException
Thrown if an exception occurs while using reflections to call the unset method.
Method used to set a value back to null . This method attempts to use the classes unset method for the specified field . If none exists then this method attempts to call the fields setter method by passing null to it . The unset method is usually specified in JAXB generated classes for certain fields . Not all JAXB fields have an unset method . @param containingObject Object that contains the field to be set to null . @param fieldName Name of the field to be unset . @throws ReflectionsUtilException Thrown if an exception occurs while using reflections to call the unset method .
public static void unsetField(final Object containingObject, final String fieldName) throws ReflectionsUtilException
    {
        final Method unsetMethod = retrieveUnsetMethod(containingObject, fieldName);
        if (unsetMethod == null)
        {
            setInnerObject(containingObject, fieldName, null);
        }
        else
        {
            try
            {
                unsetMethod.invoke(containingObject, new Object[] {});
            }
            catch (final IllegalArgumentException exception)
            {
                throw new ReflectionsUtilException(exception);
            }
            catch (final IllegalAccessException exception)
            {
                throw new ReflectionsUtilException(exception);
            }
            catch (final InvocationTargetException exception)
            {
                throw new ReflectionsUtilException(exception);
            }
        }
    }
public static void unsetField ( final Object containingObject , final String fieldName ) throws ReflectionsUtilException { final Method unsetMethod = retrieveUnsetMethod ( containingObject , fieldName ) ; if ( unsetMethod == null ) { setInnerObject ( containingObject , fieldName , null ) ; } else { try { unsetMethod . invoke ( containingObject , new Object [ ] { } ) ; } catch ( final IllegalArgumentException exception ) { throw new ReflectionsUtilException ( exception ) ; } catch ( final IllegalAccessException exception ) { throw new ReflectionsUtilException ( exception ) ; } catch ( final InvocationTargetException exception ) { throw new ReflectionsUtilException ( exception ) ; } } }
Method used to set a value back to null.
Method used to set a value back to null .