@Override public void decorateAnnotationsList(final List<AnnotationMetadataBuilder> annotations) { super.decorateAnnotationsList(annotations); final List<AnnotationAttributeValue<?>> attrs = new ArrayList<AnnotationAttributeValue<?>>(); attrs.add(new StringAttributeValue(new JavaSymbolName("contentType"), contentType .getContentType())); if (autoUpload) { attrs.add(new BooleanAttributeValue(new JavaSymbolName("autoUpload"), autoUpload)); } annotations.add(new AnnotationMetadataBuilder(ROO_UPLOADED_FILE, attrs)); annotations.add(new AnnotationMetadataBuilder(LOB)); }
public void addBooleanAttribute(final String key, final boolean value) { addAttribute(new BooleanAttributeValue(new JavaSymbolName(key), value)); }
final List<AnnotationAttributeValue<?>> attrs = new ArrayList<AnnotationAttributeValue<?>>(); attrs.add(new BooleanAttributeValue(new JavaSymbolName("unique"), true)); columnBuilder = new AnnotationMetadataBuilder(COLUMN, attrs);
return new BooleanAttributeValue(annotationName, value);
attributes.add(new BooleanAttributeValue(new JavaSymbolName("orphanRemoval"), getOrphanRemoval().booleanValue()));
attributes.add(new BooleanAttributeValue(new JavaSymbolName("orphanRemoval"), getOrphanRemoval().booleanValue()));
/** * {@inheritDoc} */ public void addExportedAttr(List<AnnotationAttributeValue<?>> attrs) { // Exported attr: always true to know when export from WSDL attrs.add(new BooleanAttributeValue(new JavaSymbolName("exported"), true)); }
/** * {@inheritDoc} */ public void addEnumElementAttr(TypeDeclaration typeDecl, List<AnnotationAttributeValue<?>> annotAttrs) { // Check if is an Enum class if (typeDecl instanceof EnumDeclaration) { annotAttrs.add(new BooleanAttributeValue(new JavaSymbolName( "enumElement"), true)); } else { annotAttrs.add(new BooleanAttributeValue(new JavaSymbolName( "enumElement"), false)); } }
public void addBooleanAttribute(final String key, final boolean value) { addAttribute(new BooleanAttributeValue(new JavaSymbolName(key), value)); }
@Override public void decorateAnnotationsList(final List<AnnotationMetadataBuilder> annotations) { super.decorateAnnotationsList(annotations); final List<AnnotationAttributeValue<?>> attrs = new ArrayList<AnnotationAttributeValue<?>>(); attrs.add(new StringAttributeValue(new JavaSymbolName("contentType"), contentType .getContentType())); if (autoUpload) { attrs.add(new BooleanAttributeValue(new JavaSymbolName("autoUpload"), autoUpload)); } annotations.add(new AnnotationMetadataBuilder(ROO_UPLOADED_FILE, attrs)); annotations.add(new AnnotationMetadataBuilder(LOB)); }
final List<AnnotationAttributeValue<?>> attrs = new ArrayList<AnnotationAttributeValue<?>>(); attrs.add(new BooleanAttributeValue(new JavaSymbolName("unique"), true)); columnBuilder = new AnnotationMetadataBuilder(COLUMN, attrs);
new JavaSymbolName("fullyQualifiedTypeName"), serviceClass .getFullyQualifiedTypeName())); gvNixAnnotationAttributes.add(new BooleanAttributeValue( new JavaSymbolName("exported"), false));
BooleanAttributeValue bav = new BooleanAttributeValue( new JavaSymbolName("emptyAsNull"), emptyAsNull); List<AnnotationAttributeValue<?>> attributes = new ArrayList<AnnotationAttributeValue<?>>();
/** * Update methods without @GvNIXWebMethod annotation with @WebMethod(exclude * = true). * * @param methodMetadataListToExclude methods to exclude from Web Service. * @param id Destination type identifier */ public void updateMethodWithoutGvNIXAnnotation( List<MethodMetadata> methodMetadataListToExclude, String id, JavaParserService javaParserService) { List<AnnotationAttributeValue<?>> attributes = new ArrayList<AnnotationAttributeValue<?>>(); attributes.add(new BooleanAttributeValue(new JavaSymbolName("exclude"), true)); AnnotationMetadata methodAnnotation = new AnnotationMetadataBuilder( new JavaType("javax.jws.WebMethod"), attributes).build(); for (MethodMetadata md : methodMetadataListToExclude) { AnnotationMetadata gvNIXWebMethodMethodAnnotation = MemberFindingUtils .getAnnotationOfType(md.getAnnotations(), new JavaType( GvNIXWebMethod.class.getName())); // Only export methods in this entity: no parent class methods check if (gvNIXWebMethodMethodAnnotation == null && javaParserService.isMetadataId(id, md)) { builder.addMethodAnnotation(new DeclaredMethodAnnotationDetails( new MethodMetadataBuilder(id, md).build(), methodAnnotation)); } } }
attributes.add(new BooleanAttributeValue(new JavaSymbolName("orphanRemoval"), getOrphanRemoval().booleanValue()));
attributes.add(new BooleanAttributeValue(new JavaSymbolName("orphanRemoval"), getOrphanRemoval().booleanValue()));
BooleanAttributeValue excludeAttribuetValue = new BooleanAttributeValue( new JavaSymbolName("exclude"), false); annotationAttributeValueList.add(excludeAttribuetValue);
BooleanAttributeValue exported = new BooleanAttributeValue( new JavaSymbolName("exported"), false); attrs.add(exported);
headerAttributeValue = new BooleanAttributeValue( new JavaSymbolName("header"), false); headerAttributeValue = new BooleanAttributeValue( new JavaSymbolName("header"), headerAttributeValue.getValue());
attrs.add(new BooleanAttributeValue(new JavaSymbolName("header"), false));