objectgen.usecase
Class UseCaseXML

java.lang.Object
  extended byobjectgen.usecase.UseCaseXML

public class UseCaseXML
extends java.lang.Object


Field Summary
protected  StepBuilder stepBuilder
           
protected  org.w3c.dom.Document useCaseDocument
           
 
Constructor Summary
UseCaseXML()
          Creates a new instance of UseCaseXML
 
Method Summary
 java.lang.String getUCDescription()
           
 java.util.Iterator iteratorInvSequence(IStep step)
          Returns an iterator to traverse all the inv steps in the alternative sequence of the use case of a given step.
 java.util.Iterator iteratorMainSequence()
          Returns an iterator to traverse all the steps in the main sequence of the use case
 java.util.Iterator iteratorPreSequence(IStep step)
          Returns an iterator to traverse all the pre steps in the alternative sequence of the use case of a given step.
 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 purpouse only
 
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
Constructor Detail

UseCaseXML

public UseCaseXML()
Creates a new instance of UseCaseXML

Method Detail

load

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

Throws:
UseCaseXMLException

getUCDescription

public java.lang.String getUCDescription()

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(IStep step)
Returns an iterator to traverse all the pre steps in the alternative sequence of the use case of a given step. For example, is step is the thrid step, this iterrator traverse all the pre alternatives of the step 3.


iteratorInvSequence

public java.util.Iterator iteratorInvSequence(IStep step)
Returns an iterator to traverse all the inv steps in the alternative sequence of the use case of a given step.


toString

public java.lang.String toString()
Testing purpouse only