if ((element.getDelegate() instanceof FieldDeclaration) && (enforceNoFieldAccessors)) {
result.addError(element, "If you're mapping to GWT, you can't use fields for your accessors. ");
}
if (!isSupported(element.getAccessorType())) {
result.addError(element, "GWT doesn't support the '" + element.getAccessorType() + "' type.");
}
if (this.generateJsonOverlays) {
if (element instanceof ElementRef && ((ElementRef) element).isElementRefs()) {
result.addWarning(complexType, "GWT overlay types don't fully support the @XmlElementRefs annotation. The items in the collection will only be available to the client-side in the form of a raw, untyped JsArray. Consider redesigning using a collection of a single type. See http://jira.codehaus.org/browse/ENUNCIATE-543 for more information, and feel free to contribute your ideas on how to solve this problem.");