* @return Whether the specified member declaration is explicitly declared to be an accessor.
*/
protected boolean explicitlyDeclaredAccessor(MemberDeclaration declaration) {
Collection<AnnotationMirror> annotationMirrors = declaration.getAnnotationMirrors();
for (AnnotationMirror annotationMirror : annotationMirrors) {
AnnotationType annotationType = annotationMirror.getAnnotationType();
if (annotationType != null) {
AnnotationTypeDeclaration annotationDeclaration = annotationType.getDeclaration();
if ((annotationDeclaration != null) && (annotationDeclaration.getQualifiedName().startsWith(XmlElement.class.getPackage().getName()))) {
//if it's annotated with anything in javax.xml.bind.annotation, (exception XmlTransient) we'll consider it to be "explicitly annotated."
return !annotationDeclaration.getQualifiedName().equals(XmlTransient.class.getName());
}
}