protected Violation createViolation ( HtmlElement htmlElement , Page page , String message ) { if ( htmlElement == null ) htmlElement = page . findHtmlTag ( ) ; return new Violation ( this , htmlElement , message ) ; }
Creates a new violation for that rule with the line number of the violating element in the given page and a message that describes the violation in detail .