net.sourceforge.pinyin4j
Class GwoyeuRomatzyhResource

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

 class GwoyeuRomatzyhResource
extends java.lang.Object

A class contains resource that translates from Hanyu Pinyin to Gwoyeu Romatzyh

Author:
Li Min (xmlerlimin@gmail.com)

Nested Class Summary
private static class GwoyeuRomatzyhResource.GwoyeuRomatzyhSystemResourceHolder
          Singleton implementation helper.
 
Field Summary
private  com.hp.hpl.sparta.Document pinyinToGwoyeuMappingDoc
          A DOM model contains Hanyu Pinyin to Gwoyeu Romatzyh mapping
 
Constructor Summary
private GwoyeuRomatzyhResource()
          Private constructor as part of the singleton pattern.
 
Method Summary
(package private) static GwoyeuRomatzyhResource getInstance()
          Singleton factory method.
(package private)  com.hp.hpl.sparta.Document getPinyinToGwoyeuMappingDoc()
           
private  void initializeResource()
          Initialiez a DOM contains Hanyu Pinyin to Gwoyeu mapping
private  void setPinyinToGwoyeuMappingDoc(com.hp.hpl.sparta.Document pinyinToGwoyeuMappingDoc)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

pinyinToGwoyeuMappingDoc

private com.hp.hpl.sparta.Document pinyinToGwoyeuMappingDoc
A DOM model contains Hanyu Pinyin to Gwoyeu Romatzyh mapping

Constructor Detail

GwoyeuRomatzyhResource

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

Method Detail

setPinyinToGwoyeuMappingDoc

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

getPinyinToGwoyeuMappingDoc

com.hp.hpl.sparta.Document getPinyinToGwoyeuMappingDoc()
Returns:
Returns the pinyinToGwoyeuMappingDoc.

initializeResource

private void initializeResource()
Initialiez a DOM contains Hanyu Pinyin to Gwoyeu mapping


getInstance

static GwoyeuRomatzyhResource getInstance()
Singleton factory method.

Returns:
the one and only MySingleton.