net.sourceforge.pinyin4j.format
Class HanyuPinyinVCharType

java.lang.Object
  extended by net.sourceforge.pinyin4j.format.HanyuPinyinVCharType

public class HanyuPinyinVCharType
extends java.lang.Object

Define the output format of character 'ü'

'ü' is a special character of Hanyu Pinyin, which can not be simply represented by English letters. In Hanyu Pinyin, such characters include 'ü', 'üe', 'üan', and 'ün'.

This class provides several options for output of 'ü', which are listed below.

Options Output
WITH_U_AND_COLON u:
WITH_V v
WITH_U_UNICODE ü

Author:
Li Min (xmlerlimin@gmail.com)

Field Summary
protected  java.lang.String name
           
static HanyuPinyinVCharType WITH_U_AND_COLON
          The option indicates that the output of 'ü' is "u:"
static HanyuPinyinVCharType WITH_U_UNICODE
          The option indicates that the output of 'ü' is "ü" in Unicode form
static HanyuPinyinVCharType WITH_V
          The option indicates that the output of 'ü' is "v"
 
Constructor Summary
protected HanyuPinyinVCharType(java.lang.String name)
          Constructor
 
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
 

Field Detail

WITH_U_AND_COLON

public static final HanyuPinyinVCharType WITH_U_AND_COLON
The option indicates that the output of 'ü' is "u:"


WITH_V

public static final HanyuPinyinVCharType WITH_V
The option indicates that the output of 'ü' is "v"


WITH_U_UNICODE

public static final HanyuPinyinVCharType WITH_U_UNICODE
The option indicates that the output of 'ü' is "ü" in Unicode form


name

protected java.lang.String name
Constructor Detail

HanyuPinyinVCharType

protected HanyuPinyinVCharType(java.lang.String name)
Constructor

Method Detail

getName

public java.lang.String getName()
Returns:
Returns the name.

setName

protected void setName(java.lang.String name)
Parameters:
name - The name to set.