[New] Refactored XML import and export model

- added allowInclude for recursive parsing of xml importing
- ModelStatistics is now JAXB capable
- added handling of absolute paths
This commit is contained in:
Robert von Burg 2015-02-28 20:44:26 +01:00
parent f8e0b63e33
commit aa2f55fa53
1 changed files with 36 additions and 0 deletions

View File

@ -0,0 +1,36 @@
package li.strolch.service;
import li.strolch.model.ModelStatistics;
import li.strolch.service.api.ServiceResult;
import li.strolch.service.api.ServiceResultState;
public class XmlImportModelResult extends ServiceResult {
private static final long serialVersionUID = 1L;
private ModelStatistics statistics;
public XmlImportModelResult(ModelStatistics statistics) {
super(ServiceResultState.SUCCESS);
this.statistics = statistics;
}
public XmlImportModelResult() {
// no arg constructor
}
public XmlImportModelResult(ServiceResultState state, String message, Throwable throwable) {
super(state, message, throwable);
}
public XmlImportModelResult(ServiceResultState state, String message) {
super(state, message);
}
public XmlImportModelResult(ServiceResultState state) {
super(state);
}
public ModelStatistics getStatistics() {
return statistics;
}
}