org.jostraca.section
Class Identity

java.lang.Object
  extended byorg.jostraca.section.Identity
All Implemented Interfaces:
Modifier
Direct Known Subclasses:
BlockIndenter, Collapser, Marker, PythonIndenter

public class Identity
extends java.lang.Object
implements Modifier

Modify Section/SectionSet: return unchanged.


Field Summary
static java.lang.String CN
           
 
Constructor Summary
Identity()
           
 
Method Summary
protected  Section checkNulls(Section pSection, PropertySet pPropertySet)
          Check if pSection or pPropertySet are null.
 Section modify(Section pSection, PropertySet pPropertySet)
          Return Section unmodified
 SectionSet modify(SectionSet pSectionSet, PropertySet pPropertySet)
          Apply modify to all Sections in SectionSet.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CN

public static final java.lang.String CN
Constructor Detail

Identity

public Identity()
Method Detail

modify

public Section modify(Section pSection,
                      PropertySet pPropertySet)
               throws ModifierException
Return Section unmodified

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

modify

public SectionSet modify(SectionSet pSectionSet,
                         PropertySet pPropertySet)
                  throws ModifierException
Apply modify to all Sections in SectionSet. This class can be subclassed to inherit this functionality.

Specified by:
modify in interface Modifier
Parameters:
pSectionSet - SectionSet containing Sections to modify.
pPropertySet - PropertySet which may contain parameters for the modification.
Throws:
ModifierException

checkNulls

protected Section checkNulls(Section pSection,
                             PropertySet pPropertySet)
Check if pSection or pPropertySet are null. If so, return a reasonable Section object. If not, return null (this is the expected result!)



Copyright © 2000-2002 Richard Rodger