示例#1
0
 private static AnnotationKey findApiErrorCode(AnnotationBo bo) {
   for (AnnotationKey annotationKey : API_META_DATA_ERROR) {
     if (bo.getKey() == annotationKey.getCode()) {
       return annotationKey;
     }
   }
   return null;
 }
示例#2
0
 static List<AnnotationKey> loadApiMetaDataError() {
   List<AnnotationKey> apiMetaData = new ArrayList<AnnotationKey>();
   for (AnnotationKey annotationKey : AnnotationKey.values()) {
     if (annotationKey.name().startsWith("ERROR_API_METADATA_")) {
       apiMetaData.add(annotationKey);
     }
   }
   return apiMetaData;
 }
示例#3
0
 public static AnnotationBo findArgsAnnotationBo(List<AnnotationBo> annotationBoList) {
   for (AnnotationBo annotation : annotationBoList) {
     if (AnnotationKey.isArgsKey(annotation.getKey())) {
       return annotation;
     }
   }
   return null;
 }
示例#4
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;
 }