/**
* @return the ruleResult
*/
public RuleResult getRuleResult() {
AbstractRuleResult ruleResult;
if (checkingUnit == null) {
ruleResult = new UncheckedRuleResult(rule, RuleResult.Result.NOTCHECKED);
} else {
ruleResult = new CheckedRuleResult(rule, checkingUnit);
}
List<Message> messages = getMessages();
if (!messages.isEmpty()) {
ruleResult.appendMessages(messages);
}
return ruleResult;
}