KickJava   Java API By Example, From Geeks To Geeks.

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


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.relation.RoleList JavaDoc;
12 import javax.management.relation.RoleResult JavaDoc;
13 import javax.management.relation.RoleUnresolvedList JavaDoc;
14
15 import org.xml.sax.SAXException JavaDoc;
16
17 /**
18  * @version $Revision: 1.3 $
19  */

20 public class RoleResultDeser extends AxisDeserializer
21 {
22    private RoleList JavaDoc roleList;
23    private RoleUnresolvedList JavaDoc roleUnresolvedList;
24
25    protected void onSetChildValue(Object JavaDoc value, Object JavaDoc hint) throws SAXException JavaDoc
26    {
27       if (RoleResultSer.ROLE_LIST.equals(hint))
28          roleList = (RoleList JavaDoc)value;
29       if (RoleResultSer.ROLE_UNRESOLVED_LIST.equals(hint))
30          roleUnresolvedList = (RoleUnresolvedList JavaDoc)value;
31    }
32
33    protected Object JavaDoc createObject() throws SAXException JavaDoc
34    {
35       return new RoleResult JavaDoc(roleList, roleUnresolvedList);
36    }
37
38 }
39
Popular Tags