/** * Returns the string representation of the kind of an {@link IApiProblem}, * given its category * * @param category * @param kind * @return the string of the {@link IApiProblem} kind */ public static String getProblemKind(int category, int kind) { switch (category) { case IApiProblem.CATEGORY_COMPATIBILITY: return Util.getDeltaKindName(kind); case IApiProblem.CATEGORY_SINCETAGS: return ApiProblem.getTagsProblemKindName(kind); case IApiProblem.CATEGORY_USAGE: return ApiProblem.getUsageProblemKindName(kind); case IApiProblem.CATEGORY_VERSION: return ApiProblem.getVersionProblemKindName(kind); case IApiProblem.CATEGORY_API_BASELINE: return ApiProblem.getApiBaselineProblemKindName(kind); case IApiProblem.CATEGORY_API_COMPONENT_RESOLUTION: return ApiProblem.getApiComponentResolutionProblemKindName(kind); case IApiProblem.CATEGORY_API_USE_SCAN_PROBLEM: return ApiProblem.getApiUseScanProblemKindName(kind); default: return Util.UNKNOWN_KIND; } }