org.pietschy.wizard.models
Class SimplePath

java.lang.Object
  extended by org.pietschy.wizard.models.AbstractPath
      extended by org.pietschy.wizard.models.SimplePath
All Implemented Interfaces:
Path
Direct Known Subclasses:
UpdatePath

public class SimplePath
extends AbstractPath

A SimplePath represents a sequence of wizard steps whose next path is determined at compile time. That is, SimplePaths can't branch.

See Also:
setNextPath(org.pietschy.wizard.models.Path), AbstractPath.addStep(org.pietschy.wizard.WizardStep)

Constructor Summary
SimplePath()
           
SimplePath(WizardStep step)
          Creates a new SimplePath that is initialized with the specified step.
 
Method Summary
 void acceptVisitor(PathVisitor visitor)
           
 Path getNextPath()
           
protected  Path getNextPath(MultiPathModel model)
          Gets the path that will follow this one.
 void setNextPath(Path nextPath)
           
 void visitNextPath(PathVisitor visitor)
           
 
Methods inherited from class org.pietschy.wizard.models.AbstractPath
addStep, contains, firstStep, getSteps, isFirstStep, isLastStep, lastStep, nextStep, previousStep
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimplePath

public SimplePath()

SimplePath

public SimplePath(WizardStep step)
Creates a new SimplePath that is initialized with the specified step.

Parameters:
step - the first step of the path.
Method Detail

getNextPath

protected Path getNextPath(MultiPathModel model)
Description copied from class: AbstractPath
Gets the path that will follow this one.

Specified by:
getNextPath in class AbstractPath
Returns:
the next path.

getNextPath

public Path getNextPath()

setNextPath

public void setNextPath(Path nextPath)

acceptVisitor

public void acceptVisitor(PathVisitor visitor)
Specified by:
acceptVisitor in interface Path
Specified by:
acceptVisitor in class AbstractPath

visitNextPath

public void visitNextPath(PathVisitor visitor)