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