* @return the markup validator
*
* @see #getDialectNames()
*/
public MarkupValidator getMarkupValidator(String name) {
MarkupValidator markupValidator = new MarkupValidator();
if (validationRulesByDialectName == null) {
initializeValidationRules();
}
List<ValidationRule> rules = validationRulesByDialectName.get(name);
if (rules != null) {
markupValidator.getRules().addAll(rules);
}
return markupValidator;
}