com.goldenhammer.test
Class TestProfile

java.lang.Object
  extended bycom.goldenhammer.test.TestProfile

public class TestProfile
extends java.lang.Object

This class represents a test profile for a modality.


Constructor Summary
TestProfile()
          Constructor
TestProfile(java.lang.String testProfileXML)
          Creates a new TestProfile from the specified XML file.
 
Method Summary
 void addSender(Modality modality)
          Add a sender to this test profile
 java.lang.String getProfileName()
           
 java.util.List getSenders()
           
 void save(java.lang.String filename)
          Saves this modality to an XML file.
 void setProfileName(java.lang.String profileName)
           
 void setSenders(java.util.ArrayList senders)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TestProfile

public TestProfile(java.lang.String testProfileXML)
            throws java.io.FileNotFoundException,
                   java.io.IOException,
                   ModalityException,
                   TestProfileException
Creates a new TestProfile from the specified XML file.

Parameters:
testProfileXML - The XML file to use for this instance of TestProfile.
Throws:
java.io.IOException - thrown if there is a problem with i/o
java.io.FileNotFoundException - thrown if the file is not found
ModalityException - thrown if there is a problem parsing the xml document
TestProfileException - thrown if there is a error with the xml document

TestProfile

public TestProfile()
Constructor

Method Detail

getProfileName

public java.lang.String getProfileName()
Returns:
Returns the profileName.

setProfileName

public void setProfileName(java.lang.String profileName)
Parameters:
profileName - The profileName to set.

getSenders

public java.util.List getSenders()
Returns:
Returns the senders.

setSenders

public void setSenders(java.util.ArrayList senders)
Parameters:
senders - The senders to set.

save

public void save(java.lang.String filename)
          throws java.io.IOException
Saves this modality to an XML file.

Parameters:
filename - The desired name of the XML file.
Throws:
java.io.IOException

addSender

public void addSender(Modality modality)
Add a sender to this test profile

Parameters:
modality - the sender to add