| java.lang.Object vqwiki.lex.AbstractParser
All known Subclasses: vqwiki.lex.DefaultWikiParser, vqwiki.lex.MediaWikiParser,
AbstractParser | abstract public class AbstractParser (Code) | | Abstract class to be used when implementing new lexers. New lexers
should extend this class and override any methods that need to be
implemented differently.
|
Method Summary | |
public ParserInfo | getParserInfo() For getting general information about this parser. | abstract public List | getTopics(String rawtext, String virtualwiki) Get a list of Topics from a raw text (used for backlinks, todo-Topics)
Parameters: raw - The raw Wiki syntax to be converted into HTML. Parameters: virtualwiki - A virtual wiki prefix (if any). | abstract public String | parseExportHTML(String raw, String virtualwiki) Returns a HTML representation of the given wiki raw text for the HTML-exporter.
This has mainly effect to the links. | abstract public String | parseHTML(String raw, String virtualwiki) Returns a HTML representation of the given wiki raw text for online representation.
Parameters: raw - The raw Wiki syntax to be converted into HTML. Parameters: virtualwiki - A virtual wiki prefix (if any). |
AbstractParser | protected AbstractParser(ParserInfo parserInfo)(Code) | | Sets the basics for this parser.
Parameters: parserInfo - General information about this parser. |
getParserInfo | public ParserInfo getParserInfo()(Code) | | For getting general information about this parser.
General information about this parser. |
getTopics | abstract public List getTopics(String rawtext, String virtualwiki) throws Exception(Code) | | Get a list of Topics from a raw text (used for backlinks, todo-Topics)
Parameters: raw - The raw Wiki syntax to be converted into HTML. Parameters: virtualwiki - A virtual wiki prefix (if any). a List of all Topic names found in the text. |
parseExportHTML | abstract public String parseExportHTML(String raw, String virtualwiki) throws IOException(Code) | | Returns a HTML representation of the given wiki raw text for the HTML-exporter.
This has mainly effect to the links. All links will be on HTML-files and not
on a Wiki-Servlet. The HTML-files will all be stored flat into the same directory.
Parameters: raw - The raw Wiki syntax to be converted into HTML suitable for export. Parameters: virtualwiki - A virtual wiki prefix (if any). HTML representation of the text for HTML export. |
parseHTML | abstract public String parseHTML(String raw, String virtualwiki) throws IOException(Code) | | Returns a HTML representation of the given wiki raw text for online representation.
Parameters: raw - The raw Wiki syntax to be converted into HTML. Parameters: virtualwiki - A virtual wiki prefix (if any). HTML representation of the text for online. |
|
|