|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--net.sourceforge.wohenchan.convert.DefaultConverterEntry
This class is the store unit for each dictionary entry. This particular implementation is immutable, but other implementations do not necessarily need to be. This class is not very useful, given that there are two types of exceptions thrown by the getGB, getEng methods. This class is likely to go away, to be replaced with converter-specific entry classes. Either that, or the exceptions from the methods in ConverterEntryInterface will have to change.
Field Summary | |
private java.lang.String |
m_chinese
|
private java.lang.String |
m_english
|
private java.lang.String |
m_pinyin
|
private java.lang.String |
m_source
|
Constructor Summary | |
DefaultConverterEntry(java.lang.String chinese,
java.lang.String english,
java.lang.String pinyin,
java.lang.String source)
Constructor. |
Method Summary | |
java.lang.String |
getChinese()
Gets the unicode character string for this entry. |
java.lang.String |
getEnglishDefinition()
Gets the English Definition for this character. |
java.lang.String |
getPinyin()
Gets the Pinyin for this entry. |
java.lang.String |
getSource()
Gets the source dictionary where this entry came from. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private java.lang.String m_chinese
private java.lang.String m_english
private java.lang.String m_pinyin
private java.lang.String m_source
Constructor Detail |
public DefaultConverterEntry(java.lang.String chinese, java.lang.String english, java.lang.String pinyin, java.lang.String source)
english
- WHERE (english != null)pinyin
- WHERE (pinyin != null)Method Detail |
public java.lang.String getEnglishDefinition()
ConverterEntryInterface
getEnglishDefinition
in interface ConverterEntryInterface
public java.lang.String getChinese()
ConverterEntryInterface
getChinese
in interface ConverterEntryInterface
public java.lang.String getPinyin()
ConverterEntryInterface
getPinyin
in interface ConverterEntryInterface
public java.lang.String getSource()
ConverterEntryInterface
getSource
in interface ConverterEntryInterface
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |