mil.dod.th.ose.gui.webapp/src/mil/dod/th/ose/gui/webapp/utils/ReflectionsUtil.java
public static Boolean isFieldSet(final Object containingObject, final String fieldName) 
            throws ReflectionsUtilException
    {
        final Method isSetMethod = retrieveIsSetMethod(containingObject, fieldName);
        if (isSetMethod == null)
        {
            throw new ReflectionsUtilException(String.format("The method is%sSet does not exists for the " 
                    + "containing object: %s", fieldName, containingObject));
        }
        else
        {
            try
            {
                return (Boolean)isSetMethod.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 determine if a field within an object is set. The object that contains the field to be checked
     * must have a method called is(FieldName)Set. This method is automatically generated for most fields within a JAXB
     * class. Will return null if no isSet method can be found.
     * 
     * @param containingObject
     *      Object that contains the field to be checked.
     * @param fieldName
     *      Name of the field to be checked.
     * @return
     *      True if the value is set, False if the value is not set, and null if no isSet method can be found.
     * @throws ReflectionsUtilException 
     *      Thrown if an reflections exception occurs while trying to call the isSet method.
     */
Method used to determine if a field within an object is set. The object that contains the field to be checked
must have a method called is(FieldName)Set. This method is automatically generated for most fields within a JAXB
class. Will return null if no isSet method can be found.

@param containingObject
Object that contains the field to be checked.
@param fieldName
Name of the field to be checked.
@return
True if the value is set, False if the value is not set, and null if no isSet method can be found.
@throws ReflectionsUtilException
Thrown if an reflections exception occurs while trying to call the isSet method.
Method used to determine if a field within an object is set . The object that contains the field to be checked must have a method called is ( FieldName ) Set . This method is automatically generated for most fields within a JAXB class . Will return null if no isSet method can be found . @param containingObject Object that contains the field to be checked . @param fieldName Name of the field to be checked . @return True if the value is set False if the value is not set and null if no isSet method can be found . @throws ReflectionsUtilException Thrown if an reflections exception occurs while trying to call the isSet method .
public static Boolean isFieldSet(final Object containingObject, final String fieldName) 
            throws ReflectionsUtilException
    {
        final Method isSetMethod = retrieveIsSetMethod(containingObject, fieldName);
        if (isSetMethod == null)
        {
            throw new ReflectionsUtilException(String.format("The method is%sSet does not exists for the " 
                    + "containing object: %s", fieldName, containingObject));
        }
        else
        {
            try
            {
                return (Boolean)isSetMethod.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 Boolean isFieldSet ( final Object containingObject , final String fieldName ) throws ReflectionsUtilException { final Method isSetMethod = retrieveIsSetMethod ( containingObject , fieldName ) ; if ( isSetMethod == null ) { throw new ReflectionsUtilException ( String . format ( "The method is%sSet does not exists for the " + "containing object: %s" , fieldName , containingObject ) ) ; } else { try { return ( Boolean ) isSetMethod . 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 determine if a field within an object is set.
Method used to determine if a field within an object is set .