junitx.ddtunit.data.processing
Class ActionStack

java.lang.Object
  extended by junitx.ddtunit.data.processing.ActionStack
All Implemented Interfaces:
ILinkChangeListener

public class ActionStack
extends Object
implements ILinkChangeListener

Stack containing all ActionBases generated during parsing xml structure.

Author:
jg

Field Summary
protected  IAction first
           
protected  IAction last
           
 
Constructor Summary
ActionStack()
           
 
Method Summary
 boolean isEmpty()
          check if record stack is empty.
 IAction peek()
          Retrieve last element on stack without deleting it from stack
 IAction pop()
          Retrieve last element on stack and delete it on stack.
 IAction process()
           
 void push(IAction action)
          Push new element on stack
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

first

protected IAction first

last

protected IAction last
Constructor Detail

ActionStack

public ActionStack()
Method Detail

push

public void push(IAction action)
Push new element on stack

Parameters:
action - to add

pop

public IAction pop()
Retrieve last element on stack and delete it on stack.

Specified by:
pop in interface ILinkChangeListener
Returns:
last element on stack

peek

public IAction peek()
Retrieve last element on stack without deleting it from stack

Returns:
last element of stack

isEmpty

public boolean isEmpty()
check if record stack is empty.

Returns:
true if no elements on stack

process

public IAction process()


Copyright © 2004-2011. All Rights Reserved.