use of com.sun.tools.xjc.outline.FieldOutline in project vcd-api-tools by vmware.
the class RestApiJsonBindingsPlugin method processClassOutline.
/**
* Annotates {@link ClassOutline} with necessary json-relevant annotations
*
* @param classOutline
* @param errorHandler
*/
private void processClassOutline(ClassOutline classOutline, ErrorHandler errorHandler) {
addJsonInheritenceInformation(classOutline);
final JAnnotationUse enableFieldFiltering = classOutline.implClass.annotate(JsonFilter.class);
enableFieldFiltering.param("value", Supported.VCLOUD_LEGACY_FILTER_PARAM);
for (FieldOutline fieldOutline : classOutline.getDeclaredFields()) {
addJsonPropertyOutline(fieldOutline);
}
}
use of com.sun.tools.xjc.outline.FieldOutline in project vcd-api-tools by vmware.
the class RestApiVersionsPlugin method processClassOutline.
/**
* Annotates {@link ClassOutline}.
*
* @param classOutline
* @param errorHandler
*/
private void processClassOutline(ClassOutline classOutline, ErrorHandler errorHandler) {
CCustomizations customizations = CustomizationUtils.getCustomizations(classOutline);
JDefinedClass implClass = classOutline.implClass;
addSupportedAnnotation(implClass, customizations);
addContentTypeAnnotation(classOutline, customizations);
addSourceLocationComment(implClass, classOutline.target.getLocator());
for (FieldOutline fieldOutline : classOutline.getDeclaredFields()) {
processFieldOutline(fieldOutline, errorHandler);
}
}
Aggregations