|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sourceforge.pinyin4j.format.HanyuPinyinOutputFormat
public final class HanyuPinyinOutputFormat
This classes define how the Hanyu Pinyin should be outputted.
The output feature includes:
Default values of these features are listed below:
HanyuPinyinVCharType := WITH_U_AND_COLON
HanyuPinyinCaseType := LOWERCASE
HanyuPinyinToneType := WITH_TONE_NUMBER
Some combinations of output format options are meaningless. For example, WITH_TONE_MARK and WITH_U_AND_COLON.
The combination of different output format options are listed below. For example, '吕'
| LOWERCASE | |||
|---|---|---|---|
| Combination | WITH_U_AND_COLON | WITH_V | WITH_U_UNICODE |
| WITH_TONE_NUMBER | lu:3 | lv3 | lü3 |
| WITHOUT_TONE | lu: | lv | lü |
| WITH_TONE_MARK | throw exception | throw exception | lǚ |
| UPPERCASE | |||
|---|---|---|---|
| Combination | WITH_U_AND_COLON | WITH_V | WITH_U_UNICODE |
| WITH_TONE_NUMBER | LU:3 | LV3 | LÜ3 |
| WITHOUT_TONE | LU: | LV | LÜ |
| WITH_TONE_MARK | throw exception | throw exception | LǙ |
HanyuPinyinVCharType,
HanyuPinyinCaseType,
HanyuPinyinToneType| Field Summary | |
|---|---|
private HanyuPinyinCaseType |
caseType
|
private HanyuPinyinToneType |
toneType
|
private HanyuPinyinVCharType |
vCharType
|
| Constructor Summary | |
|---|---|
HanyuPinyinOutputFormat()
|
|
| Method Summary | |
|---|---|
HanyuPinyinCaseType |
getCaseType()
Returns the output cases of Hanyu Pinyin characters |
HanyuPinyinToneType |
getToneType()
Returns the output format of Chinese tones |
HanyuPinyinVCharType |
getVCharType()
Returns output format of character 'ü' |
void |
restoreDefault()
Restore default variable values for this class Default values are listed below: |
void |
setCaseType(HanyuPinyinCaseType caseType)
Define the output cases of Hanyu Pinyin characters |
void |
setToneType(HanyuPinyinToneType toneType)
Define the output format of Chinese tones |
void |
setVCharType(HanyuPinyinVCharType charType)
Define the output format of character 'ü' |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private HanyuPinyinVCharType vCharType
private HanyuPinyinCaseType caseType
private HanyuPinyinToneType toneType
| Constructor Detail |
|---|
public HanyuPinyinOutputFormat()
| Method Detail |
|---|
public void restoreDefault()
HanyuPinyinVCharType := WITH_U_AND_COLON
HanyuPinyinCaseType := LOWERCASE
HanyuPinyinToneType := WITH_TONE_NUMBER
public HanyuPinyinCaseType getCaseType()
HanyuPinyinCaseTypepublic void setCaseType(HanyuPinyinCaseType caseType)
caseType - the output cases of Hanyu Pinyin charactersHanyuPinyinCaseTypepublic HanyuPinyinToneType getToneType()
HanyuPinyinToneTypepublic void setToneType(HanyuPinyinToneType toneType)
toneType - the output format of Chinese tonesHanyuPinyinToneTypepublic HanyuPinyinVCharType getVCharType()
HanyuPinyinVCharTypepublic void setVCharType(HanyuPinyinVCharType charType)
charType - the output format of character 'ü'HanyuPinyinVCharType
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||