net.sourceforge.pinyin4j
Class PinyinRomanizationResource

java.lang.Object
  extended by net.sourceforge.pinyin4j.PinyinRomanizationResource

 class PinyinRomanizationResource
extends java.lang.Object

Contains the resource supporting translations among different Chinese Romanization systems

Author:
Li Min (xmlerlimin@gmail.com)

Nested Class Summary
private static class PinyinRomanizationResource.PinyinRomanizationSystemResourceHolder
          Singleton implementation helper.
 
Field Summary
private  com.hp.hpl.sparta.Document pinyinMappingDoc
          A DOM model contains variable pinyin presentations
 
Constructor Summary
private PinyinRomanizationResource()
          Private constructor as part of the singleton pattern.
 
Method Summary
(package private) static PinyinRomanizationResource getInstance()
          Singleton factory method.
(package private)  com.hp.hpl.sparta.Document getPinyinMappingDoc()
           
private  void initializeResource()
          Initialiez a DOM contains variable PinYin representations
private  void setPinyinMappingDoc(com.hp.hpl.sparta.Document pinyinMappingDoc)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

pinyinMappingDoc

private com.hp.hpl.sparta.Document pinyinMappingDoc
A DOM model contains variable pinyin presentations

Constructor Detail

PinyinRomanizationResource

private PinyinRomanizationResource()
Private constructor as part of the singleton pattern.

Method Detail

setPinyinMappingDoc

private void setPinyinMappingDoc(com.hp.hpl.sparta.Document pinyinMappingDoc)
Parameters:
pinyinMappingDoc - The pinyinMappingDoc to set.

getPinyinMappingDoc

com.hp.hpl.sparta.Document getPinyinMappingDoc()
Returns:
Returns the pinyinMappingDoc.

initializeResource

private void initializeResource()
Initialiez a DOM contains variable PinYin representations


getInstance

static PinyinRomanizationResource getInstance()
Singleton factory method.

Returns:
the one and only MySingleton.