public final class HanyuPinyinOutputFormat extends Object
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| 构造器和说明 |
|---|
HanyuPinyinOutputFormat() |
| 限定符和类型 | 方法和说明 |
|---|---|
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:
HanyuPinyinVCharType := WITH_U_AND_COLON
HanyuPinyinCaseType := LOWERCASE HanyuPinyinToneType := WITH_TONE_NUMBER |
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 'ü'
|
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 'ü'HanyuPinyinVCharTypeCopyright © 2016. All Rights Reserved.