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