oss.net.pstream.rewrite
Class RewriteRule

java.lang.Object
  |
  +--oss.net.pstream.rewrite.RewriteStep
        |
        +--oss.net.pstream.rewrite.RewriteRule

public class RewriteRule
extends RewriteStep

Title:

Description:

Copyright: Copyright (c) 2002

Company:

Version:
1.0
Author:
unascribed

Field Summary
protected  boolean _last_rule
           
static char LAST_RULE
           
 
Fields inherited from class oss.net.pstream.rewrite.RewriteStep
REWRITE_CONDITION, REWRITE_RULE
 
Constructor Summary
RewriteRule(java.lang.String Name, java.lang.String Flags, boolean Debug)
           
 
Method Summary
 boolean getFlag(char Flag)
           
 org.apache.oro.text.regex.MatchResult getLastResult()
           
 java.lang.String getName()
           
 int getType()
           
 RewriteVariableHandler getVariableHandler()
           
 void init(RewriteCondition PreviousCondition, RewriteRule PreviousRule, PortletStreamParameters Params)
           
 boolean isPostFetch()
           
 int numReplaced()
           
 int replace(RewriteCondition PreviousCondition, RewriteRule PreviousRule, PortletStreamParameters Params)
           
 void reset()
           
 void setFlag(char Flag)
           
 void setFlags(java.lang.String FlagTokens)
           
 void setPatternString(java.lang.String PatternString)
           
 void setSubstitutionString(java.lang.String SubString)
           
 void setTarget(RewriteVariableHandler Target)
           
 boolean wasLastRule()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LAST_RULE

public static final char LAST_RULE
See Also:
Constant Field Values

_last_rule

protected boolean _last_rule
Constructor Detail

RewriteRule

public RewriteRule(java.lang.String Name,
                   java.lang.String Flags,
                   boolean Debug)
            throws RewriteException
Method Detail

getLastResult

public org.apache.oro.text.regex.MatchResult getLastResult()
                                                    throws RewriteException
Specified by:
getLastResult in class RewriteStep
RewriteException

isPostFetch

public boolean isPostFetch()
Specified by:
isPostFetch in class RewriteStep

setSubstitutionString

public void setSubstitutionString(java.lang.String SubString)
                           throws RewriteException
RewriteException

setPatternString

public void setPatternString(java.lang.String PatternString)
                      throws RewriteException
Specified by:
setPatternString in class RewriteStep
RewriteException

init

public void init(RewriteCondition PreviousCondition,
                 RewriteRule PreviousRule,
                 PortletStreamParameters Params)
          throws RewriteException
Specified by:
init in class RewriteStep
RewriteException

reset

public void reset()
Specified by:
reset in class RewriteStep

replace

public int replace(RewriteCondition PreviousCondition,
                   RewriteRule PreviousRule,
                   PortletStreamParameters Params)
            throws RewriteException
RewriteException

getVariableHandler

public RewriteVariableHandler getVariableHandler()
Specified by:
getVariableHandler in class RewriteStep

numReplaced

public int numReplaced()

getType

public int getType()
Specified by:
getType in class RewriteStep

getName

public java.lang.String getName()
Specified by:
getName in class RewriteStep

getFlag

public boolean getFlag(char Flag)
                throws RewriteException
RewriteException

setFlag

public void setFlag(char Flag)
             throws RewriteException
RewriteException

setFlags

public void setFlags(java.lang.String FlagTokens)
              throws RewriteException
RewriteException

wasLastRule

public boolean wasLastRule()
                    throws RewriteException
RewriteException

setTarget

public void setTarget(RewriteVariableHandler Target)
Specified by:
setTarget in class RewriteStep
See Also:
RewriteStep.setTarget(RewriteVariableHandler)


Copyright © 2000 Dummy Corp. All Rights Reserved.