objectgen.usecase
Class StepBuilder

java.lang.Object
  extended byobjectgen.usecase.StepBuilder

public class StepBuilder
extends java.lang.Object

This class builds a Step object from a Node object It is called from UseCaseXML, due that class does not return any XML element.


Field Summary
protected  java.util.Hashtable mainStepParticipants
           
 
Constructor Summary
StepBuilder()
          Creates a new instance of StepBuilder
 
Method Summary
 IStep builAlternativeStep(org.w3c.dom.Node n)
          Builds and alternative or erroneous step from a XML node Add the information of an alternative node 1.
 IStep builMainStep(org.w3c.dom.Node n)
          Builds a main step from a XML node
static java.lang.String GetParentStep(java.lang.String id)
          Returns the parent step of the step Id must follow this pattern: X.Y..... where X is the Id of the parent step.
 ParticipantSet getParticipants()
          Get participant set
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

mainStepParticipants

protected java.util.Hashtable mainStepParticipants
Constructor Detail

StepBuilder

public StepBuilder()
Creates a new instance of StepBuilder

Method Detail

builMainStep

public IStep builMainStep(org.w3c.dom.Node n)
Builds a main step from a XML node


builAlternativeStep

public IStep builAlternativeStep(org.w3c.dom.Node n)
Builds and alternative or erroneous step from a XML node Add the information of an alternative node 1. Condition 2. Action 3. Result, if any.


getParticipants

public ParticipantSet getParticipants()
Get participant set


GetParentStep

public static java.lang.String GetParentStep(java.lang.String id)
Returns the parent step of the step Id must follow this pattern: X.Y..... where X is the Id of the parent step.

Returns:
null if id does not follow the pattern.