org.jostraca
Class BasicTextElementProcessor

java.lang.Object
  extended byorg.jostraca.BasicTextElementProcessor
All Implemented Interfaces:
BasicGenericElementProcessor, TemplateElementProcessor

public class BasicTextElementProcessor
extends java.lang.Object
implements BasicGenericElementProcessor

Description:
Process a template text element.


Field Summary
 
Fields inherited from interface org.jostraca.TemplateElementProcessor
ELEMENT_TYPE_directive, ELEMENT_TYPE_expression, ELEMENT_TYPE_none, ELEMENT_TYPE_script, ELEMENT_TYPE_text
 
Constructor Summary
BasicTextElementProcessor(BasicUnitList pUnitList, TemplateActionHandler pTemplateActionHandler, PropertySet pPropertySet, TextualTransformManagerTable pTextualTransformManagerTable)
           
 
Method Summary
 java.lang.String getContent()
          Return content of template element.
 UnitList getUnitList()
          transitional method
 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 class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BasicTextElementProcessor

public BasicTextElementProcessor(BasicUnitList pUnitList,
                                 TemplateActionHandler pTemplateActionHandler,
                                 PropertySet pPropertySet,
                                 TextualTransformManagerTable pTextualTransformManagerTable)
Method Detail

isMatch

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

Specified by:
isMatch in interface BasicGenericElementProcessor
Parameters:
pBlock - Block to test
Throws:
TemplateElementProcessorException
See Also:
BasicGenericElementProcessor

process

public boolean process(Block pBlock)
                throws TemplateElementProcessorException
Description copied from interface: BasicGenericElementProcessor
Process parsed template block (text or script). Implementation contract: pBlock is not null.

Specified by:
process in interface BasicGenericElementProcessor
Parameters:
pBlock - Block to process.
Throws:
TemplateElementProcessorException
See Also:
A text block is translated to a call to the _insert method of the code writer.

getContent

public java.lang.String getContent()
Description copied from interface: BasicGenericElementProcessor
Return content of template element.

Specified by:
getContent in interface BasicGenericElementProcessor

getUnitList

public UnitList getUnitList()
Description copied from interface: TemplateElementProcessor
transitional method

Specified by:
getUnitList in interface TemplateElementProcessor


Copyright © 2000-2002 Richard Rodger