1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46 package org.seasar.axis.server;
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 }