The processNode function from the GeneratingProvider interface requires a specific implementation of the HtmlGenerator.HtmlGeneratingVisitor class rather than an abstraction while HtmlGenerator.HtmlGeneratingVisitor implements the RecursiveVisitor interface.
Please replace HtmlGenerator.HtmlGeneratingVisitor with RecursiveVisitorin the parameters of the GeneratingProvider interface so you can expand or create your own generator! Also, make the class HtmlGenerator open so that it can be extended.
The
processNode
function from theGeneratingProvider
interface requires a specific implementation of theHtmlGenerator.HtmlGeneratingVisitor
class rather than an abstraction whileHtmlGenerator.HtmlGeneratingVisitor
implements theRecursiveVisitor
interface.Please replace
HtmlGenerator.HtmlGeneratingVisitor
withRecursiveVisitor
in the parameters of theGeneratingProvider
interface so you can expand or create your own generator! Also, make the classHtmlGenerator
open so that it can be extended.