|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object abbot.script.Step abbot.script.Sequence
public class Sequence
Script step which groups a sequence of other Steps. The sub-Steps have a fixed order and are executed in the order contained in the sequence. Events sent by sub-Steps are propagated by this one.
Field Summary |
---|
Fields inherited from interface abbot.script.XMLConstants |
---|
TAG_ACTION, TAG_APPLETVIEWER, TAG_ARCHIVE, TAG_ARGS, TAG_ASSERT, TAG_AWT, TAG_AWTTESTSCRIPT, TAG_BORDER_TITLE, TAG_CALL, TAG_CLASS, TAG_CLASSPATH, TAG_CODE, TAG_CODEBASE, TAG_COMMENT, TAG_COMPONENT, TAG_COUNT, TAG_DELEGATE, TAG_DESC, TAG_DOCBASE, TAG_EVENT, TAG_EXPR, TAG_FILENAME, TAG_FIXTURE, TAG_FORKED, TAG_HEIGHT, TAG_HORDER, TAG_ICON, TAG_ID, TAG_INDEX, TAG_INVERT, TAG_INVOKER, TAG_KEYCHAR, TAG_KEYCODE, TAG_KIND, TAG_LABEL, TAG_LAUNCH, TAG_METHOD, TAG_MODIFIERS, TAG_NAME, TAG_PARAMS, TAG_PARENT, TAG_POLL_INTERVAL, TAG_PROPERTY, TAG_ROOT, TAG_SAMPLE, TAG_SCRIPT, TAG_SEQUENCE, TAG_SLOW, TAG_STOP_ON_ERROR, TAG_STOP_ON_FAILURE, TAG_TAG, TAG_TERMINATE, TAG_TEXT, TAG_THREADED, TAG_TIMEOUT, TAG_TITLE, TAG_TRIGGER, TAG_TYPE, TAG_VALUE, TAG_VMARGS, TAG_VORDER, TAG_WAIT, TAG_WEIGHTED, TAG_WIDTH, TAG_WINDOW, TAG_X, TAG_Y |
Constructor Summary | |
---|---|
Sequence(Resolver resolver,
Element el,
Map atts)
Construct a Sequence from XML data. |
|
Sequence(Resolver resolver,
Map atts)
|
|
Sequence(Resolver resolver,
String desc)
|
|
Sequence(Resolver resolver,
String desc,
List steps)
Create an aggregate from a list of existing Step s. |
Method Summary | |
---|---|
protected Element |
addContent(Element el)
Override if the step actually has some contents. |
void |
addStep(int index,
Step step)
Inserts a step at the given index in the sequence. |
void |
addStep(Step step)
Adds a step to the end of the sequence. |
void |
clear()
Remove all stepchildren. |
String |
getDefaultDescription()
Return a reasonable default description for this script step. |
Step |
getStep(int index)
Return the step at the given index in the sequence. |
String |
getUsage()
Returns a string describing the proper XML usage for this class. |
String |
getXMLTag()
Define the XML tag to use for this script step. |
int |
indexOf(Step step)
Returns the index of the given step in the sequence, or -1 if the step is not in the sequence. |
protected void |
parseChild(Element el)
|
protected void |
parseChildren(Element el)
|
void |
removeStep(int index)
Removes the step at the given index in the sequence. |
void |
removeStep(Step step)
Removes the step if it exists in the sequence. |
protected void |
runStep()
Process each event in our list. |
protected void |
runStep(StepRunner runner)
Process each event in our list, using the given runner. |
void |
setStep(int index,
Step step)
Replaces the step at the given index. |
int |
size()
Returns the number of steps contained in this one. |
List |
steps()
Returns a list of the steps contained in this one. |
String |
toEditableString()
Only thing directly editable on a sequence is its description. |
Methods inherited from class abbot.script.Step |
---|
addAttributes, createAttributeMap, createStep, createStep, getAttributes, getDescription, getResolver, parseStepAttributes, resolveClass, resolveTester, run, setDescription, setScriptError, simpleClassName, toString, toXML, toXMLString, usage, usage |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Sequence(Resolver resolver, Element el, Map atts)
Sequence
from XML data.
public Sequence(Resolver resolver, Map atts)
public Sequence(Resolver resolver, String desc)
public Sequence(Resolver resolver, String desc, List steps)
Step
s.
Method Detail |
---|
protected void parseChild(Element el) throws InvalidScriptException
InvalidScriptException
protected void parseChildren(Element el) throws InvalidScriptException
InvalidScriptException
public String getDefaultDescription()
Step
getDefaultDescription
in class Step
public String getXMLTag()
Step
getXMLTag
in class Step
protected Element addContent(Element el)
Step
addContent
in class Step
public String getUsage()
getUsage
in class Step
public String toEditableString()
toEditableString
in interface XMLifiable
toEditableString
in class Step
protected void runStep() throws Throwable
runStep
in class Step
Throwable
protected void runStep(StepRunner runner) throws Throwable
Throwable
public int size()
public void clear()
public List steps()
public int indexOf(Step step)
public Step getStep(int index)
public void addStep(int index, Step step)
public void addStep(Step step)
public void setStep(int index, Step step)
public void removeStep(Step step)
public void removeStep(int index)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |