org.jostraca
Class BasicTemplateElementProcessor

java.lang.Object
  extended byorg.jostraca.BasicTemplateElementProcessor
All Implemented Interfaces:
TemplateElementProcessor

public class BasicTemplateElementProcessor
extends java.lang.Object
implements TemplateElementProcessor

Basic processor for template elements (text,script,etc.)


Field Summary
static java.lang.String CN
           
static java.lang.String NEWLINE
           
static java.lang.String REGEXP_PART_any_whitespace
           
static java.lang.String REGEXP_PART_any_whitespace_at_start
           
static java.lang.String REGEXP_PART_submatch_any_whitespace_any_chars_at_end
           
static java.lang.String REGEXP_PART_submatch_section_name
           
 
Fields inherited from interface org.jostraca.TemplateElementProcessor
ELEMENT_TYPE_directive, ELEMENT_TYPE_expression, ELEMENT_TYPE_none, ELEMENT_TYPE_script, ELEMENT_TYPE_text
 
Constructor Summary
BasicTemplateElementProcessor(TemplateActionHandler pTemplateActionHandler, PropertySet pPropertySet)
          Constructor.
 
Method Summary
 java.lang.String getContent()
           
 UnitList getUnitList()
          transitional method
 boolean process(Block pBlock)
          Process parsed template block (text or script).
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

CN

public static final java.lang.String CN

REGEXP_PART_any_whitespace

public static final java.lang.String REGEXP_PART_any_whitespace
See Also:
Constant Field Values

REGEXP_PART_any_whitespace_at_start

public static final java.lang.String REGEXP_PART_any_whitespace_at_start
See Also:
Constant Field Values

REGEXP_PART_submatch_any_whitespace_any_chars_at_end

public static final java.lang.String REGEXP_PART_submatch_any_whitespace_any_chars_at_end
See Also:
Constant Field Values

REGEXP_PART_submatch_section_name

public static final java.lang.String REGEXP_PART_submatch_section_name
See Also:
Constant Field Values

NEWLINE

public static final java.lang.String NEWLINE
See Also:
Constant Field Values
Constructor Detail

BasicTemplateElementProcessor

public BasicTemplateElementProcessor(TemplateActionHandler pTemplateActionHandler,
                                     PropertySet pPropertySet)
Constructor. Needs TemplateActionHandler and PropertySet.

Parameters:
pTemplateActionHandler - Results of processing operations are sent here.
pPropertySet - PropertySet used for parse.
Method Detail

process

public boolean process(Block pBlock)
                throws StandardException
Description copied from interface: TemplateElementProcessor
Process parsed template block (text or script).

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

getContent

public java.lang.String getContent()
Specified by:
getContent in interface TemplateElementProcessor

getUnitList

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

Specified by:
getUnitList in interface TemplateElementProcessor

toString

public java.lang.String toString()


Copyright © 2000-2002 Richard Rodger