01: /**
02: * JOnAS: Java(TM) Open Application Server
03: * Copyright (C) 1999 Bull S.A.
04: * Contact: jonas-team@objectweb.org
05: *
06: * This library is free software; you can redistribute it and/or
07: * modify it under the terms of the GNU Lesser General Public
08: * License as published by the Free Software Foundation; either
09: * 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 4622 2004-04-19 13:49:54Z sauthieg $
24: * --------------------------------------------------------------------------
25: */package org.objectweb.jonas_ws.wsgen.generator.axis;
26:
27: import javax.xml.namespace.QName;
28:
29: /**
30: * Member of a VelocityContext. Contains information used to create a
31: * beanMapping WSDD tag.
32: *
33: * @author Guillaume SAUTHIER
34: */
35: public class VcBeanMapping extends VcTypeMapping {
36:
37: /**
38: * Axis bean serializer factory
39: */
40: private static final String BEAN_SERIALIZER_FACTORY = "org.apache.axis.encoding.ser.BeanSerializerFactory";
41:
42: /**
43: * Axis bean deserializer factory
44: */
45: private static final String BEAN_DESERIALIZER_FACTORY = "org.apache.axis.encoding.ser.BeanDeserializerFactory";
46:
47: /**
48: * Create a VcBeanMapping holding typeMapping information.
49: *
50: * @param xml XML Qname of the type
51: * @param name Java name of the type
52: */
53: public VcBeanMapping(QName xml, String name) {
54: super (xml, name);
55: }
56:
57: /**
58: * @return Returns the serializer factory for the mapping
59: */
60: public String getSerializerFactory() {
61: return BEAN_SERIALIZER_FACTORY;
62: }
63:
64: /**
65: * @return Returns the deserializer factory for the mapping
66: */
67: public String getDeserializerFactory() {
68: return BEAN_DESERIALIZER_FACTORY;
69: }
70: }
|