com.mayhoo.kanji.xml
Class Kanjidic

java.lang.Object
  |
  +--com.mayhoo.kanji.xml.Kanjidic
All Implemented Interfaces:
Serializable

public class Kanjidic
extends Object
implements Serializable

The Kanjidic root elementr. This XML file format was originally derived from the kanjidic project by Jim Breen. The same license applies to the information with in this document as with the original.

Version:
$Revision: 1.2 $ $Date: 2002/04/30 06:44:34 $
See Also:
Serialized Form

Constructor Summary
Kanjidic()
           
 
Method Summary
 void addKanji(int index, com.mayhoo.kanji.xml.Kanji vKanji)
           
 void addKanji(com.mayhoo.kanji.xml.Kanji vKanji)
           
 Enumeration enumerateKanji()
           
 com.mayhoo.kanji.xml.Kanji[] getKanji()
           
 com.mayhoo.kanji.xml.Kanji getKanji(int index)
           
 int getKanjiCount()
           
 boolean isValid()
           
 void marshal(org.xml.sax.DocumentHandler handler)
           
 void marshal(Writer out)
           
 void removeAllKanji()
           
 com.mayhoo.kanji.xml.Kanji removeKanji(int index)
           
 void setKanji(int index, com.mayhoo.kanji.xml.Kanji vKanji)
           
 void setKanji(com.mayhoo.kanji.xml.Kanji[] kanjiArray)
           
static com.mayhoo.kanji.xml.Kanjidic unmarshal(Reader reader)
           
 void validate()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Kanjidic

public Kanjidic()
Method Detail

addKanji

public void addKanji(com.mayhoo.kanji.xml.Kanji vKanji)
              throws IndexOutOfBoundsException
Parameters:
vKanji -
IndexOutOfBoundsException

addKanji

public void addKanji(int index,
                     com.mayhoo.kanji.xml.Kanji vKanji)
              throws IndexOutOfBoundsException
Parameters:
index -
vKanji -
IndexOutOfBoundsException

enumerateKanji

public Enumeration enumerateKanji()

getKanji

public com.mayhoo.kanji.xml.Kanji getKanji(int index)
                                    throws IndexOutOfBoundsException
Parameters:
index -
IndexOutOfBoundsException

getKanji

public com.mayhoo.kanji.xml.Kanji[] getKanji()

getKanjiCount

public int getKanjiCount()

isValid

public boolean isValid()

marshal

public void marshal(Writer out)
             throws org.exolab.castor.xml.MarshalException,
                    org.exolab.castor.xml.ValidationException
Parameters:
out -
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException

marshal

public void marshal(org.xml.sax.DocumentHandler handler)
             throws org.exolab.castor.xml.MarshalException,
                    org.exolab.castor.xml.ValidationException
Parameters:
handler -
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException

removeAllKanji

public void removeAllKanji()

removeKanji

public com.mayhoo.kanji.xml.Kanji removeKanji(int index)
Parameters:
index -

setKanji

public void setKanji(int index,
                     com.mayhoo.kanji.xml.Kanji vKanji)
              throws IndexOutOfBoundsException
Parameters:
index -
vKanji -
IndexOutOfBoundsException

setKanji

public void setKanji(com.mayhoo.kanji.xml.Kanji[] kanjiArray)
Parameters:
kanjiArray -

unmarshal

public static com.mayhoo.kanji.xml.Kanjidic unmarshal(Reader reader)
                                               throws org.exolab.castor.xml.MarshalException,
                                                      org.exolab.castor.xml.ValidationException
Parameters:
reader -
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException

validate

public void validate()
              throws org.exolab.castor.xml.ValidationException
org.exolab.castor.xml.ValidationException