com.mayhoo.kanji.xml
Class ReadingType

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

public abstract class ReadingType
extends Object
implements Serializable

The japanese readings, with indications for prefixes/suffixes, its okurigana. ON-yomi are in katakana and KUN-yomi are in hiragana. There may be several classes of reading fields, with special classes marked as such. The current classes, are: - special "nanori" (i.e. name) readings, - a radical, and the radical name is not already a reading.

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

Constructor Summary
ReadingType()
           
 
Method Summary
 void deleteNanori()
           
 void deletePrefix()
           
 void deleteRadical()
           
 void deleteSuffix()
           
 String getContent()
           
 boolean getNanori()
           
 String getOkurigana()
           
 boolean getPrefix()
           
 boolean getRadical()
           
 String getRomaji()
           
 boolean getSuffix()
           
 com.mayhoo.kanji.xml.types.TypeType getType()
           
 boolean hasNanori()
           
 boolean hasPrefix()
           
 boolean hasRadical()
           
 boolean hasSuffix()
           
 boolean isValid()
           
abstract  void marshal(org.xml.sax.DocumentHandler handler)
           
abstract  void marshal(Writer out)
           
 void setContent(String content)
           
 void setNanori(boolean nanori)
           
 void setOkurigana(String okurigana)
           
 void setPrefix(boolean prefix)
           
 void setRadical(boolean radical)
           
 void setRomaji(String romaji)
           
 void setSuffix(boolean suffix)
           
 void setType(com.mayhoo.kanji.xml.types.TypeType type)
           
 void validate()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReadingType

public ReadingType()
Method Detail

deleteNanori

public void deleteNanori()

deletePrefix

public void deletePrefix()

deleteRadical

public void deleteRadical()

deleteSuffix

public void deleteSuffix()

getContent

public String getContent()

getNanori

public boolean getNanori()

getOkurigana

public String getOkurigana()

getPrefix

public boolean getPrefix()

getRadical

public boolean getRadical()

getRomaji

public String getRomaji()

getSuffix

public boolean getSuffix()

getType

public com.mayhoo.kanji.xml.types.TypeType getType()

hasNanori

public boolean hasNanori()

hasPrefix

public boolean hasPrefix()

hasRadical

public boolean hasRadical()

hasSuffix

public boolean hasSuffix()

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

setContent

public void setContent(String content)
Parameters:
content -

setNanori

public void setNanori(boolean nanori)
Parameters:
nanori -

setOkurigana

public void setOkurigana(String okurigana)
Parameters:
okurigana -

setPrefix

public void setPrefix(boolean prefix)
Parameters:
prefix -

setRadical

public void setRadical(boolean radical)
Parameters:
radical -

setRomaji

public void setRomaji(String romaji)
Parameters:
romaji -

setSuffix

public void setSuffix(boolean suffix)
Parameters:
suffix -

setType

public void setType(com.mayhoo.kanji.xml.types.TypeType type)
Parameters:
type -

validate

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