org.jostraca
Interface TemplateParser

All Known Implementing Classes:
BasicTemplateParser

public interface TemplateParser

Interface to template code parsing.


Method Summary
 SectionSet getSectionSet()
          Get SectionSet built from parse.
 void parse()
          Parse text and update SectionSet.
 void setPropertySet(PropertySet pPropertySet)
          Set PropertySet to be used in parse.
 void setSectionSet(SectionSet pSectionSet)
          Set SectionSet to be used in parse.
 void setSourceText(java.lang.String pSourceText)
          Set source text to be parsed.
 

Method Detail

setSourceText

public void setSourceText(java.lang.String pSourceText)
                   throws TemplateParserException
Set source text to be parsed.

Parameters:
pSourceText - Source text to be parsed.
Throws:
TemplateParserException - Thrown if pSourceText is null.

setSectionSet

public void setSectionSet(SectionSet pSectionSet)
                   throws TemplateParserException
Set SectionSet to be used in parse.

Parameters:
pSectionSet - SectionSet used in parse.
Throws:
TemplateParserException - Thrown if pSectionSet is null.

setPropertySet

public void setPropertySet(PropertySet pPropertySet)
                    throws TemplateParserException
Set PropertySet to be used in parse.

Parameters:
pPropertySet - PropertySet used in parse.
Throws:
TemplateParserException - Thrown if pPropertySet is null.

parse

public void parse()
           throws StandardException,
                  TemplateParserException
Parse text and update SectionSet. Errors return via UserErrorStore.

Throws:
StandardException
TemplateParserException

getSectionSet

public SectionSet getSectionSet()
Get SectionSet built from parse.



Copyright © 2000-2002 Richard Rodger