com.mayhoo.kanji.xml
Class KanjiType

java.lang.Object
  |
  +--com.mayhoo.kanji.xml.KanjiType
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
Kanji

public abstract class KanjiType
extends Object
implements Serializable

Each of the kanji has an element to track its various indices.

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

Constructor Summary
KanjiType()
           
 
Method Summary
 void addCorner(int index, String vCorner)
           
 void addCorner(String vCorner)
           
 void addCrossref(com.mayhoo.kanji.xml.Crossref vCrossref)
           
 void addCrossref(int index, com.mayhoo.kanji.xml.Crossref vCrossref)
           
 void addHeisig2(int vHeisig2)
           
 void addHeisig2(int index, int vHeisig2)
           
 void addKorean(int index, String vKorean)
           
 void addKorean(String vKorean)
           
 void addMeaning(int index, com.mayhoo.kanji.xml.Meaning vMeaning)
           
 void addMeaning(com.mayhoo.kanji.xml.Meaning vMeaning)
           
 void addPinyin(int index, String vPinyin)
           
 void addPinyin(String vPinyin)
           
 void addReading(int index, com.mayhoo.kanji.xml.Reading vReading)
           
 void addReading(com.mayhoo.kanji.xml.Reading vReading)
           
 void addSkip(int index, String vSkip)
           
 void addSkip(String vSkip)
           
 void addStroke(int index, com.mayhoo.kanji.xml.Stroke vStroke)
           
 void addStroke(com.mayhoo.kanji.xml.Stroke vStroke)
           
 void deleteDeroo()
           
 void deleteFrequency()
           
 void deleteGakken()
           
 void deleteGeneral()
           
 void deleteHaig()
           
 void deleteHalpern()
           
 void deleteHalpern2()
           
 void deleteHeisig()
           
 void deleteHenshall()
           
 void deleteJinmeiyou()
           
 void deleteJouyou()
           
 void deleteKask()
           
 void deleteNelson()
           
 void deleteOneill()
           
 void deleteRadical()
           
 void deleteSpahn2()
           
 Enumeration enumerateCorner()
           
 Enumeration enumerateCrossref()
           
 Enumeration enumerateHeisig2()
           
 Enumeration enumerateKorean()
           
 Enumeration enumerateMeaning()
           
 Enumeration enumeratePinyin()
           
 Enumeration enumerateReading()
           
 Enumeration enumerateSkip()
           
 Enumeration enumerateStroke()
           
 int getBushu()
           
 String getChar()
           
 String[] getCorner()
           
 String getCorner(int index)
           
 int getCornerCount()
           
 com.mayhoo.kanji.xml.Crossref[] getCrossref()
           
 com.mayhoo.kanji.xml.Crossref getCrossref(int index)
           
 int getCrossrefCount()
           
 int getDeroo()
           
 int getFrequency()
           
 int getGakken()
           
 boolean getGeneral()
           
 int getHaig()
           
 int getHalpern()
           
 int getHalpern2()
           
 int getHeisig()
           
 int[] getHeisig2()
           
 int getHeisig2(int index)
           
 int getHeisig2Count()
           
 int getHenshall()
           
 String getHenshall2()
           
 boolean getJinmeiyou()
           
 com.mayhoo.kanji.xml.Jis208 getJis208()
           
 com.mayhoo.kanji.xml.Jis212 getJis212()
           
 int getJouyou()
           
 int getKask()
           
 String[] getKorean()
           
 String getKorean(int index)
           
 int getKoreanCount()
           
 com.mayhoo.kanji.xml.Meaning[] getMeaning()
           
 com.mayhoo.kanji.xml.Meaning getMeaning(int index)
           
 int getMeaningCount()
           
 com.mayhoo.kanji.xml.Morohashi getMorohashi()
           
 int getNelson()
           
 int getOneill()
           
 String getOneill2()
           
 String[] getPinyin()
           
 String getPinyin(int index)
           
 int getPinyinCount()
           
 int getRadical()
           
 com.mayhoo.kanji.xml.Reading[] getReading()
           
 com.mayhoo.kanji.xml.Reading getReading(int index)
           
 int getReadingCount()
           
 com.mayhoo.kanji.xml.Sjis getSjis()
           
 String[] getSkip()
           
 String getSkip(int index)
           
 int getSkipCount()
           
 String getSpahn()
           
 int getSpahn2()
           
 com.mayhoo.kanji.xml.Stroke[] getStroke()
           
 com.mayhoo.kanji.xml.Stroke getStroke(int index)
           
 int getStrokeCount()
           
 com.mayhoo.kanji.xml.Tohsaku getTohsaku()
           
 com.mayhoo.kanji.xml.Unicode getUnicode()
           
 boolean hasBushu()
           
 boolean hasDeroo()
           
 boolean hasFrequency()
           
 boolean hasGakken()
           
 boolean hasGeneral()
           
 boolean hasHaig()
           
 boolean hasHalpern()
           
 boolean hasHalpern2()
           
 boolean hasHeisig()
           
 boolean hasHenshall()
           
 boolean hasJinmeiyou()
           
 boolean hasJouyou()
           
 boolean hasKask()
           
 boolean hasNelson()
           
 boolean hasOneill()
           
 boolean hasRadical()
           
 boolean hasSpahn2()
           
 boolean isValid()
           
abstract  void marshal(org.xml.sax.DocumentHandler handler)
           
abstract  void marshal(Writer out)
           
 void removeAllCorner()
           
 void removeAllCrossref()
           
 void removeAllHeisig2()
           
 void removeAllKorean()
           
 void removeAllMeaning()
           
 void removeAllPinyin()
           
 void removeAllReading()
           
 void removeAllSkip()
           
 void removeAllStroke()
           
 String removeCorner(int index)
           
 com.mayhoo.kanji.xml.Crossref removeCrossref(int index)
           
 int removeHeisig2(int index)
           
 String removeKorean(int index)
           
 com.mayhoo.kanji.xml.Meaning removeMeaning(int index)
           
 String removePinyin(int index)
           
 com.mayhoo.kanji.xml.Reading removeReading(int index)
           
 String removeSkip(int index)
           
 com.mayhoo.kanji.xml.Stroke removeStroke(int index)
           
 void setBushu(int bushu)
           
 void setChar(String _char)
           
 void setCorner(int index, String vCorner)
           
 void setCorner(String[] cornerArray)
           
 void setCrossref(com.mayhoo.kanji.xml.Crossref[] crossrefArray)
           
 void setCrossref(int index, com.mayhoo.kanji.xml.Crossref vCrossref)
           
 void setDeroo(int deroo)
           
 void setFrequency(int frequency)
           
 void setGakken(int gakken)
           
 void setGeneral(boolean general)
           
 void setHaig(int haig)
           
 void setHalpern(int halpern)
           
 void setHalpern2(int halpern2)
           
 void setHeisig(int heisig)
           
 void setHeisig2(int[] heisig2Array)
           
 void setHeisig2(int index, int vHeisig2)
           
 void setHenshall(int henshall)
           
 void setHenshall2(String henshall2)
           
 void setJinmeiyou(boolean jinmeiyou)
           
 void setJis208(com.mayhoo.kanji.xml.Jis208 jis208)
           
 void setJis212(com.mayhoo.kanji.xml.Jis212 jis212)
           
 void setJouyou(int jouyou)
           
 void setKask(int kask)
           
 void setKorean(int index, String vKorean)
           
 void setKorean(String[] koreanArray)
           
 void setMeaning(int index, com.mayhoo.kanji.xml.Meaning vMeaning)
           
 void setMeaning(com.mayhoo.kanji.xml.Meaning[] meaningArray)
           
 void setMorohashi(com.mayhoo.kanji.xml.Morohashi morohashi)
           
 void setNelson(int nelson)
           
 void setOneill(int oneill)
           
 void setOneill2(String oneill2)
           
 void setPinyin(int index, String vPinyin)
           
 void setPinyin(String[] pinyinArray)
           
 void setRadical(int radical)
           
 void setReading(int index, com.mayhoo.kanji.xml.Reading vReading)
           
 void setReading(com.mayhoo.kanji.xml.Reading[] readingArray)
           
 void setSjis(com.mayhoo.kanji.xml.Sjis sjis)
           
 void setSkip(int index, String vSkip)
           
 void setSkip(String[] skipArray)
           
 void setSpahn(String spahn)
           
 void setSpahn2(int spahn2)
           
 void setStroke(int index, com.mayhoo.kanji.xml.Stroke vStroke)
           
 void setStroke(com.mayhoo.kanji.xml.Stroke[] strokeArray)
           
 void setTohsaku(com.mayhoo.kanji.xml.Tohsaku tohsaku)
           
 void setUnicode(com.mayhoo.kanji.xml.Unicode unicode)
           
 void validate()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

KanjiType

public KanjiType()
Method Detail

addCorner

public void addCorner(String vCorner)
               throws IndexOutOfBoundsException
Parameters:
vCorner -
IndexOutOfBoundsException

addCorner

public void addCorner(int index,
                      String vCorner)
               throws IndexOutOfBoundsException
Parameters:
index -
vCorner -
IndexOutOfBoundsException

addCrossref

public void addCrossref(com.mayhoo.kanji.xml.Crossref vCrossref)
                 throws IndexOutOfBoundsException
Parameters:
vCrossref -
IndexOutOfBoundsException

addCrossref

public void addCrossref(int index,
                        com.mayhoo.kanji.xml.Crossref vCrossref)
                 throws IndexOutOfBoundsException
Parameters:
index -
vCrossref -
IndexOutOfBoundsException

addHeisig2

public void addHeisig2(int vHeisig2)
                throws IndexOutOfBoundsException
Parameters:
vHeisig2 -
IndexOutOfBoundsException

addHeisig2

public void addHeisig2(int index,
                       int vHeisig2)
                throws IndexOutOfBoundsException
Parameters:
index -
vHeisig2 -
IndexOutOfBoundsException

addKorean

public void addKorean(String vKorean)
               throws IndexOutOfBoundsException
Parameters:
vKorean -
IndexOutOfBoundsException

addKorean

public void addKorean(int index,
                      String vKorean)
               throws IndexOutOfBoundsException
Parameters:
index -
vKorean -
IndexOutOfBoundsException

addMeaning

public void addMeaning(com.mayhoo.kanji.xml.Meaning vMeaning)
                throws IndexOutOfBoundsException
Parameters:
vMeaning -
IndexOutOfBoundsException

addMeaning

public void addMeaning(int index,
                       com.mayhoo.kanji.xml.Meaning vMeaning)
                throws IndexOutOfBoundsException
Parameters:
index -
vMeaning -
IndexOutOfBoundsException

addPinyin

public void addPinyin(String vPinyin)
               throws IndexOutOfBoundsException
Parameters:
vPinyin -
IndexOutOfBoundsException

addPinyin

public void addPinyin(int index,
                      String vPinyin)
               throws IndexOutOfBoundsException
Parameters:
index -
vPinyin -
IndexOutOfBoundsException

addReading

public void addReading(com.mayhoo.kanji.xml.Reading vReading)
                throws IndexOutOfBoundsException
Parameters:
vReading -
IndexOutOfBoundsException

addReading

public void addReading(int index,
                       com.mayhoo.kanji.xml.Reading vReading)
                throws IndexOutOfBoundsException
Parameters:
index -
vReading -
IndexOutOfBoundsException

addSkip

public void addSkip(String vSkip)
             throws IndexOutOfBoundsException
Parameters:
vSkip -
IndexOutOfBoundsException

addSkip

public void addSkip(int index,
                    String vSkip)
             throws IndexOutOfBoundsException
Parameters:
index -
vSkip -
IndexOutOfBoundsException

addStroke

public void addStroke(com.mayhoo.kanji.xml.Stroke vStroke)
               throws IndexOutOfBoundsException
Parameters:
vStroke -
IndexOutOfBoundsException

addStroke

public void addStroke(int index,
                      com.mayhoo.kanji.xml.Stroke vStroke)
               throws IndexOutOfBoundsException
Parameters:
index -
vStroke -
IndexOutOfBoundsException

deleteDeroo

public void deleteDeroo()

deleteFrequency

public void deleteFrequency()

deleteGakken

public void deleteGakken()

deleteGeneral

public void deleteGeneral()

deleteHaig

public void deleteHaig()

deleteHalpern

public void deleteHalpern()

deleteHalpern2

public void deleteHalpern2()

deleteHeisig

public void deleteHeisig()

deleteHenshall

public void deleteHenshall()

deleteJinmeiyou

public void deleteJinmeiyou()

deleteJouyou

public void deleteJouyou()

deleteKask

public void deleteKask()

deleteNelson

public void deleteNelson()

deleteOneill

public void deleteOneill()

deleteRadical

public void deleteRadical()

deleteSpahn2

public void deleteSpahn2()

enumerateCorner

public Enumeration enumerateCorner()

enumerateCrossref

public Enumeration enumerateCrossref()

enumerateHeisig2

public Enumeration enumerateHeisig2()

enumerateKorean

public Enumeration enumerateKorean()

enumerateMeaning

public Enumeration enumerateMeaning()

enumeratePinyin

public Enumeration enumeratePinyin()

enumerateReading

public Enumeration enumerateReading()

enumerateSkip

public Enumeration enumerateSkip()

enumerateStroke

public Enumeration enumerateStroke()

getBushu

public int getBushu()

getChar

public String getChar()

getCorner

public String getCorner(int index)
                 throws IndexOutOfBoundsException
Parameters:
index -
IndexOutOfBoundsException

getCorner

public String[] getCorner()

getCornerCount

public int getCornerCount()

getCrossref

public com.mayhoo.kanji.xml.Crossref getCrossref(int index)
                                          throws IndexOutOfBoundsException
Parameters:
index -
IndexOutOfBoundsException

getCrossref

public com.mayhoo.kanji.xml.Crossref[] getCrossref()

getCrossrefCount

public int getCrossrefCount()

getDeroo

public int getDeroo()

getFrequency

public int getFrequency()

getGakken

public int getGakken()

getGeneral

public boolean getGeneral()

getHaig

public int getHaig()

getHalpern

public int getHalpern()

getHalpern2

public int getHalpern2()

getHeisig

public int getHeisig()

getHeisig2

public int getHeisig2(int index)
               throws IndexOutOfBoundsException
Parameters:
index -
IndexOutOfBoundsException

getHeisig2

public int[] getHeisig2()

getHeisig2Count

public int getHeisig2Count()

getHenshall

public int getHenshall()

getHenshall2

public String getHenshall2()

getJinmeiyou

public boolean getJinmeiyou()

getJis208

public com.mayhoo.kanji.xml.Jis208 getJis208()

getJis212

public com.mayhoo.kanji.xml.Jis212 getJis212()

getJouyou

public int getJouyou()

getKask

public int getKask()

getKorean

public String getKorean(int index)
                 throws IndexOutOfBoundsException
Parameters:
index -
IndexOutOfBoundsException

getKorean

public String[] getKorean()

getKoreanCount

public int getKoreanCount()

getMeaning

public com.mayhoo.kanji.xml.Meaning getMeaning(int index)
                                        throws IndexOutOfBoundsException
Parameters:
index -
IndexOutOfBoundsException

getMeaning

public com.mayhoo.kanji.xml.Meaning[] getMeaning()

getMeaningCount

public int getMeaningCount()

getMorohashi

public com.mayhoo.kanji.xml.Morohashi getMorohashi()

getNelson

public int getNelson()

getOneill

public int getOneill()

getOneill2

public String getOneill2()

getPinyin

public String getPinyin(int index)
                 throws IndexOutOfBoundsException
Parameters:
index -
IndexOutOfBoundsException

getPinyin

public String[] getPinyin()

getPinyinCount

public int getPinyinCount()

getRadical

public int getRadical()

getReading

public com.mayhoo.kanji.xml.Reading getReading(int index)
                                        throws IndexOutOfBoundsException
Parameters:
index -
IndexOutOfBoundsException

getReading

public com.mayhoo.kanji.xml.Reading[] getReading()

getReadingCount

public int getReadingCount()

getSjis

public com.mayhoo.kanji.xml.Sjis getSjis()

getSkip

public String getSkip(int index)
               throws IndexOutOfBoundsException
Parameters:
index -
IndexOutOfBoundsException

getSkip

public String[] getSkip()

getSkipCount

public int getSkipCount()

getSpahn

public String getSpahn()

getSpahn2

public int getSpahn2()

getStroke

public com.mayhoo.kanji.xml.Stroke getStroke(int index)
                                      throws IndexOutOfBoundsException
Parameters:
index -
IndexOutOfBoundsException

getStroke

public com.mayhoo.kanji.xml.Stroke[] getStroke()

getStrokeCount

public int getStrokeCount()

getTohsaku

public com.mayhoo.kanji.xml.Tohsaku getTohsaku()

getUnicode

public com.mayhoo.kanji.xml.Unicode getUnicode()

hasBushu

public boolean hasBushu()

hasDeroo

public boolean hasDeroo()

hasFrequency

public boolean hasFrequency()

hasGakken

public boolean hasGakken()

hasGeneral

public boolean hasGeneral()

hasHaig

public boolean hasHaig()

hasHalpern

public boolean hasHalpern()

hasHalpern2

public boolean hasHalpern2()

hasHeisig

public boolean hasHeisig()

hasHenshall

public boolean hasHenshall()

hasJinmeiyou

public boolean hasJinmeiyou()

hasJouyou

public boolean hasJouyou()

hasKask

public boolean hasKask()

hasNelson

public boolean hasNelson()

hasOneill

public boolean hasOneill()

hasRadical

public boolean hasRadical()

hasSpahn2

public boolean hasSpahn2()

isValid

public boolean isValid()

marshal

public abstract 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 abstract 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

removeAllCorner

public void removeAllCorner()

removeAllCrossref

public void removeAllCrossref()

removeAllHeisig2

public void removeAllHeisig2()

removeAllKorean

public void removeAllKorean()

removeAllMeaning

public void removeAllMeaning()

removeAllPinyin

public void removeAllPinyin()

removeAllReading

public void removeAllReading()

removeAllSkip

public void removeAllSkip()

removeAllStroke

public void removeAllStroke()

removeCorner

public String removeCorner(int index)
Parameters:
index -

removeCrossref

public com.mayhoo.kanji.xml.Crossref removeCrossref(int index)
Parameters:
index -

removeHeisig2

public int removeHeisig2(int index)
Parameters:
index -

removeKorean

public String removeKorean(int index)
Parameters:
index -

removeMeaning

public com.mayhoo.kanji.xml.Meaning removeMeaning(int index)
Parameters:
index -

removePinyin

public String removePinyin(int index)
Parameters:
index -

removeReading

public com.mayhoo.kanji.xml.Reading removeReading(int index)
Parameters:
index -

removeSkip

public String removeSkip(int index)
Parameters:
index -

removeStroke

public com.mayhoo.kanji.xml.Stroke removeStroke(int index)
Parameters:
index -

setBushu

public void setBushu(int bushu)
Parameters:
bushu -

setChar

public void setChar(String _char)
Parameters:
_char -

setCorner

public void setCorner(int index,
                      String vCorner)
               throws IndexOutOfBoundsException
Parameters:
index -
vCorner -
IndexOutOfBoundsException

setCorner

public void setCorner(String[] cornerArray)
Parameters:
cornerArray -

setCrossref

public void setCrossref(int index,
                        com.mayhoo.kanji.xml.Crossref vCrossref)
                 throws IndexOutOfBoundsException
Parameters:
index -
vCrossref -
IndexOutOfBoundsException

setCrossref

public void setCrossref(com.mayhoo.kanji.xml.Crossref[] crossrefArray)
Parameters:
crossrefArray -

setDeroo

public void setDeroo(int deroo)
Parameters:
deroo -

setFrequency

public void setFrequency(int frequency)
Parameters:
frequency -

setGakken

public void setGakken(int gakken)
Parameters:
gakken -

setGeneral

public void setGeneral(boolean general)
Parameters:
general -

setHaig

public void setHaig(int haig)
Parameters:
haig -

setHalpern

public void setHalpern(int halpern)
Parameters:
halpern -

setHalpern2

public void setHalpern2(int halpern2)
Parameters:
halpern2 -

setHeisig

public void setHeisig(int heisig)
Parameters:
heisig -

setHeisig2

public void setHeisig2(int index,
                       int vHeisig2)
                throws IndexOutOfBoundsException
Parameters:
index -
vHeisig2 -
IndexOutOfBoundsException

setHeisig2

public void setHeisig2(int[] heisig2Array)
Parameters:
heisig2Array -

setHenshall

public void setHenshall(int henshall)
Parameters:
henshall -

setHenshall2

public void setHenshall2(String henshall2)
Parameters:
henshall2 -

setJinmeiyou

public void setJinmeiyou(boolean jinmeiyou)
Parameters:
jinmeiyou -

setJis208

public void setJis208(com.mayhoo.kanji.xml.Jis208 jis208)
Parameters:
jis208 -

setJis212

public void setJis212(com.mayhoo.kanji.xml.Jis212 jis212)
Parameters:
jis212 -

setJouyou

public void setJouyou(int jouyou)
Parameters:
jouyou -

setKask

public void setKask(int kask)
Parameters:
kask -

setKorean

public void setKorean(int index,
                      String vKorean)
               throws IndexOutOfBoundsException
Parameters:
index -
vKorean -
IndexOutOfBoundsException

setKorean

public void setKorean(String[] koreanArray)
Parameters:
koreanArray -

setMeaning

public void setMeaning(int index,
                       com.mayhoo.kanji.xml.Meaning vMeaning)
                throws IndexOutOfBoundsException
Parameters:
index -
vMeaning -
IndexOutOfBoundsException

setMeaning

public void setMeaning(com.mayhoo.kanji.xml.Meaning[] meaningArray)
Parameters:
meaningArray -

setMorohashi

public void setMorohashi(com.mayhoo.kanji.xml.Morohashi morohashi)
Parameters:
morohashi -

setNelson

public void setNelson(int nelson)
Parameters:
nelson -

setOneill

public void setOneill(int oneill)
Parameters:
oneill -

setOneill2

public void setOneill2(String oneill2)
Parameters:
oneill2 -

setPinyin

public void setPinyin(int index,
                      String vPinyin)
               throws IndexOutOfBoundsException
Parameters:
index -
vPinyin -
IndexOutOfBoundsException

setPinyin

public void setPinyin(String[] pinyinArray)
Parameters:
pinyinArray -

setRadical

public void setRadical(int radical)
Parameters:
radical -

setReading

public void setReading(int index,
                       com.mayhoo.kanji.xml.Reading vReading)
                throws IndexOutOfBoundsException
Parameters:
index -
vReading -
IndexOutOfBoundsException

setReading

public void setReading(com.mayhoo.kanji.xml.Reading[] readingArray)
Parameters:
readingArray -

setSjis

public void setSjis(com.mayhoo.kanji.xml.Sjis sjis)
Parameters:
sjis -

setSkip

public void setSkip(int index,
                    String vSkip)
             throws IndexOutOfBoundsException
Parameters:
index -
vSkip -
IndexOutOfBoundsException

setSkip

public void setSkip(String[] skipArray)
Parameters:
skipArray -

setSpahn

public void setSpahn(String spahn)
Parameters:
spahn -

setSpahn2

public void setSpahn2(int spahn2)
Parameters:
spahn2 -

setStroke

public void setStroke(int index,
                      com.mayhoo.kanji.xml.Stroke vStroke)
               throws IndexOutOfBoundsException
Parameters:
index -
vStroke -
IndexOutOfBoundsException

setStroke

public void setStroke(com.mayhoo.kanji.xml.Stroke[] strokeArray)
Parameters:
strokeArray -

setTohsaku

public void setTohsaku(com.mayhoo.kanji.xml.Tohsaku tohsaku)
Parameters:
tohsaku -

setUnicode

public void setUnicode(com.mayhoo.kanji.xml.Unicode unicode)
Parameters:
unicode -

validate

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