1 package org.kuali.asr.handler;
2
3 import org.kuali.ole.bo.OLECheckInItem;
4 import org.kuali.ole.converter.OLECheckInItemConverter;
5
6
7
8
9 public class CheckinItemResponseHandler extends ResponseHandler {
10
11 private OLECheckInItemConverter oleCheckInItemConverter;
12
13 public String marshalObjectToSIP2Xml(Object object) {
14 String checkinItemXml = getOleCheckInItemConverter().generateCheckInItemXmlForSIP2((OLECheckInItem) object);
15 return checkinItemXml;
16 }
17
18 @Override
19 public String marshalObjectToXml(Object object) {
20 String checkinItemXml = getOleCheckInItemConverter().generateCheckInItemXml((OLECheckInItem) object);
21 return checkinItemXml;
22 }
23
24 public OLECheckInItemConverter getOleCheckInItemConverter() {
25 if (null == oleCheckInItemConverter){
26 oleCheckInItemConverter = new OLECheckInItemConverter();
27 }
28 return oleCheckInItemConverter;
29 }
30
31 public void setOleCheckInItemConverter(OLECheckInItemConverter oleCheckInItemConverter) {
32 this.oleCheckInItemConverter = oleCheckInItemConverter;
33 }
34 }