net.sourceforge.pinyin4j.format
Class HanyuPinyinCaseType
java.lang.Object
net.sourceforge.pinyin4j.format.HanyuPinyinCaseType
public class HanyuPinyinCaseType
- extends java.lang.Object
Define the output case of Hanyu Pinyin string
This class provides several options for outputted cases of Hanyu Pinyin
string, which are listed below. For example, Chinese character '民'
Options |
Output |
LOWERCASE |
min2 |
UPPERCASE |
MIN2 |
- Author:
- Li Min (xmlerlimin@gmail.com)
Method Summary |
java.lang.String |
getName()
|
protected void |
setName(java.lang.String name)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UPPERCASE
public static final HanyuPinyinCaseType UPPERCASE
- The option indicates that hanyu pinyin is outputted as uppercase letters
LOWERCASE
public static final HanyuPinyinCaseType LOWERCASE
- The option indicates that hanyu pinyin is outputted as lowercase letters
name
protected java.lang.String name
HanyuPinyinCaseType
protected HanyuPinyinCaseType(java.lang.String name)
- Constructor
getName
public java.lang.String getName()
- Returns:
- Returns the name.
setName
protected void setName(java.lang.String name)
- Parameters:
name
- The name to set.