webtester.packages.common
Class timeRegexHandler

java.lang.Object
  |
  +--webtester.packages.common.timeRegexHandler

public class timeRegexHandler
extends java.lang.Object

Used for time related variable substitution on-the-fly.

Author:
Aaron DeLong

Field Summary
private static int iIntElement
          The element index to use when retrieving integer values from regexes.
 
Constructor Summary
timeRegexHandler()
           
 
Method Summary
static boolean needToModify(java.lang.String sStr)
          Determine if this string requires variable substitution.
static java.lang.String timeSubstitution(java.lang.String sStr)
          Substitute "system" variables with the current time values and return the modified value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

iIntElement

private static final int iIntElement
The element index to use when retrieving integer values from regexes.

See Also:
Constant Field Values
Constructor Detail

timeRegexHandler

public timeRegexHandler()
Method Detail

timeSubstitution

public static java.lang.String timeSubstitution(java.lang.String sStr)
Substitute "system" variables with the current time values and return the modified value.

Parameters:
sStr - the values to search and modify
Returns:
a String which contains the modified values

needToModify

public static boolean needToModify(java.lang.String sStr)
Determine if this string requires variable substitution.

Parameters:
sStr - the String which needs to be examined
Returns:
FALSE if the String does not require modification