org.javasteps.engine
Interface StepsIterator


public interface StepsIterator

The StepsIterator interface represents an iterator used to iterate over the process steps.

Version:
1.1
Author:
Ran Kornfeld

Method Summary
 boolean hasNext()
          Checks if a next step exist
 boolean hasPrevious()
          Checks if a previous step exist
 Step next()
          Retrieves the next step and moves the cursor forward
 Step previous()
          Retrieves the previous step and moves the cursor backwards
 

Method Detail

hasNext

boolean hasNext()
Checks if a next step exist


next

Step next()
Retrieves the next step and moves the cursor forward

Throws:
IndexOutOfBoundsException - If no next step is available

hasPrevious

boolean hasPrevious()
Checks if a previous step exist


previous

Step previous()
Retrieves the previous step and moves the cursor backwards

Throws:
IndexOutOfBoundsException - If no previous step is available