com.sri.emo.wizard.selection.management
Class StepParameterParser

java.lang.Object
  extended by com.sri.emo.wizard.selection.management.StepParameterParser

public class StepParameterParser
extends Object

This object takes a a set of strings equaling parameters and constructs and validates a wizard step object based on those parameters.

Author:
Michael Rimov

Constructor Summary
StepParameterParser(ExpressoRequest controllerRequest)
          Constructor that takes a map of parameters usually as defined by the Expresso's ExpressoRequest object.
 
Method Summary
 WizStep parseAndValidate(ErrorCollection ec)
          Similar to parseStep, but it validates as well.
 WizStep parseStep(ErrorCollection ec)
          Returns a wizard step instance based on the parameters set in the constructor.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StepParameterParser

public StepParameterParser(ExpressoRequest controllerRequest)
Constructor that takes a map of parameters usually as defined by the Expresso's ExpressoRequest object.

Parameters:
controllerRequest - ExpressoRequest
To Do:
refactor this to use a parameter map instead.
Method Detail

parseAndValidate

public WizStep parseAndValidate(ErrorCollection ec)
                         throws DBException
Similar to parseStep, but it validates as well. Useful for once workflow is complete and you need to save to database.

Parameters:
ec - ErrorCollection [in/out] The error collection is populated with any errors that occur while parsing the steps.
Returns:
WizStep the constructed wizard step.
Throws:
DBException - upon error constructing or setting fields of the wizard step.

parseStep

public WizStep parseStep(ErrorCollection ec)
                  throws DBException
Returns a wizard step instance based on the parameters set in the constructor.

Parameters:
ec - ErrorCollection [in/out] The error collection is populated with any errors that occur while parsing the steps.
Returns:
WizStep the constructed wizard step.
Throws:
DBException - upon error constructing or setting fields of the wizard step.


Copyright © 2004-2006 Codeguild, Inc.. All Rights Reserved.