use of com.sun.tools.xjc.model.CCustomizations in project jaxb-ri by eclipse-ee4j.
the class BindInfo method toCustomizationList.
/**
* Gets the list of {@link CPluginCustomization}s from this.
*
* <p>
* Note that calling this method marks all those plug-in customizations
* as 'used'. So call it only when it's really necessary.
*/
public CCustomizations toCustomizationList() {
CCustomizations r = null;
for (BIDeclaration d : this) {
if (d instanceof BIXPluginCustomization) {
BIXPluginCustomization pc = (BIXPluginCustomization) d;
pc.markAsAcknowledged();
if (!Ring.get(Model.class).options.pluginURIs.contains(pc.getName().getNamespaceURI()))
// this isn't a plugin customization
continue;
if (r == null)
r = new CCustomizations();
r.add(new CPluginCustomization(pc.element, pc.getLocation()));
}
}
if (r == null)
r = CCustomizations.EMPTY;
return new CCustomizations(r);
}
use of com.sun.tools.xjc.model.CCustomizations in project vcd-api-tools by vmware.
the class RestApiVersionsPlugin method processEnumConstantOutline.
/**
* Annotates {@link EnumConstantOutline}.
*
* @param enumConstantOutline
* @param errorHandler
*/
private void processEnumConstantOutline(EnumConstantOutline enumConstantOutline, ErrorHandler errorHandler) {
CCustomizations customizations = CustomizationUtils.getCustomizations(enumConstantOutline);
addSupportedAnnotation(enumConstantOutline.constRef, customizations);
}
use of com.sun.tools.xjc.model.CCustomizations in project vcd-api-tools by vmware.
the class RestApiVersionsPlugin method processEnumOutline.
/**
* Annotates {@link EnumOutline}.
*
* @param enumOutline
* @param errorHandler
*/
private void processEnumOutline(EnumOutline enumOutline, ErrorHandler errorHandler) {
CCustomizations customizations = CustomizationUtils.getCustomizations(enumOutline);
addSupportedAnnotation(enumOutline.clazz, customizations);
addSourceLocationComment(enumOutline.clazz, enumOutline.target.getLocator());
for (EnumConstantOutline enumConstantOutline : enumOutline.constants) {
processEnumConstantOutline(enumConstantOutline, errorHandler);
}
}
use of com.sun.tools.xjc.model.CCustomizations in project vcd-api-tools by vmware.
the class RestApiVersionsPlugin method processElementOutline.
/**
* Annotates {@link ElementOutline}.
*
* @param elementOutline
* @param errorHandler
*/
private void processElementOutline(ElementOutline elementOutline, ErrorHandler errorHandler) {
CCustomizations customizations = CustomizationUtils.getCustomizations(elementOutline);
addSupportedAnnotation(elementOutline.implClass, customizations);
addSourceLocationComment(elementOutline.implClass, elementOutline.target.getLocator());
}
use of com.sun.tools.xjc.model.CCustomizations in project vcd-api-tools by vmware.
the class RestApiVersionsPlugin method processFieldOutline.
/**
* Annotates {@link FieldOutline}.
*
* @param fieldOutline
* @param errorHandler
*/
private void processFieldOutline(FieldOutline fieldOutline, ErrorHandler errorHandler) {
CCustomizations customizations = CustomizationUtils.getCustomizations(fieldOutline);
addSupportedAnnotation(FieldAccessorUtils.field(fieldOutline), customizations);
addSupportedAnnotation(FieldAccessorUtils.getter(fieldOutline), customizations);
addSupportedAnnotation(FieldAccessorUtils.setter(fieldOutline), customizations);
}
Aggregations