org.jostraca.directive
Class ReplaceRegExpDirective

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

public class ReplaceRegExpDirective
extends DirectiveSupport

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

The regular expression syntax is determined by the jostraca.RegExpProvider setting


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
ReplaceRegExpDirective()
           
 
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

ReplaceRegExpDirective

public ReplaceRegExpDirective()
                       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