org.squashtest.csp.tm.domain.report
Class ReportType

java.lang.Object
  extended by org.squashtest.csp.tm.domain.report.ReportType
Direct Known Subclasses:
ReportTypeProgressFollowUp

public abstract class ReportType
extends Object

A ReportType is a qualifying attribute of a Report. Think of it like an Enum, however we need to extend the number of possible ReportType in the future so we made it a class. Implementing a ReportType : =========================== a ReportType is nothing more than a name. Like for ReportCategory, the used name should be actually a key for a ResourceBundle. Use the setResourceKeyName() method in an init section or in the constructor.

Author:
bsiri

Constructor Summary
ReportType()
           
 
Method Summary
 String getResourceKeyName()
           
protected  void setResourceKeyName(String resourceKeyName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReportType

public ReportType()
Method Detail

getResourceKeyName

public String getResourceKeyName()
Returns:
the key to look for in a MessageSource

setResourceKeyName

protected void setResourceKeyName(String resourceKeyName)
Parameters:
resourceKeyName - the key one assigns to that ReportType.


Copyright © 2010-2012 Squashtest TM, Squashtest.org. All Rights Reserved.