KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > objectweb > jonas_ws > wsgen > generator > axis > VcBeanMapping


1 /**
2  * JOnAS: Java(TM) Open Application Server
3  * Copyright (C) 1999 Bull S.A.
4  * Contact: jonas-team@objectweb.org
5  *
6  * This library is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU Lesser General Public
8  * License as published by the Free Software Foundation; either
9  * version 2.1 of the License, or any later version.
10  *
11  * This library is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14  * Lesser General Public License for more details.
15  *
16  * You should have received a copy of the GNU Lesser General Public
17  * License along with this library; if not, write to the Free Software
18  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
19  * USA
20  *
21  * Initial developer(s): Xavier Delplanque
22  * --------------------------------------------------------------------------
23  * $Id: VcBeanMapping.java,v 1.3 2004/04/19 13:49:54 sauthieg Exp $
24  * --------------------------------------------------------------------------
25  */

26
27 package org.objectweb.jonas_ws.wsgen.generator.axis;
28
29 import javax.xml.namespace.QName JavaDoc;
30
31 /**
32  * Member of a VelocityContext. Contains information used to create a
33  * beanMapping WSDD tag.
34  *
35  * @author Guillaume SAUTHIER
36  */

37 public class VcBeanMapping extends VcTypeMapping {
38
39     /**
40      * Axis bean serializer factory
41      */

42     private static final String JavaDoc BEAN_SERIALIZER_FACTORY = "org.apache.axis.encoding.ser.BeanSerializerFactory";
43
44     /**
45      * Axis bean deserializer factory
46      */

47     private static final String JavaDoc BEAN_DESERIALIZER_FACTORY = "org.apache.axis.encoding.ser.BeanDeserializerFactory";
48
49     /**
50      * Create a VcBeanMapping holding typeMapping information.
51      *
52      * @param xml XML Qname of the type
53      * @param name Java name of the type
54      */

55     public VcBeanMapping(QName JavaDoc xml, String JavaDoc name) {
56         super(xml, name);
57     }
58
59     /**
60      * @return Returns the serializer factory for the mapping
61      */

62     public String JavaDoc getSerializerFactory() {
63         return BEAN_SERIALIZER_FACTORY;
64     }
65
66     /**
67      * @return Returns the deserializer factory for the mapping
68      */

69     public String JavaDoc getDeserializerFactory() {
70         return BEAN_DESERIALIZER_FACTORY;
71     }
72 }
Popular Tags