org.jostraca
Interface BasicGenericElementProcessor

All Superinterfaces:
TemplateElementProcessor
All Known Implementing Classes:
BasicDirectiveElementProcessor, BasicExpressionElementProcessor, BasicScriptElementProcessor, BasicTextElementProcessor

public interface BasicGenericElementProcessor
extends TemplateElementProcessor

Process a template element: text, script, expression, directive, etc. Places content in appropriate section. Implementation contract: any constructors expect non null arguments. TO BE REPLACED.


Field Summary
 
Fields inherited from interface org.jostraca.TemplateElementProcessor
ELEMENT_TYPE_directive, ELEMENT_TYPE_expression, ELEMENT_TYPE_none, ELEMENT_TYPE_script, ELEMENT_TYPE_text
 
Method Summary
 java.lang.String getContent()
          Return content of template element.
 boolean isMatch(Block pBlock)
          Determine if content matches this type of element.
 boolean process(Block pBlock)
          Process parsed template block (text or script).
 
Methods inherited from interface org.jostraca.TemplateElementProcessor
getUnitList
 

Method Detail

isMatch

public boolean isMatch(Block pBlock)
                throws TemplateElementProcessorException
Determine if content matches this type of element. Implementation contract: pBlock is not null.

Parameters:
pBlock - Block to test
Throws:
TemplateElementProcessorException

process

public boolean process(Block pBlock)
                throws StandardException
Process parsed template block (text or script). Implementation contract: pBlock is not null.

Specified by:
process in interface TemplateElementProcessor
Parameters:
pBlock - Block to process.
Throws:
StandardException

getContent

public java.lang.String getContent()
Return content of template element.

Specified by:
getContent in interface TemplateElementProcessor


Copyright © 2000-2002 Richard Rodger