|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.mavenhist.persistency.Metric
net.sf.mavenhist.persistency.StringMetric
public class StringMetric
This class allows to set the values only with String
s. This is needed to wrap the
beans with jelly.
Constructor Summary | |
---|---|
StringMetric()
Default constructor for creation as bean. |
|
StringMetric(String metricName,
String metricValue,
String date,
String groupId,
String artifactName,
String scope,
String buildNumber)
Creates a new metric. |
Method Summary | |
---|---|
void |
setDatePattern(String pattern)
Sets the date pattern to parse the date string from the setDateString -method. |
void |
setDateString(String date)
Sets the date and parses it with the pattern "yyyy-MM-dd". |
void |
setValue(String s)
Sets the metric value by converting the given string argument to a big decimal, calls Metric.setMetricValue(BigDecimal) . |
Methods inherited from class net.sf.mavenhist.persistency.Metric |
---|
getArtifactName, getBuildNumber, getDate, getGroupId, getMetricName, getMetricValue, getScope, setArtifactName, setBuildNumber, setDate, setGroupId, setMetricName, setMetricValue, setScope, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public StringMetric()
public StringMetric(String metricName, String metricValue, String date, String groupId, String artifactName, String scope, String buildNumber)
metricName
- name.metricValue
- value as String
.date
- date as String
.groupId
- group idartifactName
- artifcat namescope
- scopebuildNumber
- build numberMethod Detail |
---|
public void setDateString(String date)
date
- to setpublic void setValue(String s)
Metric.setMetricValue(BigDecimal)
. If the string value
is not parseable it will simply log it and set null
as
value.
s
- number to be set as String
public void setDatePattern(String pattern)
setDateString
-method.
pattern
- patterns.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |