org.jostraca
Class BasicDirectiveElementProcessor

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

public class BasicDirectiveElementProcessor
extends java.lang.Object
implements BasicGenericElementProcessor, Standard

Process a template directive 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
 
Fields inherited from interface org.jostraca.util.Standard
BACKSLASH, CHAR_BACKSLASH, CHAR_CLOSE_SQUARE_BRACKET, CHAR_COLON, CHAR_COMMA, CHAR_DOT, CHAR_EQUALS, CHAR_FORWARDSLASH, CHAR_GREATERTHAN, CHAR_LESSTHAN, CHAR_MINUS, CHAR_NEWLINE, CHAR_OPEN_SQUARE_BRACKET, CHAR_PERCENT, CHAR_QUOTE, CHAR_RETURN, CHAR_SEMICOLON, CHAR_SPACE, CHAR_TAB, CHAR_ZERO, CLOSE_BRACE, CLOSE_BRACKET, CLOSE_SQUARE_BRACKET, COLON, COLON_OPEN_SQUARE_BRACKET, COLON_SPACE, COMMA, COMMA_SPACE, Directive, DOT, DOT_PROPERTIES, DOTDOT, EMPTY, EMPTY_STRING_ARRAY, EMPTY_STRINGBUFFER, EQUALS, Expression, FORWARDSLASH, GREATERTHAN, INDENT, Insert, IS_NULL, LESSTHAN, MINUS, NEWLINE, NO, OPEN_BRACE, OPEN_BRACKET, OPEN_SQUARE_BRACKET, PERCENT, QUOTE, Script, SEMICOLON, SPACE, TAB, Text, UNDEFINED, UNKNOWN, UTIL_TRACKER, YES, ZERO
 
Constructor Summary
BasicDirectiveElementProcessor(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

BasicDirectiveElementProcessor

public BasicDirectiveElementProcessor(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

process

public boolean process(Block pBlock)
                throws StandardException
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:
StandardException

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