org.clazzes.util.aop.i18n.impl
Class CldrPluralRuleLoader

java.lang.Object
  extended by org.clazzes.util.aop.i18n.impl.CldrPluralRuleLoader

public class CldrPluralRuleLoader
extends Object

A loader for CLDR plural rules as specified in the plural rule specification of the Unicode Consortium.

The parsed file plurals.xml file is extracted from http://unicode.org/Public/cldr/22.1/core.zip, which contains an entry common/supplemental/plurals.xml.


Constructor Summary
CldrPluralRuleLoader()
           
 
Method Summary
 PluralRule getRuleForLocale(String loc)
           
 void parsePluralsXml()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CldrPluralRuleLoader

public CldrPluralRuleLoader()
Method Detail

parsePluralsXml

public void parsePluralsXml()
                     throws XMLStreamException,
                            ParseException
Throws:
XMLStreamException
ParseException

getRuleForLocale

public PluralRule getRuleForLocale(String loc)


Copyright © 2013. All Rights Reserved.