View Javadoc

1   /*
2    * 
3    * The Seasar Software License, Version 1.1
4    *
5    * Copyright (c) 2003-2004 The Seasar Project. All rights reserved.
6    *
7    * Redistribution and use in source and binary forms, with or 
8    * without modification, are permitted provided that the following 
9    * conditions are met:
10   *
11   * 1. Redistributions of source code must retain the above 
12   *    copyright notice, this list of conditions and the following 
13   *    disclaimer. 
14   *
15   * 2. Redistributions in binary form must reproduce the above 
16   *    copyright notice, this list of conditions and the following 
17   *    disclaimer in the documentation and/or other materials provided 
18   *    with the distribution.
19   *
20   * 3. The end-user documentation included with the redistribution,
21   *    if any, must include the following acknowledgement:  
22   *    "This product includes software developed by the 
23   *    Seasar Project (http://www.seasar.org/)."
24   *    Alternately, this acknowledgement may appear in the software
25   *    itself, if and wherever such third-party acknowledgements 
26   *    normally appear.
27   *
28   * 4. Neither the name "The Seasar Project" nor the names of its
29   *    contributors may be used to endorse or promote products derived 
30   *    from this software without specific prior written permission of 
31   *    the Seasar Project.
32   *
33   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR 
34   * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 
35   * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 
36   * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE SEASAR PROJECT 
37   * OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, 
38   * INCIDENTAL,SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 
39   * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 
40   * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 
41   * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 
42   * WHETHER IN CONTRACT, STRICT LIABILITY,OR TORT (INCLUDING 
43   * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 
44   * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
45   */
46  package org.seasar.remoting.axis;
47  
48  /***
49   * diconファイル中でタイプマッピング情報を設定するために使われます。
50   * 
51   * @see ServiceDef#addTypeMapping(TypeMappingDef)
52   * @author koichik
53   */
54  public class TypeMappingDef {
55      protected Class type;
56      protected String localPart = "";
57      protected String namespaceURI = "";
58      protected String namespacePrefix = "";
59      protected Class serializer;
60      protected Class deserializer;
61      protected String encodingStyle;
62  
63      /***
64       * Java型を返します。
65       * 
66       * @return Returns the type.
67       */
68      public Class getType() {
69          return type;
70      }
71  
72      /***
73       * Java型を設定します。
74       * 
75       * @param type
76       *            The type to set.
77       */
78      public void setType(final Class type) {
79          this.type = type;
80      }
81  
82      /***
83       * XML型の名前空間URIを返します。
84       * 
85       * @return Returns the namespaceURI.
86       */
87      public String getNamespaceURI() {
88          return namespaceURI;
89      }
90  
91      /***
92       * XML型の名前空間URIを設定します。
93       * 
94       * @param namespaceURI
95       *            The namespaceURI to set.
96       */
97      public void setNamespaceURI(final String namespaceURI) {
98          this.namespaceURI = namespaceURI;
99      }
100 
101     /***
102      * XML型のローカル名を返します。
103      * 
104      * @return Returns the localPart.
105      */
106     public String getLocalPart() {
107         return localPart;
108     }
109 
110     /***
111      * XML型のローカル名を設定します。
112      * 
113      * @param localPart
114      *            The localPart to set.
115      */
116     public void setLocalPart(final String localPart) {
117         this.localPart = localPart;
118     }
119 
120     /***
121      * XML型の名前空間接頭辞を返します。
122      * 
123      * @return Returns the namespacePrefix.
124      */
125     public String getNamespacePrefix() {
126         return namespacePrefix;
127     }
128 
129     /***
130      * XML型の名前空間接頭辞を設定します。
131      * 
132      * @param namespacePrefix
133      *            The namespacePrefix to set.
134      */
135     public void setNamespacePrefix(final String namespacePrefix) {
136         this.namespacePrefix = namespacePrefix;
137     }
138 
139     /***
140      * Java型からXML型へのシリアライザを返します。
141      * 
142      * @return Returns the serializer.
143      */
144     public Class getSerializer() {
145         return serializer;
146     }
147 
148     /***
149      * Java型からXML型へのシリアライザを設定します。
150      * 
151      * @param serializer
152      *            The serializer to set.
153      */
154     public void setSerializer(final Class serializer) {
155         this.serializer = serializer;
156     }
157 
158     /***
159      * XML型からJava型へのデシリアライザを返します。
160      * 
161      * @return Returns the deserializer.
162      */
163     public Class getDeserializer() {
164         return deserializer;
165     }
166 
167     /***
168      * XML型からJava型へのデシリアライザを設定します。
169      * 
170      * @param deserializer
171      *            The deserializer to set.
172      */
173     public void setDeserializer(final Class deserializer) {
174         this.deserializer = deserializer;
175     }
176 
177     /***
178      * エンコーディングスタイルを返します。
179      * 
180      * @return Returns the encodingStyle.
181      */
182     public String getEncodingStyle() {
183         return encodingStyle;
184     }
185 
186     /***
187      * エンコーディングスタイルを設定します。
188      * 
189      * @param encodingStyle
190      *            The encodingStyle to set.
191      */
192     public void setEncodingStyle(final String encodingStyle) {
193         this.encodingStyle = encodingStyle;
194     }
195 }