@@ -0,0 +1,2289 @@
+package test.ccn.data.content;%0A%0Aimport java.io.IOException;%0A%0Aimport javax.xml.stream.XMLStreamException;%0A%0Aimport com.parc.ccn.data.ContentName;%0Aimport com.parc.ccn.data.ContentObject;%0Aimport com.parc.ccn.data.content.CollectionData;%0Aimport com.parc.ccn.data.security.PublisherKeyID;%0Aimport com.parc.ccn.data.util.CCNEncodableObject;%0Aimport com.parc.ccn.library.CCNLibrary;%0A%0Apublic class CCNEncodableCollectionData extends CCNEncodableObject%3CCollectionData%3E %7B%0A%0A%09public CCNEncodableCollectionData(CCNLibrary library) %7B%0A%09%09super(CollectionData.class, library);%0A%09%7D%0A%09%0A%09public CCNEncodableCollectionData() %7B%0A%09%09super(CollectionData.class, null);%0A%09%7D%0A%0A%09public CCNEncodableCollectionData(CollectionData data, CCNLibrary library) %7B%0A%09%09super(CollectionData.class, data, library);%0A%09%7D%0A%09%0A%09public CCNEncodableCollectionData(CollectionData data) %7B%0A%09%09super(CollectionData.class, data, null);%0A%09%7D%0A%0A%09/**%0A%09 * Construct an object from stored CCN data.%0A%09 * @param type%0A%09 * @param content The object to recover, or one of its fragments.%0A%09 * @param library%0A%09 * @throws XMLStreamException%0A%09 * @throws IOException%0A%09 */%0A%09public CCNEncodableCollectionData(ContentObject content, CCNLibrary library) throws XMLStreamException, IOException %7B%0A%09%09super(CollectionData.class, content, library);%0A%09%7D%0A%09%0A%09public CCNEncodableCollectionData(ContentObject content) throws XMLStreamException, IOException %7B%0A%09%09super(CollectionData.class, content, null);%0A%09%7D%0A%0A%09/**%0A%09 * Ambiguous. Are we supposed to pull this object based on its name,%0A%09 *   or merely attach the name to the object which we will then construct%0A%09 *   and save. Let's assume the former, and allow the name to be specified%0A%09 *   for save() for the latter.%0A%09 * @param type%0A%09 * @param name%0A%09 * @param library%0A%09 * @throws XMLStreamException%0A%09 * @throws IOException%0A%09 */%0A%09public CCNEncodableCollectionData(ContentName name, PublisherKeyID publisher, CCNLibrary library) throws XMLStreamException, IOException %7B%0A%09%09super(CollectionData.class, name, publisher, library);%0A%09%7D%0A%09%0A%09public CCNEncodableCollectionData(ContentName name, CCNLibrary library) throws XMLStreamException, IOException %7B%0A%09%09super(CollectionData.class, name, library);%0A%09%7D%0A%0A%09public CCNEncodableCollectionData(ContentName name) throws XMLStreamException, IOException %7B%0A%09%09super(CollectionData.class, name, null);%0A%09%7D%0A%7D%0A

Test wrapper around CollectionData. Will be the prototype for the new Collection implementation.