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): Sauthier Guillaume
22: * --------------------------------------------------------------------------
23: * $Id: VcArrayMapping.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: * typeMapping WSDD tag.
32: *
33: * @author Guillaume SAUTHIER
34: */
35: public class VcArrayMapping extends VcTypeMapping {
36:
37: /**
38: * Axis Array Serializer Factory
39: */
40: private static final String ARRAY_SERIALIZER_FACTORY = "org.apache.axis.encoding.ser.ArraySerializerFactory";
41:
42: /**
43: * Axis Array DeSerializer Factory
44: */
45: private static final String ARRAY_DESERIALIZER_FACTORY = "org.apache.axis.encoding.ser.ArrayDeserializerFactory";
46:
47: /**
48: * Create a VcArrayMapping holding arrayMapping information.
49: *
50: * @param xml XML Qname of the Array type
51: * @param name Java name of the Array type
52: */
53: public VcArrayMapping(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 ARRAY_SERIALIZER_FACTORY;
62: }
63:
64: /**
65: * @return Returns the deserializer factory for the mapping
66: */
67: public String getDeserializerFactory() {
68: return ARRAY_DESERIALIZER_FACTORY;
69: }
70: }
|