Package com.ibm.icu.impl.number
Class LongNameHandler.DerivedComponents
- java.lang.Object
-
- com.ibm.icu.impl.number.LongNameHandler.DerivedComponents
-
- Enclosing class:
- LongNameHandler
private static class LongNameHandler.DerivedComponents extends java.lang.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", andd.value1("foo")
will be "nominative".In case of any kind of failure, value0() and value1() will simply return "".
-
-
Constructor Summary
Constructors Constructor Description DerivedComponents(ULocale locale, java.lang.String feature, java.lang.String structure)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) java.lang.String
value0(java.lang.String compoundValue)
(package private) java.lang.String
value1(java.lang.String compoundValue)
-
-
-
Constructor Detail
-
DerivedComponents
DerivedComponents(ULocale locale, java.lang.String feature, java.lang.String structure)
Constructor.
-
-