org.jostraca.transform
Class RemoveFirstBlankLineTransform

java.lang.Object
  extended byorg.jostraca.transform.TextualTransformSupport
      extended byorg.jostraca.transform.RemoveFirstBlankLineTransform
All Implemented Interfaces:
TextualTransform

public class RemoveFirstBlankLineTransform
extends TextualTransformSupport

Remove first blank line (line containing just whitespace) from a text element


Field Summary
static java.lang.String CN
           
static java.lang.String NAME
           
 
Fields inherited from class org.jostraca.transform.TextualTransformSupport
iAttributes, iNeedsReparse, iOpenScriptMarker
 
Fields inherited from interface org.jostraca.transform.TextualTransform
ATTR_sectionset, ATTR_unit_attr, ATTR_unit_origin, ATTR_unit_set, NEWLINE
 
Constructor Summary
RemoveFirstBlankLineTransform()
           
 
Method Summary
 java.lang.String getName()
          Name of the transform
 void setParameters(PropertySet pPropertySet)
          Set the parameters, if any, that this transform uses.
 java.lang.String transform(java.lang.String pToTransform)
          Transform the supplied String.
 
Methods inherited from class org.jostraca.transform.TextualTransformSupport
checkForReparse, needsReparse, setParameters, setParametersImpl
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NAME

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

CN

public static final java.lang.String CN
Constructor Detail

RemoveFirstBlankLineTransform

public RemoveFirstBlankLineTransform()
Method Detail

transform

public java.lang.String transform(java.lang.String pToTransform)
                           throws TransformException
Description copied from interface: TextualTransform
Transform the supplied String. Return Standard.EMPTY as default in case of failure.

Specified by:
transform in interface TextualTransform
Specified by:
transform in class TextualTransformSupport
Throws:
TransformException
See Also:
TextualTransform

setParameters

public void setParameters(PropertySet pPropertySet)
Description copied from interface: TextualTransform
Set the parameters, if any, that this transform uses. Throw org.jostraca.transform.TextualTransformException if parameters are invalid.

Specified by:
setParameters in interface TextualTransform
Overrides:
setParameters in class TextualTransformSupport
See Also:
TextualTransform

getName

public java.lang.String getName()
Description copied from interface: TextualTransform
Name of the transform

Specified by:
getName in interface TextualTransform
Overrides:
getName in class TextualTransformSupport


Copyright © 2000-2002 Richard Rodger