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