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

Quick Search    Search Deep

com.mayhoo.kanji.xml
Class ReadingType  view ReadingType download ReadingType.java

java.lang.Object
  extended bycom.mayhoo.kanji.xml.ReadingType
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
Reading

public abstract class ReadingType
extends java.lang.Object
implements java.io.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 $

Field Summary
private  java.lang.String _content
          internal content storage
private  boolean _has_nanori
          keeps track of state for field: _nanori
private  boolean _has_prefix
          keeps track of state for field: _prefix
private  boolean _has_radical
          keeps track of state for field: _radical
private  boolean _has_suffix
          keeps track of state for field: _suffix
private  boolean _nanori
          where the kanji has special "nanori" (i.e.
private  java.lang.String _okurigana
          The okurigana that accompanies the kanji.
private  boolean _prefix
          indicates this reading is used as a prefix.
private  boolean _radical
          where the kanji is a radical, and the radical name is not already a reading, the flag is set to true.
private  java.lang.String _romaji
          the romaji cooresponding to the japanese reading.
private  boolean _suffix
          indicates this reading is used as a suffix.
private  com.mayhoo.kanji.xml.types.TypeType _type
          The type of the japanese reading ON-yomi in katakana and KUN-yomi in hiragana.
 
Constructor Summary
ReadingType()
           
 
Method Summary
 void deleteNanori()
           
 void deletePrefix()
           
 void deleteRadical()
           
 void deleteSuffix()
           
 java.lang.String getContent()
           
 boolean getNanori()
           
 java.lang.String getOkurigana()
           
 boolean getPrefix()
           
 boolean getRadical()
           
 java.lang.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(java.io.Writer out)
           
 void setContent(java.lang.String content)
           
 void setNanori(boolean nanori)
           
 void setOkurigana(java.lang.String okurigana)
           
 void setPrefix(boolean prefix)
           
 void setRadical(boolean radical)
           
 void setRomaji(java.lang.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
 

Field Detail

_content

private java.lang.String _content
internal content storage


_romaji

private java.lang.String _romaji
the romaji cooresponding to the japanese reading.


_prefix

private boolean _prefix
indicates this reading is used as a prefix.


_has_prefix

private boolean _has_prefix
keeps track of state for field: _prefix


_suffix

private boolean _suffix
indicates this reading is used as a suffix.


_has_suffix

private boolean _has_suffix
keeps track of state for field: _suffix


_nanori

private boolean _nanori
where the kanji has special "nanori" (i.e. name) readings, this flag is set to true.


_has_nanori

private boolean _has_nanori
keeps track of state for field: _nanori


_okurigana

private java.lang.String _okurigana
The okurigana that accompanies the kanji.


_radical

private boolean _radical
where the kanji is a radical, and the radical name is not already a reading, the flag is set to true.


_has_radical

private boolean _has_radical
keeps track of state for field: _radical


_type

private com.mayhoo.kanji.xml.types.TypeType _type
The type of the japanese reading ON-yomi in katakana and KUN-yomi in hiragana.

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 java.lang.String getContent()

getNanori

public boolean getNanori()

getOkurigana

public java.lang.String getOkurigana()

getPrefix

public boolean getPrefix()

getRadical

public boolean getRadical()

getRomaji

public java.lang.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(java.io.Writer out)
                      throws 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

setContent

public void setContent(java.lang.String content)

setNanori

public void setNanori(boolean nanori)

setOkurigana

public void setOkurigana(java.lang.String okurigana)

setPrefix

public void setPrefix(boolean prefix)

setRadical

public void setRadical(boolean radical)

setRomaji

public void setRomaji(java.lang.String romaji)

setSuffix

public void setSuffix(boolean suffix)

setType

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

validate

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