Source code: com/mayhoo/kanji/xml/Meaning.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: Meaning.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 meaning of the kanji, in various languages. Currently
24 * since the file was derived from the Kanjidic file only english
25 * is given.
26 * @version $Revision: 1.2 $ $Date: 2002/04/30 06:44:34 $
27 **/
28 public class Meaning extends MeaningType
29 implements java.io.Serializable
30 {
31
32
33 //----------------/
34 //- Constructors -/
35 //----------------/
36
37 public Meaning() {
38 super();
39 } //-- com.mayhoo.kanji.xml.Meaning()
40
41
42 //-----------/
43 //- Methods -/
44 //-----------/
45
46 /**
47 **/
48 public boolean isValid()
49 {
50 try {
51 validate();
52 }
53 catch (org.exolab.castor.xml.ValidationException vex) {
54 return false;
55 }
56 return true;
57 } //-- boolean isValid()
58
59 /**
60 *
61 * @param out
62 **/
63 public void marshal(java.io.Writer out)
64 throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
65 {
66
67 Marshaller.marshal(this, out);
68 } //-- void marshal(java.io.Writer)
69
70 /**
71 *
72 * @param handler
73 **/
74 public void marshal(org.xml.sax.DocumentHandler handler)
75 throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
76 {
77
78 Marshaller.marshal(this, handler);
79 } //-- void marshal(org.xml.sax.DocumentHandler)
80
81 /**
82 *
83 * @param reader
84 **/
85 public static com.mayhoo.kanji.xml.Meaning unmarshal(java.io.Reader reader)
86 throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
87 {
88 return (com.mayhoo.kanji.xml.Meaning) Unmarshaller.unmarshal(com.mayhoo.kanji.xml.Meaning.class, reader);
89 } //-- com.mayhoo.kanji.xml.Meaning unmarshal(java.io.Reader)
90
91 /**
92 **/
93 public void validate()
94 throws org.exolab.castor.xml.ValidationException
95 {
96 org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
97 validator.validate(this);
98 } //-- void validate()
99
100 }