Class LongNameHandler.DerivedComponents

java.lang.Object
com.ibm.icu.impl.number.LongNameHandler.DerivedComponents
Enclosing class:
LongNameHandler

private static class LongNameHandler.DerivedComponents extends Object
Loads and applies deriveComponent rules from CLDR's grammaticalFeatures.xml.

Consider a deriveComponent rule that looks like this:

   <deriveComponent feature="case" structure="per" value0="compound" value1="nominative"/>
 
Instantiating an instance as follows:
   DerivedComponents d(loc, "case", "per");
 

Applying the rule in the XML element above, d.value0("foo") will be "foo", and d.value1("foo") will be "nominative".

In case of any kind of failure, value0() and value1() will simply return "".

  • Field Details

    • value0

      private String value0
    • value1

      private String value1
  • Constructor Details

    • DerivedComponents

      DerivedComponents(ULocale locale, String feature, String structure)
      Constructor.
  • Method Details