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:
Costantino Perciante 2018-01-31 15:22:28 +00:00
parent 1c10e052f2
commit 3aa3e31309
2 changed files with 16 additions and 13 deletions

View File

@ -3,6 +3,9 @@
<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="/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="java-output-path" value="/grsf-publisher-ws/target/classes"/>
</wb-module>

View File

@ -148,21 +148,21 @@ public class TimeSeriesBean<T, T1> implements Comparable<TimeSeriesBean<T, T1>>{
databaseSource +
"]";
return partial.replaceAll("\\b\\[ - \\b", "[");
return partial.replace("[ - ", "[").replace("[]", "").replace("&nbsp;", " ");
}
// public static void main(String[] args) {
//
// TimeSeriesBean<String, String> t = new TimeSeriesBean<String, String>();
// t.setYear(1021L);
// t.setDatabaseSource("tttt");
// t.setDataOwner("zzzz");
// t.setUnit("uuuu");
// t.setValue("vvvv");
// t.setAssessment("2015");
// System.err.println("Result is \n" + t);
//
// }
// public static void main(String[] args) {
//
// TimeSeriesBean<String, String> t = new TimeSeriesBean<String, String>();
// t.setYear(-1L);
// t.setDatabaseSource("tttt");
// t.setDataOwner("zzzz");
// t.setUnit("uuuu");
// t.setValue("vvvv");
// t.setAssessment("2015");
// System.err.println("Result is \n" + t.toString());
//
// }
}