@Override public void returnAttributesValidation(ReturnAttribute[] returnAttributes) throws AnnotationValidationException { for (ReturnAttribute returnAttribute : returnAttributes) { String returnAttributeName = returnAttribute.name(); //Check if the @ReturnAttributes name is empty. if (returnAttributeName.isEmpty()) { throw new AnnotationValidationException(MessageFormat.format("The @Extension -> " + "@ReturnAttribute -> name annotated in class {0} is null or empty.", extensionClassFullName)); } else if (!CAMEL_CASE_PATTERN.matcher(returnAttributeName).find()) { //Check if the @Extension -> @ReturnAttribute -> name is in a correct camelCase // format using regex pattern. throw new AnnotationValidationException(MessageFormat.format("The @Extension -> " + "@ReturnAttribute -> name {0} annotated in class {1} is not in camelCase format.", returnAttributeName, extensionClassFullName)); } //Check if the @ReturnAttributes description is empty. if (returnAttribute.description().isEmpty()) { throw new AnnotationValidationException(MessageFormat.format("The @Extension -> " + "@ReturnAttribute -> name:{0} -> description annotated in class {1} is null or empty.", returnAttributeName, extensionClassFullName)); } //Check if the @ReturnAttributes type is empty. if (returnAttribute.type().length == 0) { throw new AnnotationValidationException(MessageFormat.format("The @Extension -> " + "@ReturnAttribute -> name:{0} -> type annotated in class {1} is null or empty.", returnAttributeName, extensionClassFullName)); } } } }
@Override public void returnAttributesValidation(ReturnAttribute[] returnAttributes) throws AnnotationValidationException { for (ReturnAttribute returnAttribute : returnAttributes) { String returnAttributeName = returnAttribute.name(); //Check if the @ReturnAttributes name is empty. if (returnAttributeName.isEmpty()) { throw new AnnotationValidationException(MessageFormat.format("The @Extension -> " + "@ReturnAttribute -> name annotated in class {0} is null or empty.", extensionClassFullName)); } else if (!CAMEL_CASE_PATTERN.matcher(returnAttributeName).find()) { //Check if the @Extension -> @ReturnAttribute -> name is in a correct camelCase // format using regex pattern. throw new AnnotationValidationException(MessageFormat.format("The @Extension -> " + "@ReturnAttribute -> name {0} annotated in class {1} is not in camelCase format.", returnAttributeName, extensionClassFullName)); } //Check if the @ReturnAttributes description is empty. if (returnAttribute.description().isEmpty()) { throw new AnnotationValidationException(MessageFormat.format("The @Extension -> " + "@ReturnAttribute -> name:{0} -> description annotated in class {1} is null or empty.", returnAttributeName, extensionClassFullName)); } //Check if the @ReturnAttributes type is empty. if (returnAttribute.type().length == 0) { throw new AnnotationValidationException(MessageFormat.format("The @Extension -> " + "@ReturnAttribute -> name:{0} -> type annotated in class {1} is null or empty.", returnAttributeName, extensionClassFullName)); } } } }
String returnAttributeName = returnAttribute.name();
"@ReturnAttribute annotated in class {0} is null or empty.", extensionClassFullName)); } else if (returnAttributes.length == 1) { String returnAttributeName = returnAttributes[0].name();
"@ReturnAttribute annotated in class {0} is null or empty.", extensionClassFullName)); } else if (returnAttributes.length == 1) { String returnAttributeName = returnAttributes[0].name();
"annotated in class {0} is null or empty.", extensionClassFullName)); } else if (returnAttributes.length == 1) { String returnAttributeName = returnAttributes[0].name();
@Override public void returnAttributesValidation(ReturnAttribute[] returnAttributes) throws AnnotationValidationException { for (ReturnAttribute returnAttribute : returnAttributes) { String returnAttributeName = returnAttribute.name(); //Check if the @ReturnAttributes name is empty. if (returnAttributeName.isEmpty()) { throw new AnnotationValidationException(MessageFormat.format("The @Extension -> " + "@ReturnAttribute -> name annotated in class {0} is null or empty.", extensionClassFullName)); } else if (!CAMEL_CASE_PATTERN.matcher(returnAttributeName).find()) { //Check if the @Extension -> @ReturnAttribute -> name is in a correct camelCase // format using regex pattern. throw new AnnotationValidationException(MessageFormat.format("The @Extension -> " + "@ReturnAttribute -> name {0} annotated in class {1} is not in camelCase format.", returnAttributeName, extensionClassFullName)); } //Check if the @ReturnAttributes description is empty. if (returnAttribute.description().isEmpty()) { throw new AnnotationValidationException(MessageFormat.format("The @Extension -> " + "@ReturnAttribute -> name:{0} -> description annotated in class {1} is null or empty.", returnAttributeName, extensionClassFullName)); } //Check if the @ReturnAttributes type is empty. if (returnAttribute.type().length == 0) { throw new AnnotationValidationException(MessageFormat.format("The @Extension -> " + "@ReturnAttribute -> name:{0} -> type annotated in class {1} is null or empty.", returnAttributeName, extensionClassFullName)); } } } }
@Override public void returnAttributesValidation(ReturnAttribute[] returnAttributes) throws AnnotationValidationException { for (ReturnAttribute returnAttribute : returnAttributes) { String returnAttributeName = returnAttribute.name(); //Check if the @ReturnAttributes name is empty. if (returnAttributeName.isEmpty()) { throw new AnnotationValidationException(MessageFormat.format("The @Extension -> " + "@ReturnAttribute -> name annotated in class {0} is null or empty.", extensionClassFullName)); } else if (!CAMEL_CASE_PATTERN.matcher(returnAttributeName).find()) { //Check if the @Extension -> @ReturnAttribute -> name is in a correct camelCase // format using regex pattern. throw new AnnotationValidationException(MessageFormat.format("The @Extension -> " + "@ReturnAttribute -> name {0} annotated in class {1} is not in camelCase format.", returnAttributeName, extensionClassFullName)); } //Check if the @ReturnAttributes description is empty. if (returnAttribute.description().isEmpty()) { throw new AnnotationValidationException(MessageFormat.format("The @Extension -> " + "@ReturnAttribute -> name:{0} -> description annotated in class {1} is null or empty.", returnAttributeName, extensionClassFullName)); } //Check if the @ReturnAttributes type is empty. if (returnAttribute.type().length == 0) { throw new AnnotationValidationException(MessageFormat.format("The @Extension -> " + "@ReturnAttribute -> name:{0} -> type annotated in class {1} is null or empty.", returnAttributeName, extensionClassFullName)); } } } }
String returnAttributeName = returnAttribute.name();
"@ReturnAttribute annotated in class {0} is null or empty.", extensionClassFullName)); } else if (returnAttributes.length == 1) { String returnAttributeName = returnAttributes[0].name();
"annotated in class {0} is null or empty.", extensionClassFullName)); } else if (returnAttributes.length == 1) { String returnAttributeName = returnAttributes[0].name();
"@ReturnAttribute annotated in class {0} is null or empty.", extensionClassFullName)); } else if (returnAttributes.length == 1) { String returnAttributeName = returnAttributes[0].name();
for (ReturnAttribute additionalAttribute : extensionAnnotation.returnAttributes()) { AttributeMetaData attributeMetaData = new AttributeMetaData(); attributeMetaData.setName(additionalAttribute.name()); attributeMetaData.setType(Arrays.asList(additionalAttribute.type())); attributeMetaData.setDescription(additionalAttribute.description());