objectgen.usecase
Class UseCaseXML

java.lang.Object
  extended byobjectgen.usecase.UseCaseXML

public class UseCaseXML
extends java.lang.Object


Field Summary
protected  org.w3c.dom.NodeList alternativeSequence
          Stores the list of nodes in the alternative sequence (tags with "alstep" name)
protected  int alternativeSequenceIndex
           
protected  StepBuilder stepBuilder
           
protected  org.w3c.dom.Document useCaseDocument
           
 
Constructor Summary
UseCaseXML()
          Creates a new instance of UseCaseXML
 
Method Summary
 java.util.Iterator iteratorMainSequence()
          Returns an iterator to traverse all the steps in the main sequence of the use case
 java.util.Iterator iteratorPreSequence()
          Returns an iterator to traverse all the pre steps in the main sequence of the use case
 void load(java.io.File f)
          Loads a XML file with the definition of a use case This method assumes that file exists.
 java.lang.String toString()
          Testing
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

useCaseDocument

protected org.w3c.dom.Document useCaseDocument

stepBuilder

protected StepBuilder stepBuilder

alternativeSequence

protected org.w3c.dom.NodeList alternativeSequence
Stores the list of nodes in the alternative sequence (tags with "alstep" name)


alternativeSequenceIndex

protected int alternativeSequenceIndex
Constructor Detail

UseCaseXML

public UseCaseXML()
Creates a new instance of UseCaseXML

Method Detail

load

public void load(java.io.File f)
Loads a XML file with the definition of a use case This method assumes that file exists.


iteratorMainSequence

public java.util.Iterator iteratorMainSequence()
Returns an iterator to traverse all the steps in the main sequence of the use case


iteratorPreSequence

public java.util.Iterator iteratorPreSequence()
Returns an iterator to traverse all the pre steps in the main sequence of the use case


toString

public java.lang.String toString()
Testing