net.sf.mavenhist.persistency
Class Metric

java.lang.Object
  extended by net.sf.mavenhist.persistency.Metric
Direct Known Subclasses:
StringMetric

public class Metric
extends Object

Metric defines a single metric instance.


Constructor Summary
Metric()
          Default no args constructor.
Metric(String metricName, BigDecimal metricValue, Date date, String groupId, String artifactName, String scope, String buildNumber)
          Creates a new metric.
 
Method Summary
 String getArtifactName()
          Gets artifactName.
 String getBuildNumber()
          Gets buildNumber.
 Date getDate()
          Gets date.
 String getGroupId()
          Gets groupId.
 String getMetricName()
          Gets metricName.
 BigDecimal getMetricValue()
          Gets metricValue.
 String getScope()
          Gets scope.
 void setArtifactName(String artifactName)
          Sets artifactName.
 void setBuildNumber(String buildNumber)
          Sets buildNumber.
 void setDate(Date date)
          Sets date.
 void setGroupId(String groupId)
          Sets groupId.
 void setMetricName(String metricName)
          Sets metricName.
 void setMetricValue(BigDecimal metricValue)
          Sets metricValue.
 void setScope(String scope)
          Sets scope.
 String toString()
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Metric

public Metric()
Default no args constructor.


Metric

public Metric(String metricName,
              BigDecimal metricValue,
              Date date,
              String groupId,
              String artifactName,
              String scope,
              String buildNumber)
Creates a new metric.

Parameters:
metricName - name
metricValue - value
date - date
groupId - group id
artifactName - artifcat name
scope - scope
buildNumber - build number
Method Detail

getArtifactName

public String getArtifactName()
Gets artifactName.

Returns:
artifactName

setArtifactName

public void setArtifactName(String artifactName)
Sets artifactName.

Parameters:
artifactName - artifactName to set

getBuildNumber

public String getBuildNumber()
Gets buildNumber.

Returns:
buildNumber

setBuildNumber

public void setBuildNumber(String buildNumber)
Sets buildNumber.

Parameters:
buildNumber - buildNumber to set

getDate

public Date getDate()
Gets date.

Returns:
date

setDate

public void setDate(Date date)
Sets date.

Parameters:
date - date to set

getGroupId

public String getGroupId()
Gets groupId.

Returns:
groupId

setGroupId

public void setGroupId(String groupId)
Sets groupId.

Parameters:
groupId - groupId to set

getMetricName

public String getMetricName()
Gets metricName.

Returns:
metricName

setMetricName

public void setMetricName(String metricName)
Sets metricName.

Parameters:
metricName - metricName to set

getMetricValue

public BigDecimal getMetricValue()
Gets metricValue.

Returns:
metricValue

setMetricValue

public void setMetricValue(BigDecimal metricValue)
Sets metricValue.

Parameters:
metricValue - metricValue to set

getScope

public String getScope()
Gets scope.

Returns:
scope

setScope

public void setScope(String scope)
Sets scope.

Parameters:
scope - scope to set

toString

public String toString()

Overrides:
toString in class Object


Copyright © 2009. All Rights Reserved.