tostring fixed for timeseries
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/data-catalogue/grsf-publisher-ws@162812 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
1c10e052f2
commit
3aa3e31309
|
@ -3,6 +3,9 @@
|
||||||
<wb-resource deploy-path="/" source-path="/target/m2e-wtp/web-resources"/>
|
<wb-resource deploy-path="/" source-path="/target/m2e-wtp/web-resources"/>
|
||||||
<wb-resource deploy-path="/" source-path="/src/main/webapp" tag="defaultRootSource"/>
|
<wb-resource deploy-path="/" source-path="/src/main/webapp" tag="defaultRootSource"/>
|
||||||
<wb-resource deploy-path="/WEB-INF/classes" source-path="/src/main/java"/>
|
<wb-resource deploy-path="/WEB-INF/classes" source-path="/src/main/java"/>
|
||||||
|
<dependent-module archiveName="grsf-common-library-1.0.1-SNAPSHOT.jar" deploy-path="/WEB-INF/lib" handle="module:/resource/grsf-common-library/grsf-common-library">
|
||||||
|
<dependency-type>uses</dependency-type>
|
||||||
|
</dependent-module>
|
||||||
<property name="context-root" value="grsf-publisher-ws"/>
|
<property name="context-root" value="grsf-publisher-ws"/>
|
||||||
<property name="java-output-path" value="/grsf-publisher-ws/target/classes"/>
|
<property name="java-output-path" value="/grsf-publisher-ws/target/classes"/>
|
||||||
</wb-module>
|
</wb-module>
|
||||||
|
|
|
@ -148,20 +148,20 @@ public class TimeSeriesBean<T, T1> implements Comparable<TimeSeriesBean<T, T1>>{
|
||||||
databaseSource +
|
databaseSource +
|
||||||
"]";
|
"]";
|
||||||
|
|
||||||
return partial.replaceAll("\\b\\[ - \\b", "[");
|
return partial.replace("[ - ", "[").replace("[]", "").replace(" ", " ");
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// public static void main(String[] args) {
|
// public static void main(String[] args) {
|
||||||
//
|
//
|
||||||
// TimeSeriesBean<String, String> t = new TimeSeriesBean<String, String>();
|
// TimeSeriesBean<String, String> t = new TimeSeriesBean<String, String>();
|
||||||
// t.setYear(1021L);
|
// t.setYear(-1L);
|
||||||
// t.setDatabaseSource("tttt");
|
// t.setDatabaseSource("tttt");
|
||||||
// t.setDataOwner("zzzz");
|
// t.setDataOwner("zzzz");
|
||||||
// t.setUnit("uuuu");
|
// t.setUnit("uuuu");
|
||||||
// t.setValue("vvvv");
|
// t.setValue("vvvv");
|
||||||
// t.setAssessment("2015");
|
// t.setAssessment("2015");
|
||||||
// System.err.println("Result is \n" + t);
|
// System.err.println("Result is \n" + t.toString());
|
||||||
//
|
//
|
||||||
// }
|
// }
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue