Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

Source code: com/mayhoo/kanji/xml/Jis208.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: Jis208.java,v 1.1 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 JIS X 0208-1990 code value is given in hex and decimal.  
24   * @version $Revision: 1.1 $ $Date: 2002/04/30 06:44:34 $
25  **/
26  public class Jis208 extends JisType 
27  implements java.io.Serializable
28  {
29  
30  
31        //----------------/
32       //- Constructors -/
33      //----------------/
34  
35      public Jis208() {
36          super();
37      } //-- com.mayhoo.kanji.xml.Jis208()
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.Jis208 unmarshal(java.io.Reader reader)
84          throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
85      {
86          return (com.mayhoo.kanji.xml.Jis208) Unmarshaller.unmarshal(com.mayhoo.kanji.xml.Jis208.class, reader);
87      } //-- com.mayhoo.kanji.xml.Jis208 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  }