1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.kuali.ole.select.businessobject;
17
18 import com.thoughtworks.xstream.XStream;
19
20 public class OlePatronRecordHandler {
21
22 public OlePatronDocuments retrievePatronFromXML(String xml) {
23 XStream xStream = new XStream();
24 xStream.alias("olePatronDocuments", OlePatronDocuments.class);
25 xStream.alias("olePatronDocument", OLERequestorPatronDocument.class);
26 xStream.alias("olePatronId", String.class);
27 xStream.alias("barcode", String.class);
28 xStream.alias("borrowerType", String.class);
29 xStream.alias("firstName", String.class);
30 xStream.alias("lastName", String.class);
31 xStream.alias("activeIndicator", Boolean.class);
32 xStream.addImplicitCollection(OlePatronDocuments.class, "olePatronDocuments");
33 return (OlePatronDocuments) xStream.fromXML(xml);
34 }
35 }