KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > mx4j > tools > remote > soap > axis > ser > TimerNotificationDeser


1 /*
2  * Copyright (C) The MX4J Contributors.
3  * All rights reserved.
4  *
5  * This software is distributed under the terms of the MX4J License version 1.0.
6  * See the terms of the MX4J License in the documentation provided with this software.
7  */

8
9 package mx4j.tools.remote.soap.axis.ser;
10
11 import javax.management.timer.TimerNotification JavaDoc;
12
13 import org.xml.sax.SAXException JavaDoc;
14
15 /**
16  * @version $Revision: 1.3 $
17  */

18 public class TimerNotificationDeser extends NotificationDeser
19 {
20    private Integer JavaDoc notificationID;
21
22    public void onSetChildValue(Object JavaDoc value, Object JavaDoc hint) throws SAXException JavaDoc
23    {
24       super.onSetChildValue(value, hint);
25       if (TimerNotificationSer.NOTIFICATION_ID.equals(hint)) notificationID = (Integer JavaDoc)value;
26    }
27
28    protected Object JavaDoc createObject() throws SAXException JavaDoc
29    {
30       TimerNotification JavaDoc notification = new TimerNotification JavaDoc(getType(), getSource(), getSequenceNumber(), getTimeStamp(), getMessage(), notificationID);
31       return notification;
32    }
33
34 }
35
Popular Tags