01: /*
02: * Copyright (C) The MX4J Contributors.
03: * All rights reserved.
04: *
05: * This software is distributed under the terms of the MX4J License version 1.0.
06: * See the terms of the MX4J License in the documentation provided with this software.
07: */
08:
09: package mx4j.tools.remote.soap.axis.ser;
10:
11: import javax.management.timer.TimerNotification;
12:
13: import org.xml.sax.SAXException;
14:
15: /**
16: * @version $Revision: 1.3 $
17: */
18: public class TimerNotificationDeser extends NotificationDeser {
19: private Integer notificationID;
20:
21: public void onSetChildValue(Object value, Object hint)
22: throws SAXException {
23: super .onSetChildValue(value, hint);
24: if (TimerNotificationSer.NOTIFICATION_ID.equals(hint))
25: notificationID = (Integer) value;
26: }
27:
28: protected Object createObject() throws SAXException {
29: TimerNotification notification = new TimerNotification(
30: getType(), getSource(), getSequenceNumber(),
31: getTimeStamp(), getMessage(), notificationID);
32: return notification;
33: }
34:
35: }
|