net.sf.jameleon.bean
Class Session

java.lang.Object
  extended by net.sf.jameleon.bean.Session
All Implemented Interfaces:
Serializable, XMLable

public class Session
extends Object
implements XMLable

This class represents a Session in a TestCase. This is currently used only for test case documentation generation A Session consists of:

See Also:
Serialized Form

Field Summary
protected  String application
          The application this session is opened for
protected  List functionalPoints
          A list of FunctionalPoints
protected  String organization
          The organization this session will test for if any
 
Constructor Summary
Session()
          Default constructor only used to initialize variables
Session(String application, String organization)
          Constructor to set the following parameters
 
Method Summary
 void addFunctionalPoint(FunctionalPoint fp)
          Adds a FunctionalPoint to the list of FunctionalPoints under this Session
 String getApplication()
           
 List getFunctionalPoints()
           
 String getOrganization()
           
 void setApplication(String application)
          Sets the application this session is opened for
 void setOrganization(String organization)
          Sets the organization this session will test for if any
 String toXML()
          Implement this method the same way the toString method would be implemented, except the object's information should be in a valid XML format.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

application

protected String application
The application this session is opened for


organization

protected String organization
The organization this session will test for if any


functionalPoints

protected List functionalPoints
A list of FunctionalPoints

Constructor Detail

Session

public Session()
Default constructor only used to initialize variables


Session

public Session(String application,
               String organization)
Constructor to set the following parameters

Parameters:
application - - The application this session is opened for
organization - - The organization this session will test for if any
Method Detail

getFunctionalPoints

public List getFunctionalPoints()
Returns:
a list of FunctionalPoints contained in this Session

addFunctionalPoint

public void addFunctionalPoint(FunctionalPoint fp)
Adds a FunctionalPoint to the list of FunctionalPoints under this Session

Parameters:
fp - - A FunctionalPoint under this Session

getApplication

public String getApplication()
Returns:
The application this session is opened for

setApplication

public void setApplication(String application)
Sets the application this session is opened for

Parameters:
application - - the application this session is opened for

getOrganization

public String getOrganization()
Returns:
The organization this session will test for if any

setOrganization

public void setOrganization(String organization)
Sets the organization this session will test for if any

Parameters:
organization - - the organization this session will test for if any

toXML

public String toXML()
Description copied from interface: XMLable
Implement this method the same way the toString method would be implemented, except the object's information should be in a valid XML format.

Specified by:
toXML in interface XMLable


Copyright © 2003-2008 Christian Hargraves. All Rights Reserved.