Source code: com/mayhoo/kanji/xml/MorohashiType.java
1 /*
2 * This class was automatically generated with
3 * <a href="http://castor.exolab.org">Castor 0.9.3</a>, using an
4 * XML Schema.
5 * $Id: MorohashiType.java,v 1.2 2002/04/30 06:44:34 djmay Exp $
6 */
7
8 package com.mayhoo.kanji.xml;
9
10 //---------------------------------/
11 //- Imported classes and packages -/
12 //---------------------------------/
13
14 import java.io.Reader;
15 import java.io.Serializable;
16 import java.io.Writer;
17 import org.exolab.castor.xml.*;
18 import org.exolab.castor.xml.MarshalException;
19 import org.exolab.castor.xml.ValidationException;
20 import org.xml.sax.DocumentHandler;
21
22 /**
23 * The index number and volume.page respectively of the kanji in
24 * the 13-volume Morohashi "Daikanwajiten.
25 * @version $Revision: 1.2 $ $Date: 2002/04/30 06:44:34 $
26 **/
27 public abstract class MorohashiType implements java.io.Serializable {
28
29
30 //--------------------------/
31 //- Class/Member Variables -/
32 //--------------------------/
33
34 /**
35 * The index number from the 13-volume Morohashi
36 * "Daikanwajiten.
37 **/
38 private java.lang.String _index;
39
40 /**
41 * The volume number containing the kanji.
42 **/
43 private int _volume;
44
45 /**
46 * keeps track of state for field: _volume
47 **/
48 private boolean _has_volume;
49
50 /**
51 * The page number within the volume containing the kanji.
52 **/
53 private int _page;
54
55 /**
56 * keeps track of state for field: _page
57 **/
58 private boolean _has_page;
59
60 /**
61 * The page number is from the original.
62 **/
63 private boolean _original;
64
65 /**
66 * keeps track of state for field: _original
67 **/
68 private boolean _has_original;
69
70 /**
71 * The kanji in Morohashi has a close but not identical glyph
72 * to the form in the JIS X 0208 standard.
73 **/
74 private boolean _close;
75
76 /**
77 * keeps track of state for field: _close
78 **/
79 private boolean _has_close;
80
81
82 //----------------/
83 //- Constructors -/
84 //----------------/
85
86 public MorohashiType() {
87 super();
88 } //-- com.mayhoo.kanji.xml.MorohashiType()
89
90
91 //-----------/
92 //- Methods -/
93 //-----------/
94
95 /**
96 **/
97 public void deleteClose()
98 {
99 this._has_close= false;
100 } //-- void deleteClose()
101
102 /**
103 **/
104 public void deleteOriginal()
105 {
106 this._has_original= false;
107 } //-- void deleteOriginal()
108
109 /**
110 **/
111 public void deletePage()
112 {
113 this._has_page= false;
114 } //-- void deletePage()
115
116 /**
117 **/
118 public void deleteVolume()
119 {
120 this._has_volume= false;
121 } //-- void deleteVolume()
122
123 /**
124 **/
125 public boolean getClose()
126 {
127 return this._close;
128 } //-- boolean getClose()
129
130 /**
131 **/
132 public java.lang.String getIndex()
133 {
134 return this._index;
135 } //-- java.lang.String getIndex()
136
137 /**
138 **/
139 public boolean getOriginal()
140 {
141 return this._original;
142 } //-- boolean getOriginal()
143
144 /**
145 **/
146 public int getPage()
147 {
148 return this._page;
149 } //-- int getPage()
150
151 /**
152 **/
153 public int getVolume()
154 {
155 return this._volume;
156 } //-- int getVolume()
157
158 /**
159 **/
160 public boolean hasClose()
161 {
162 return this._has_close;
163 } //-- boolean hasClose()
164
165 /**
166 **/
167 public boolean hasOriginal()
168 {
169 return this._has_original;
170 } //-- boolean hasOriginal()
171
172 /**
173 **/
174 public boolean hasPage()
175 {
176 return this._has_page;
177 } //-- boolean hasPage()
178
179 /**
180 **/
181 public boolean hasVolume()
182 {
183 return this._has_volume;
184 } //-- boolean hasVolume()
185
186 /**
187 **/
188 public boolean isValid()
189 {
190 try {
191 validate();
192 }
193 catch (org.exolab.castor.xml.ValidationException vex) {
194 return false;
195 }
196 return true;
197 } //-- boolean isValid()
198
199 /**
200 *
201 * @param out
202 **/
203 public abstract void marshal(java.io.Writer out)
204 throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException;
205
206 /**
207 *
208 * @param handler
209 **/
210 public abstract void marshal(org.xml.sax.DocumentHandler handler)
211 throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException;
212
213 /**
214 *
215 * @param close
216 **/
217 public void setClose(boolean close)
218 {
219 this._close = close;
220 this._has_close = true;
221 } //-- void setClose(boolean)
222
223 /**
224 *
225 * @param index
226 **/
227 public void setIndex(java.lang.String index)
228 {
229 this._index = index;
230 } //-- void setIndex(java.lang.String)
231
232 /**
233 *
234 * @param original
235 **/
236 public void setOriginal(boolean original)
237 {
238 this._original = original;
239 this._has_original = true;
240 } //-- void setOriginal(boolean)
241
242 /**
243 *
244 * @param page
245 **/
246 public void setPage(int page)
247 {
248 this._page = page;
249 this._has_page = true;
250 } //-- void setPage(int)
251
252 /**
253 *
254 * @param volume
255 **/
256 public void setVolume(int volume)
257 {
258 this._volume = volume;
259 this._has_volume = true;
260 } //-- void setVolume(int)
261
262 /**
263 **/
264 public void validate()
265 throws org.exolab.castor.xml.ValidationException
266 {
267 org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
268 validator.validate(this);
269 } //-- void validate()
270
271 }