mil.dod.th.ose.gui.webapp/src/mil/dod/th/ose/gui/webapp/utils/ReflectionsUtil.java
public static boolean hasJaxbAnnotation(final Field field)
    {
        final Annotation[] annotationArray = field.getAnnotations();
        boolean found = false;
        for (Annotation annotation: annotationArray)
        {
            final Class<?> annotationClass = annotation.annotationType();
            if (annotationClass.equals(XmlAttribute.class)
                    || annotationClass.equals(XmlValue.class)
                    || annotationClass.equals(XmlElement.class))
            {
                found = true;
            }
        }
        return found;
    }
/**
     * Method that checks if the field has an appropriate JAXB annotation. Fields without an appropriate annotation
     * should be ignored. An example would be the {@link javax.xml.bind.annotation.XmlTransient} annotation.
     * 
     * @param field
     *      {@link Field} with annotations to be checked.
     * @return
     *      True if the the field contains a {@link XmlAttribute}, {@link XmlValue}, or {@link XmlElement} annotation.
     *      False is returned otherwise.
     */
Method that checks if the field has an appropriate JAXB annotation. Fields without an appropriate annotation
should be ignored. An example would be the  javax.xml.bind.annotation.XmlTransient annotation.

@param field
Field with annotations to be checked.
@return
True if the the field contains a  XmlAttribute,  XmlValue, or  XmlElement annotation.
False is returned otherwise.
Method that checks if the field has an appropriate JAXB annotation . Fields without an appropriate annotation should be ignored . An example would be the javax . xml . bind . annotation . XmlTransient annotation . @param field Field with annotations to be checked . @return True if the the field contains a XmlAttribute XmlValue or XmlElement annotation . False is returned otherwise .
public static boolean hasJaxbAnnotation(final Field field)
    {
        final Annotation[] annotationArray = field.getAnnotations();
        boolean found = false;
        for (Annotation annotation: annotationArray)
        {
            final Class<?> annotationClass = annotation.annotationType();
            if (annotationClass.equals(XmlAttribute.class)
                    || annotationClass.equals(XmlValue.class)
                    || annotationClass.equals(XmlElement.class))
            {
                found = true;
            }
        }
        return found;
    }
public static boolean hasJaxbAnnotation ( final Field field ) { final Annotation [ ] annotationArray = field . getAnnotations ( ) ; boolean found = false ; for ( Annotation annotation : annotationArray ) { final Class < ? > annotationClass = annotation . annotationType ( ) ; if ( annotationClass . equals ( XmlAttribute . class ) || annotationClass . equals ( XmlValue . class ) || annotationClass . equals ( XmlElement . class ) ) { found = true ; } } return found ; }
Method that checks if the field has an appropriate JAXB annotation.
Method that checks if the field has an appropriate JAXB annotation .