Use an xml (de)serializer to create Java object instead of parsing them by hand
This commit is contained in:
18
src/com/sheepit/client/datamodel/JobValidation.java
Normal file
18
src/com/sheepit/client/datamodel/JobValidation.java
Normal file
@@ -0,0 +1,18 @@
|
||||
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 = "jobvalidate")
|
||||
@ToString
|
||||
public class JobValidation {
|
||||
|
||||
@Attribute
|
||||
@Getter
|
||||
private int status;
|
||||
|
||||
public JobValidation() {
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user