All Downloads are FREE. Search and download functionalities are using the official Maven repository.

fitnesse.wikitext.parser.HtmlTranslator Maven / Gradle / Ivy

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;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy