1 8 9 package mx4j.tools.remote.soap.axis.ser; 10 11 import javax.management.remote.NotificationResult ; 12 import javax.management.remote.TargetedNotification ; 13 14 import org.xml.sax.SAXException ; 15 16 19 public class NotificationResultDeser extends AxisDeserializer 20 { 21 private long earliestSequenceNumber; 22 private long nextSequenceNumber; 23 private TargetedNotification [] targetedNotifications; 24 25 public void onSetChildValue(Object value, Object hint) throws SAXException 26 { 27 if (NotificationResultSer.EARLIEST_NUMBER.equals(hint)) 28 earliestSequenceNumber = ((Long )value).longValue(); 29 else if (NotificationResultSer.NEXT_NUMBER.equals(hint)) 30 nextSequenceNumber = ((Long )value).longValue(); 31 else if (NotificationResultSer.NOTIFICATIONS.equals(hint)) targetedNotifications = (TargetedNotification [])value; 32 } 33 34 protected Object createObject() throws SAXException 35 { 36 return new NotificationResult (earliestSequenceNumber, nextSequenceNumber, targetedNotifications); 37 } 38 } 39 | Popular Tags |