Class DefaultHtmlValidator
- java.lang.Object
-
- org.dashbuilder.displayer.client.widgets.sourcecode.DefaultHtmlValidator
-
- All Implemented Interfaces:
HtmlValidator
@Dependent public class DefaultHtmlValidator extends Object implements HtmlValidator
-
-
Constructor Summary
Constructors Constructor Description DefaultHtmlValidator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringvalidate(String code)Check if the the given HTML fragment has no syntax errors.
-
-
-
Method Detail
-
validate
public String validate(String code)
Description copied from interface:HtmlValidatorCheck if the the given HTML fragment has no syntax errors.- Specified by:
validatein interfaceHtmlValidator- Parameters:
code- the HTML to validate- Returns:
- An error message in case an error exists, or null if everything is ok.
-
-