mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-08 02:24:18 +00:00
Minor tweak to DSO to fix it to serialize to xml
This commit is contained in:
@@ -23,23 +23,18 @@ import java.util.List;
|
|||||||
*/
|
*/
|
||||||
@XmlRootElement(name = "dspaceobject")
|
@XmlRootElement(name = "dspaceobject")
|
||||||
public class DSpaceObject {
|
public class DSpaceObject {
|
||||||
@XmlElement()
|
private Integer id;
|
||||||
public Integer id;
|
|
||||||
|
|
||||||
@XmlElement()
|
private String name;
|
||||||
public String name;
|
|
||||||
|
|
||||||
@XmlElement()
|
private String handle;
|
||||||
public String handle;
|
|
||||||
|
|
||||||
@XmlElement()
|
private String type;
|
||||||
public String type;
|
|
||||||
|
|
||||||
@XmlElement()
|
@XmlElement(name = "link", required = true)
|
||||||
public String link;
|
private String link;
|
||||||
|
|
||||||
@XmlElement()
|
private ArrayList<String> expand = new ArrayList<String>();
|
||||||
public List<String> expand = new ArrayList<String>();
|
|
||||||
|
|
||||||
public DSpaceObject() {
|
public DSpaceObject() {
|
||||||
|
|
||||||
@@ -95,7 +90,7 @@ public class DSpaceObject {
|
|||||||
return expand;
|
return expand;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setExpand(List<String> expand) {
|
public void setExpand(ArrayList<String> expand) {
|
||||||
this.expand = expand;
|
this.expand = expand;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user