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