fitnesse.wikitext.parser.HtmlTranslator Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of fitnesse Show documentation
Show all versions of fitnesse Show documentation
The fully integrated standalone wiki, and acceptance testing framework.
The newest version!
package fitnesse.wikitext.parser;
public class HtmlTranslator extends Translator {
private ParsingPage parsingPage;
@Override
protected Translation getTranslation(SymbolType symbolType) {
if(symbolType instanceof SymbolTypeDecorator){
SymbolType applicable = ((SymbolTypeDecorator)symbolType).isApplicable(this);
return applicable.getHtmlTranslation();
}
return symbolType.getHtmlTranslation();
}
public ParsingPage getParsingPage() { return parsingPage; }
public HtmlTranslator(SourcePage currentPage, ParsingPage parsingPage) {
super(currentPage);
this.parsingPage = parsingPage;
}
}