ca.intelliware.amakihi.actor
Class Script

java.lang.Object
  |
  +--ca.intelliware.amakihi.actor.Script

public class Script
extends java.lang.Object

An object representation of an integration test script.

Version:
$Revision: 1.6 $
Author:
Intelliware Development

Inner Class Summary
 class Script.Action
          An action within a script.
 class Script.ActorDefinition
           
 class Script.ResourceDefinition
          deprecated
 
Field Summary
static java.lang.String XSD_LOCATION
           
static java.lang.String XSD_NAMESPACE
           
 
Constructor Summary
protected Script(org.w3c.dom.Element script)
           
 
Method Summary
static Script[] createScripts(org.w3c.dom.Document document)
          Create an array of Scripts from an XML document.
 Script.Action[] getActions()
          Get all actions within a script.
 Script.ActorDefinition getActorDefinition(java.lang.String name)
           
 java.lang.String getDescription()
           
 java.lang.String getStoryId()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

XSD_NAMESPACE

public static final java.lang.String XSD_NAMESPACE

XSD_LOCATION

public static final java.lang.String XSD_LOCATION
Constructor Detail

Script

protected Script(org.w3c.dom.Element script)
Method Detail

createScripts

public static Script[] createScripts(org.w3c.dom.Document document)

Create an array of Scripts from an XML document. This factory method scans the XML document for <script> tags.

Parameters:
Document - the input integration test XML document.
Returns:
an array of Script objects.

getActions

public Script.Action[] getActions()

Get all actions within a script.

Returns:
an array of Actions.

getDescription

public java.lang.String getDescription()

getStoryId

public java.lang.String getStoryId()

getActorDefinition

public Script.ActorDefinition getActorDefinition(java.lang.String name)


Copyright 2002 Intelliware Development. All Rights Reserved.