com.mayhoo.kanji.xml
Class Reading

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

public class Reading
extends ReadingType
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
Reading()
           
 
Method Summary
 boolean isValid()
           
 void marshal(org.xml.sax.DocumentHandler handler)
           
 void marshal(Writer out)
           
static com.mayhoo.kanji.xml.Reading unmarshal(Reader reader)
           
 void validate()
           
 
Methods inherited from class com.mayhoo.kanji.xml.ReadingType
deleteNanori, deletePrefix, deleteRadical, deleteSuffix, getContent, getNanori, getOkurigana, getPrefix, getRadical, getRomaji, getSuffix, getType, hasNanori, hasPrefix, hasRadical, hasSuffix, setContent, setNanori, setOkurigana, setPrefix, setRadical, setRomaji, setSuffix, setType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Reading

public Reading()
Method Detail

isValid

public boolean isValid()
Overrides:
isValid in class ReadingType

marshal

public void marshal(Writer out)
             throws org.exolab.castor.xml.MarshalException,
                    org.exolab.castor.xml.ValidationException
Specified by:
marshal in class ReadingType
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
Specified by:
marshal in class ReadingType
Parameters:
handler -
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException

unmarshal

public static com.mayhoo.kanji.xml.Reading 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
Overrides:
validate in class ReadingType
org.exolab.castor.xml.ValidationException