org.safs.abbot
Class ComponentAgent

java.lang.Object
  |
  +--org.safs.jvmagent.ObjectAgent
        |
        +--org.safs.jvmagent.ComponentAgent
              |
              +--org.safs.abbot.ComponentAgent
All Implemented Interfaces:
AlternateAncestorUser, LocalAgent, LocalAgentFactoryUser

public class ComponentAgent
extends ComponentAgent

Since:
Mar 30, 2005

Field Summary
protected  abbot.tester.ComponentTester componenttester
           
 
Fields inherited from class org.safs.jvmagent.ComponentAgent
COMPONENT_PROPERTIES, objectType
 
Fields inherited from class org.safs.jvmagent.ObjectAgent
alternateAncestor, alternateAncestorClassname, factory, OBJECT_PROPERTIES
 
Constructor Summary
ComponentAgent()
          Constructor for ComponentAgent.
 
Method Summary
 void process(java.lang.Object object, TestRecordData testRecordData)
          Process the action provided in the testRecordData.
 
Methods inherited from class org.safs.jvmagent.ComponentAgent
getProperty, getPropertyNames, validateActionCommand, validateComponent
 
Methods inherited from class org.safs.jvmagent.ObjectAgent
getAlternateAncestor, getAlternateAncestorClassname, getAncestorAgent, getCaption, getChildCount, getChildren, getClassName, getID, getLevel, getLocalAgentFactory, getMatchingPathObject, getName, getStringData, getSuperClassNames, getText, isMatchingPath, isShowing, isValid, processAncestor, setAlternateAncestor, setAlternateAncestorClassname, setLocalAgentFactory
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

componenttester

protected abbot.tester.ComponentTester componenttester
Constructor Detail

ComponentAgent

public ComponentAgent()
Constructor for ComponentAgent.
Method Detail

process

public void process(java.lang.Object object,
                    TestRecordData testRecordData)
Process the action provided in the testRecordData. This class is closely linked with the server-side org.safs.abbot.CFComponent class. All action constants are generally stored there and referenced here.

An Agent may throw various types of Agent-specific RuntimeExceptions depending upon failure modes.

Overrides:
process in class ObjectAgent
Parameters:
testRecordData - provides all the information needed by the Agent to perform the action.
Throws:
SAFSInvalidActionRuntimeException - if action is null or 0-length
SAFSInvalidComponentRuntimeException - if object is not a Component.
SAFSActionErrorRuntimeException( - x.getMessage(), x) if an abbot exception occurs.
SAFSMissingActionArgumentRuntimeException( - "null", x) if a required action arg is missing.
See Also:
ComponentAgent.validateActionCommand(TestRecordData), ComponentAgent.validateComponent(Object), CFComponent