Ejemplo n.º 1
0
 private static AnnotationKey findApiErrorCode(AnnotationBo bo) {
   for (AnnotationKey annotationKey : API_META_DATA_ERROR) {
     if (bo.getKey() == annotationKey.getCode()) {
       return annotationKey;
     }
   }
   return null;
 }
Ejemplo n.º 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;
 }
Ejemplo n.º 3
0
 public static AnnotationBo findArgsAnnotationBo(List<AnnotationBo> annotationBoList) {
   for (AnnotationBo annotation : annotationBoList) {
     if (AnnotationKey.isArgsKey(annotation.getKey())) {
       return annotation;
     }
   }
   return null;
 }
Ejemplo n.º 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;
 }