org.jostraca.section
Class BlockIndenter

java.lang.Object
  extended byorg.jostraca.section.Identity
      extended byorg.jostraca.section.BlockIndenter
All Implemented Interfaces:
Modifier

public class BlockIndenter
extends Identity

Modify Section/SectionSet: mark start and end of section with comments Note: this only works for a single occurence of the section in the writer format text. To insert the same section in multiple locations with different indents, one workaround might be to name each section explicitly: foo, foo1, foo2 etc. Then write a special Modifier that creates Section objects foo1, foo2, etc by copying Section foo. Then ensure that BlockIndenter is run afterwards on all these new Sections.


Field Summary
 
Fields inherited from class org.jostraca.section.Identity
CN
 
Constructor Summary
BlockIndenter()
           
 
Method Summary
 Section modify(Section pSection, PropertySet pPropertySet)
          Modify the Section.
 
Methods inherited from class org.jostraca.section.Identity
checkNulls, modify
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BlockIndenter

public BlockIndenter()
Method Detail

modify

public Section modify(Section pSection,
                      PropertySet pPropertySet)
               throws ModifierException
Modify the Section.

Specified by:
modify in interface Modifier
Overrides:
modify in class Identity
Parameters:
pSection - Section to modify.
pPropertySet - PropertySet which may contain parameters for the modification.
Throws:
ModifierException


Copyright © 2000-2002 Richard Rodger