/** * Return a string representing of the effective severity of a rule. * * @param effectiveSeverity * The severity to use. * @return The string representation. */ public String getInfo(Severity effectiveSeverity) { StringBuffer result = new StringBuffer(effectiveSeverity.name()); if (!this.equals(effectiveSeverity)) { result.append(" (from ").append(this.name()).append(")"); } return result.toString(); }