| java.lang.Object vqwiki.lex.LexExtender
LexExtender | public class LexExtender (Code) | | Manager for lex extensions. Lex extensions are persisted as entries in a file at
WEB-INF/classes/externallex.properties. They are triggered by the special markup:
[<tagname>][</tagname>] where tagname is the name of the external lex
to use process the content between the tags. The entry in this manager maps this name
to an implementation class of
ExternalLex that is used to process the text.
author: garethc author: Date: Jan 6, 2003 |
LEX_EXTENDER_PROPERTIES_FILE | final public static String LEX_EXTENDER_PROPERTIES_FILE(Code) | | Properties file to persist in
|
addLexerEntry | public void addLexerEntry(String lexName, String className) throws IOException(Code) | | Add a new lexer entry and persist the mapping
Parameters: lexName - lexer name Parameters: className - class name throws: IOException - if the mapping can not be persisted |
getInstance | public static synchronized LexExtender getInstance()(Code) | | Get instance of the extender
singleton instance |
lexify | public String lexify(String tagName, String contents)(Code) | | Process the given contents using the lex class that matches with the tag name
Parameters: tagName - tag name == lexer name Parameters: contents - contents to transform transformed contents |
|
|