|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--net.sourceforge.wohenchan.convert.ConverterComposite
Composite ConverterTable which aggregates the functionalities of subordinate convertertables.
Field Summary | |
private ConverterTableInterface[] |
m_children
Array of children. |
Constructor Summary | |
ConverterComposite(ConverterTableInterface[] children)
Constructor for the composite. |
Method Summary | |
void |
lookupByEnglishSubstring(java.lang.String str,
ConverterListener listener)
Locates ConverterEntryInterface objects corresponding to a given case insensitive English substring. |
void |
lookupByPinyin(java.lang.String pinyin,
ConverterListener listener)
Looks up a dictionary entry by pinyin. |
void |
lookupBySimplifiedChinese(java.lang.String chinese,
ConverterListener listener)
Looks up a converter table entry by simplified chinese characters. |
void |
lookupByTraditionalChinese(java.lang.String chinese,
ConverterListener listener)
Looks up a converter table entry by traditional chinese characters. |
static void |
main(java.lang.String[] args)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private ConverterTableInterface[] m_children
Constructor Detail |
public ConverterComposite(ConverterTableInterface[] children)
children
- the children of this composite converter table.
null is interpreted as the 0 length array.Method Detail |
public void lookupByPinyin(java.lang.String pinyin, ConverterListener listener)
ConverterTableInterface
lookupByPinyin
in interface ConverterTableInterface
pinyin
- The input string is specified in pinyin.
The string may be composed of the letters 'a'-'z' (lower case
only), the numbers '1'-'5' and space (' ').
The string is composed of at least 1 space-separated pinyin
syllables. Syllables are separated with exactly one space.
There is no leading or trailing space.
Each syllable is composed of at least two letters followed by
exactly one digit. The neutral tone is expicitly specified with
'5'.
u w/ umlaut (as in luu2 (donkey, palm tree), or luu3 (drizzle)
is specified with uu.listener
- the ConverterListener to which this object
should send its resultspublic void lookupBySimplifiedChinese(java.lang.String chinese, ConverterListener listener)
ConverterTableInterface
lookupBySimplifiedChinese
in interface ConverterTableInterface
public void lookupByTraditionalChinese(java.lang.String chinese, ConverterListener listener)
ConverterTableInterface
lookupByTraditionalChinese
in interface ConverterTableInterface
public void lookupByEnglishSubstring(java.lang.String str, ConverterListener listener)
ConverterTableInterface
lookupByEnglishSubstring
in interface ConverterTableInterface
public static void main(java.lang.String[] args)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |