Label labelCaption = new Label(y, 0, decorator.getShortName());
sheet.addCell(labelCaption);
} else {
if (RestrictedFieldLocalOrRemoteFile.class.isAssignableFrom(method
.getReturnType())) {
RestrictedFieldLocalOrRemoteFile rflor = (RestrictedFieldLocalOrRemoteFile) field;
y = y + 1;
if (StringUtils.isNotEmpty(rflor.getRemoteUrl())) {
sheet.addCell(new Label(y, i, rflor.getRemoteUrl()));
} else {
sheet.addCell(new Label(y, i, rflor.getMimeType()
+ STOPFIELDS_EXCEL + rflor.getValue()));
}
Label labelCaption = new Label(y, 0, decorator.getShortName());
sheet.addCell(labelCaption);
y = y + 1;
sheet.addCell(new Label(y, i, VisibilityConstants
.getDescription(rflor.getVisibility())));
labelCaption = new Label(y, 0, decorator.getShortName()
+ ImportExportUtils.LABELCAPTION_VISIBILITY_SUFFIX);
sheet.addCell(labelCaption);
} else if (RestrictedFieldFile.class.isAssignableFrom(method
.getReturnType())) {
RestrictedFieldFile rflor = (RestrictedFieldFile) field;
y = y + 1;
Label labelCaption = new Label(y, 0, decorator.getShortName());
sheet.addCell(labelCaption);
if (StringUtils.isNotEmpty(rflor.getValue())) {
sheet.addCell(new Label(y, i, rflor.getMimeType()
+ STOPFIELDS_EXCEL + rflor.getValue()));
}
y = y + 1;
labelCaption = new Label(y, 0, decorator.getShortName()
+ ImportExportUtils.LABELCAPTION_VISIBILITY_SUFFIX);
sheet.addCell(labelCaption);
if (StringUtils.isNotEmpty(rflor.getValue())) {
sheet.addCell(new Label(y, i, VisibilityConstants
.getDescription(rflor.getVisibility())));
}
} else {
RestrictedField rr = (RestrictedField) field;
y = y + 1;
sheet.addCell(new Label(y, i, rr.getValue()));