Пример #1
0
 public static AnnotationBo findArgsAnnotationBo(List<AnnotationBo> annotationBoList) {
   for (AnnotationBo annotation : annotationBoList) {
     if (AnnotationKey.isArgsKey(annotation.getKey())) {
       return annotation;
     }
   }
   return null;
 }
Пример #2
0
 public static String findApiAnnotation(List<AnnotationBo> list) {
   if (list == null) {
     return null;
   }
   AnnotationBo annotationBo = findAnnotationBo(list, AnnotationKey.API);
   if (annotationBo != null) {
     return (String) annotationBo.getValue();
   }
   return null;
 }
Пример #3
0
 public static AnnotationBo findAnnotationBo(
     List<AnnotationBo> annotationBoList, AnnotationKey annotationKey) {
   for (AnnotationBo annotation : annotationBoList) {
     int key = annotation.getKey();
     if (annotationKey.getCode() == key) {
       return annotation;
     }
   }
   return null;
 }
Пример #4
0
 private static AnnotationKey findApiErrorCode(AnnotationBo bo) {
   for (AnnotationKey annotationKey : API_META_DATA_ERROR) {
     if (bo.getKey() == annotationKey.getCode()) {
       return annotationKey;
     }
   }
   return null;
 }