autohit.call.modules
Class TextWriterModule

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

public class TextWriterModule
extends Module

Text writer module. It will write strings and lines to a universe object or a buffer.

startbuffer(buffer) start a write to a buffer. Be sure to pass the buffer by reference, rather than value.
startuni(objname) start a write to a universe object
write(string) write a string
writeln(string) write a line terminated string
done() close the write read (do this for either type, please)

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

Field Summary
 
Fields inherited from class autohit.call.modules.Module
myName, visCore, visLogger, visSC, visUniverse
 
Constructor Summary
TextWriterModule()
          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

TextWriterModule

public TextWriterModule()
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.