|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.jostraca.BasicTemplateParser
Basic implementation of TemplateParser.
| Field Summary | |
static java.lang.String |
CN
|
protected char |
iCloseInnerChar
|
protected char |
iCloseOuterChar
|
protected java.lang.String |
iDefaultSectionName
|
protected char |
iOpenInnerChar
|
protected char |
iOpenOuterChar
|
| Constructor Summary | |
BasicTemplateParser()
No Args Constructor. |
|
| Method Summary | |
void |
append(java.lang.String pContent)
Append content to the default section |
void |
append(java.lang.String pSectionName,
java.lang.String pContent)
Append content to a given section. |
void |
appendToSection(java.lang.String pSectionName,
java.lang.String pContent)
Append text to a given section. |
java.lang.String |
getDefaultSection()
Transitional method: Section name needed for creating BasicUnits. |
int |
getLastElementType()
Get the element type of the last block processed. |
Section |
getSection(java.lang.String pSectionName)
Get the named section. |
SectionSet |
getSectionSet()
Get SectionSet built from parse. |
void |
parse()
Parse text and update SectionSet. |
void |
setCloseInnerChar(char pCloseInnerChar)
|
void |
setCloseOuterChar(char pCloseOuterChar)
|
void |
setDefaultSection(java.lang.String pSectionName)
Set the default section to add content to. |
void |
setLastElementType(int pLastElementType)
Set the element type of the last block processed. |
void |
setOpenInnerChar(char pOpenInnerChar)
|
void |
setOpenOuterChar(char pOpenOuterChar)
|
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 text to be parsed. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final java.lang.String CN
protected java.lang.String iDefaultSectionName
protected char iOpenOuterChar
protected char iOpenInnerChar
protected char iCloseInnerChar
protected char iCloseOuterChar
| Constructor Detail |
public BasicTemplateParser()
| Method Detail |
public void setDefaultSection(java.lang.String pSectionName)
TemplateActionHandler
setDefaultSection in interface TemplateActionHandlerpSectionName - Name of default section.public java.lang.String getDefaultSection()
TemplateActionHandler
getDefaultSection in interface TemplateActionHandlerpublic Section getSection(java.lang.String pSectionName)
TemplateActionHandler
getSection in interface TemplateActionHandlerpSectionName - Name of section.
public void append(java.lang.String pSectionName,
java.lang.String pContent)
TemplateActionHandler
append in interface TemplateActionHandlerpSectionName - Name of section to append content to.pContent - Content to append to section.public void append(java.lang.String pContent)
TemplateActionHandler
append in interface TemplateActionHandlerpContent - Content to append to default section.
public void appendToSection(java.lang.String pSectionName,
java.lang.String pContent)
pSectionName - Name of section to append text to.pContent - Text to append to section.public int getLastElementType()
TemplateActionHandler
getLastElementType in interface TemplateActionHandlerTemplateActionHandler.getLastElementType()public void setLastElementType(int pLastElementType)
TemplateActionHandler
setLastElementType in interface TemplateActionHandlerTemplateActionHandler.getLastElementType()
public void setSourceText(java.lang.String pSourceText)
throws TemplateParserException
setSourceText in interface TemplateParserpSourceText - Text to be parsed
TemplateParserException - Thrown if pSourceText is null.
public void setSectionSet(SectionSet pSectionSet)
throws TemplateParserException
setSectionSet in interface TemplateParserpSectionSet - SectionSet used in parse.
TemplateParserException - Thrown if pSourceText is null
public void setPropertySet(PropertySet pPropertySet)
throws TemplateParserException
setPropertySet in interface TemplateParserpPropertySet - PropertySet used in parse.
TemplateParserException - Thrown if pSourceText is nullpublic void parse()
parse in interface TemplateParserpublic SectionSet getSectionSet()
getSectionSet in interface TemplateParserpublic void setOpenOuterChar(char pOpenOuterChar)
public void setOpenInnerChar(char pOpenInnerChar)
public void setCloseInnerChar(char pCloseInnerChar)
public void setCloseOuterChar(char pCloseOuterChar)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||