de.infoasset.platform.template
Class Parser

java.lang.Object
  extended by de.infoasset.platform.util.AbstractInitializable
      extended by de.infoasset.platform.template.Parser
All Implemented Interfaces:
de.infoasset.imf.blackbox.Configurable, de.infoasset.imf.blackbox.Initializable

public class Parser
extends AbstractInitializable


Field Summary
static java.lang.String DOLLAR
          This delimiter encloses placeholders in the template.
protected static char FUNCTION_PARAMETERS_END
           
protected static char FUNCTION_PARAMETERS_START
           
 
Constructor Summary
Parser()
           
 
Method Summary
static void main(java.lang.String[] args)
           
static ChunkList parse(java.lang.String string, java.io.File file, ProjectWithTemplates project)
          Parses a given file and produces a parse tree of chunks representing the templates' structure.
 
Methods inherited from class de.infoasset.platform.util.AbstractInitializable
initNew
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DOLLAR

public static final java.lang.String DOLLAR
This delimiter encloses placeholders in the template. It should be a character that usually does not appear in HTML pages.

See Also:
Constant Field Values

FUNCTION_PARAMETERS_START

protected static final char FUNCTION_PARAMETERS_START
See Also:
Constant Field Values

FUNCTION_PARAMETERS_END

protected static final char FUNCTION_PARAMETERS_END
See Also:
Constant Field Values
Constructor Detail

Parser

public Parser()
Method Detail

parse

public static ChunkList parse(java.lang.String string,
                              java.io.File file,
                              ProjectWithTemplates project)
Parses a given file and produces a parse tree of chunks representing the templates' structure.

Parameters:
project - TODO

main

public static void main(java.lang.String[] args)
                 throws org.htmlparser.util.ParserException,
                        java.io.IOException
Throws:
org.htmlparser.util.ParserException
java.io.IOException