br.com.oncast.dev.lobo.eval.bean
Class ProfileCase

java.lang.Object
  extended by br.com.oncast.dev.lobo.eval.bean.ProfileCase

public class ProfileCase
extends java.lang.Object

Sub-tree of the profile reporting tree specific to a profile case.
A profile case is mapped into a java class, called ProfileCase Class. ProfileCase Classes have at least one of its methods annotated with the Profile annotation.


Constructor Summary
ProfileCase(java.lang.String caseClass)
          Creates a new instance of ProfileCase.
 
Method Summary
 void addScenario(ProfileScenario scenario)
          Adds a scenario to the ProfileCase.
 java.lang.String getCaseClass()
           
 ProfileScenario getScenario(java.lang.String scenarioMethod)
          Returns a previously added scenario given its scenarioMethod.
 java.util.Collection<ProfileScenario> getScenarios()
          Returns all the scenarios in the case.
It is guaranteed that the returned collection of ProfileScenarios will iterate over them in the insertion order.
 void removeScenario(ProfileScenario scenario)
          Removes a scenario from the case.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProfileCase

public ProfileCase(java.lang.String caseClass)
Creates a new instance of ProfileCase.

Parameters:
caseClass - the name of the class coding the profile case.
Method Detail

getCaseClass

public java.lang.String getCaseClass()
Returns:
the caseClass.

addScenario

public void addScenario(ProfileScenario scenario)
Adds a scenario to the ProfileCase.

Parameters:
scenario - the scenario to be added.

getScenario

public ProfileScenario getScenario(java.lang.String scenarioMethod)
Returns a previously added scenario given its scenarioMethod.

Parameters:
scenarioMethod - the scenario method name.
Returns:
the scenario for the scenarioMethod or null if it could not be found.

getScenarios

public java.util.Collection<ProfileScenario> getScenarios()
Returns all the scenarios in the case.
It is guaranteed that the returned collection of ProfileScenarios will iterate over them in the insertion order.

Returns:
all the scenarios in the case.

removeScenario

public void removeScenario(ProfileScenario scenario)
Removes a scenario from the case.

Parameters:
scenario - the scenario to be removed.