/** * Returns the string representation of the element kind of an * {@link IApiProblem}, given its category * * @param category * @param kind * @return the string of the {@link IApiProblem} element kind */ public static String getProblemElementKind(int category, int kind) { switch (category) { case IApiProblem.CATEGORY_COMPATIBILITY: case IApiProblem.CATEGORY_SINCETAGS: { return Util.getDeltaElementType(kind); } case IApiProblem.CATEGORY_USAGE: case IApiProblem.CATEGORY_VERSION: case IApiProblem.CATEGORY_API_BASELINE: case IApiProblem.CATEGORY_API_COMPONENT_RESOLUTION: { return ApiProblem.getDescriptorKind(kind); } case IApiProblem.CATEGORY_API_USE_SCAN_PROBLEM: { return Util.getApiElementType(kind); } default: return Util.UNKNOWN_KIND; } }