|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--net.sf.bloof.metrics.MetricParameter
Container class that encapsulates the parameters that can be applied to metrics
Field Summary | |
static java.lang.String |
PARAM_DEVELOPER_GROUP
Keys for the default filters for file, developers and time span |
static java.lang.String |
PARAM_FILE_GROUP
Keys for the default filters for file, developers and time span |
static java.lang.String |
PARAM_TIME_SPAN
Keys for the default filters for file, developers and time span |
Constructor Summary | |
MetricParameter(DeveloperGroup aDevelopers,
TimeInterval aTimeInterval,
FileGroup aFileGroup)
Constructs a MetricParameter object |
|
MetricParameter(java.util.HashMap aParams)
Constructs a MetricParameter object from a HashMap of parameters. |
|
MetricParameter(java.lang.String aSqlQuery)
Special constructor for the SQL query metric |
Method Summary | |
void |
addParams(java.lang.Object aKey,
java.lang.Object aValue)
Add a key-value pair to the params list |
DeveloperGroup |
getDevelopers()
Returns the developers. |
FileGroup |
getFileNames()
Returns an Iterator over all filenames specified in this parameter |
java.util.Iterator |
getKeys()
Returns an iterator on the key set of generic key-value parameters |
java.lang.Object |
getParameter(java.lang.String aKey)
Returns the parameter for the specified key. |
java.lang.String |
getSqlQuery()
|
TimeInterval |
getTimeInterval()
Returns the timeInterval. |
boolean |
hasDeveloperFilter()
Checks if the Parameter contains a developer filter |
boolean |
hasFileFilter()
Checks if the Parameter contains a file interval |
boolean |
hasTimeInterval()
Checks if the Parameter contains a time interval |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String PARAM_FILE_GROUP
public static final java.lang.String PARAM_DEVELOPER_GROUP
public static final java.lang.String PARAM_TIME_SPAN
Constructor Detail |
public MetricParameter(DeveloperGroup aDevelopers, TimeInterval aTimeInterval, FileGroup aFileGroup)
aDevelopers
- list of developers; use null if all developers should be includedaTimeInterval
- interval for metric; use null if the whole timespan should be includedaFileGroup
- fileGroups to include; use null if all files should be includedpublic MetricParameter(java.util.HashMap aParams)
aParams
- HashMap containing the parameters of this objectpublic MetricParameter(java.lang.String aSqlQuery)
aSqlQuery
- SQL queryMethod Detail |
public void addParams(java.lang.Object aKey, java.lang.Object aValue)
aKey
- key of the new pairaValue
- value of the new pairpublic DeveloperGroup getDevelopers()
public FileGroup getFileNames()
public java.util.Iterator getKeys()
public java.lang.Object getParameter(java.lang.String aKey)
aKey
- key to use.
public java.lang.String getSqlQuery()
public TimeInterval getTimeInterval()
public boolean hasDeveloperFilter()
public boolean hasFileFilter()
public boolean hasTimeInterval()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |