Use an xml (de)serializer to create Java object instead of parsing them by hand

This commit is contained in:
Laurent Clouet
2019-09-03 20:15:46 +02:00
parent 5ed88a240f
commit 96a1b28bc0
12 changed files with 424 additions and 307 deletions

View File

@@ -0,0 +1,27 @@
package com.sheepit.client.datamodel;
import lombok.Getter;
import lombok.ToString;
import org.simpleframework.xml.Attribute;
import org.simpleframework.xml.Root;
@Root(strict = false, name = "renderer")
@ToString
public class RendererInfos {
@Attribute(name = "md5")
@Getter
private String md5;
@Attribute(name = "commandline")
@Getter
private String commandline;
@Attribute(name = "update_method")
@Getter
private String update_method;
public RendererInfos() {
}
}