package org.dspace.dataonemn;

import nu.xom.Attribute;
import nu.xom.Element;

public class ListObjects extends Element implements Constants {
	
	public ListObjects() {
		super("objectList", LIST_OBJECTS_NAMESPACE);
	}
	
	public void setCount(int aCount) {
		addAttribute(new Attribute("count", Integer.toString(aCount)));
	}
	
	public void setStart(int aStart) {
		addAttribute(new Attribute("start", Integer.toString(aStart)));
	}
	
	public void setTotal(int aTotal) {
		addAttribute(new Attribute("total", Integer.toString(aTotal)));
	}
	
	public String toString() {
		return toXML();
	}
	
	public void addObjectInfo(ObjectInfo aObjInfo) {
		appendChild(aObjInfo);
	}
}

@@ -168,16 +168,22 @@
  %7B%0A%09
-%09
+    
 super(%22
+d1:
 obje

change namespace to validate with dataone schema