org.jostraca.directive
Class ReplaceDirective
java.lang.Object
org.jostraca.directive.DirectiveSupport
org.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
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
ReplaceDirective
public ReplaceDirective()
throws DirectiveException
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