org.jostraca.directive
Class ReplaceDirective

java.lang.Object
  extended byorg.jostraca.directive.DirectiveSupport
      extended byorg.jostraca.directive.ReplaceDirective
All Implemented Interfaces:
Directive

public class ReplaceDirective
extends DirectiveSupport

Replace text in template with substitute text. Usage:
  <% @replace from-text to-text %>


Field Summary
static java.lang.String ARG_from
           
static java.lang.String ARG_to
           
 
Fields inherited from class org.jostraca.directive.DirectiveSupport
iDirectiveParser
 
Constructor Summary
ReplaceDirective()
           
 
Method Summary
 java.lang.String[] getAliases()
          Should include value of getName()
 java.lang.String getName()
           
 void perform(java.lang.String pDirectiveName, java.lang.String pArguments, BasicUnitList pBasicUnitList, TemplateActionHandler pTemplateActionHandler, PropertySet pPropertySet, TextualTransformManagerTable pTextualTransformManagerTable)
          REVIEW: this interface WILL change.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ARG_from

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

ARG_to

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

ReplaceDirective

public ReplaceDirective()
                 throws DirectiveException
Method Detail

perform

public void perform(java.lang.String pDirectiveName,
                    java.lang.String pArguments,
                    BasicUnitList pBasicUnitList,
                    TemplateActionHandler pTemplateActionHandler,
                    PropertySet pPropertySet,
                    TextualTransformManagerTable pTextualTransformManagerTable)
             throws DirectiveException
Description copied from interface: Directive
REVIEW: this interface WILL change.

Specified by:
perform in interface Directive
Specified by:
perform in class DirectiveSupport
Throws:
DirectiveException

getName

public java.lang.String getName()
Specified by:
getName in interface Directive
Specified by:
getName in class DirectiveSupport

getAliases

public java.lang.String[] getAliases()
Should include value of getName()

Specified by:
getAliases in interface Directive
Overrides:
getAliases in class DirectiveSupport


Copyright © 2000-2002 Richard Rodger