Package org.springframework.roo.classpath.details.annotations

Examples of org.springframework.roo.classpath.details.annotations.BooleanAttributeValue


            attributes.add(new StringAttributeValue(
                    new JavaSymbolName("value"), StringUtils
                            .uncapitalize(fieldName.getSymbolName())));
            if (field.getFieldType().equals(JavaType.BOOLEAN_PRIMITIVE)
                    || field.getFieldType().equals(JavaType.BOOLEAN_OBJECT)) {
                attributes.add(new BooleanAttributeValue(new JavaSymbolName(
                        "required"), false));
            }
            final AnnotationMetadataBuilder requestParamAnnotation = new AnnotationMetadataBuilder(
                    REQUEST_PARAM, attributes);
            annotations.add(requestParamAnnotation.build());
View Full Code Here


        }
        final AnnotationAttributeValue<?> attributeValue = annotation
                .getAttribute(attributeName);
        if (attributeValue != null
                && attributeValue instanceof BooleanAttributeValue) {
            final BooleanAttributeValue booleanAttributeValue = (BooleanAttributeValue) attributeValue;
            return booleanAttributeValue.getValue();
        }
        return valueIfNull;
    }
View Full Code Here

TOP

Related Classes of org.springframework.roo.classpath.details.annotations.BooleanAttributeValue

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.