/** * 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(); }
@Override public void withOptions(final CommandLine options) throws CliConfigurationException { super.withOptions(options); reportDirectory = getOptionValue(options, CMDLINE_OPTION_REPORTDIR, DEFAULT_REPORT_DIRECTORY); severity = Severity.valueOf(getOptionValue(options, CMDLINE_OPTION_SEVERITY, Severity.CRITICAL.name()).toUpperCase()); executeAppliedConcepts = options.hasOption(CMDLINE_OPTION_EXECUTEAPPLIEDCONCEPTS); }