autohit.call.modules
Class SimpleScannerModule

java.lang.Object
  extended byautohit.call.modules.Module
      extended byautohit.call.modules.SimpleScannerModule

public class SimpleScannerModule
extends Module

Simple scanner module. start(target) start a scan of the target string add(name, pattern) add a pattern to the pattern cache. reset() reset cursor to start find(name) return size of pattern, if found. zero if not found. cursor left at beginning. Cursor does not move if match fails. seek(s) return "true" if found, otherwise "false". seek an exact string. cursor left at beginning seekinsensitive(s) return "true" if found, otherwise "false". seek a string, without regard to case. cursor left at beginning substring(start, end-1) return string. exception if error. set(int spot) move cursor to a spot get() get the cursor position move(add) move the position forward by add spots

Version:
1.0 Version History EPG - Initial - 3Jul03
Author:
Erich P. Gatejen

Field Summary
 
Fields inherited from class autohit.call.modules.Module
myName, visCore, visLogger, visSC, visUniverse
 
Constructor Summary
SimpleScannerModule()
          Constructor
 
Method Summary
 java.lang.Object execute_chain(java.lang.String name)
          Execute a named method.
protected  void free_chain()
          Allow the subclass a chance to cleanup on free.
protected  java.lang.String instantiation_chain()
          Allow the subclass a chance to initialize.
 
Methods inherited from class autohit.call.modules.Module
buildException, buildException, debug, desired, desiredType, error, errorparam, execute, fault, fault, free, getParam, getPersist, instance, isDebugging, log, optional, optionalType, required, requiredType, warning
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleScannerModule

public SimpleScannerModule()
Constructor

Method Detail

execute_chain

public java.lang.Object execute_chain(java.lang.String name)
                               throws CallException
Execute a named method. You must implement this method. You can call any of the helpers for data and services. The returned object better be a string (for now).

Specified by:
execute_chain in class Module
Parameters:
name - name of the method
Throws:
CallException
See Also:
NOPair

instantiation_chain

protected java.lang.String instantiation_chain()
                                        throws CallException
Allow the subclass a chance to initialize. At a minium, an implementor should create an empty method.

Specified by:
instantiation_chain in class Module
Returns:
the name
Throws:
CallException

free_chain

protected void free_chain()
                   throws CallException
Allow the subclass a chance to cleanup on free. At a minium, an implementor should create an empty method.

Specified by:
free_chain in class Module
Throws:
CallException


Test.