Examples of BooleanAttributeValue


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

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

        }
        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
Copyright © 2018 www.massapi.com. 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.