/external/cldr/tools/java/org/unicode/cldr/api/ |
D | AttributeKey.java | 47 public final class AttributeKey { class 50 private static final ImmutableTable<String, String, AttributeKey> KNOWN_KEYS = 54 .filter(AttributeKey::isKnownAttribute) 55 .map(a -> new AttributeKey(e.getName(), a.getName()))) 58 AttributeKey::getElementName, AttributeKey::getAttributeName, identity())); 74 /* @Nullable */ String get(AttributeKey k); in get() 90 public static AttributeKey keyOf(String elementName, String attributeName) { in keyOf() 105 return new AttributeKey(elementName, attributeName); in keyOf() 111 private AttributeKey(String elementName, String attributeName) { in AttributeKey() method in AttributeKey 232 if (!(obj instanceof AttributeKey)) { in equals() [all …]
|
D | CldrValue.java | 10 import org.unicode.cldr.api.AttributeKey.AttributeSupplier; 57 LinkedHashMap<AttributeKey, String> valueAttributes = new LinkedHashMap<>(); in parseValue() 100 … static CldrValue create(String value, Map<AttributeKey, String> valueAttributes, CldrPath path) { in create() argument 105 private final ImmutableMap<AttributeKey, String> attributes; 110 private CldrValue(String value, Map<AttributeKey, String> attributes, CldrPath path) { in CldrValue() argument 124 private static ImmutableMap<AttributeKey, String> checkAttributeMap( in checkAttributeMap() argument 125 Map<AttributeKey, String> attributes) { in checkAttributeMap() 155 /* @Nullable */ public String get(AttributeKey key) { in get() 180 public ImmutableMap<AttributeKey, String> getValueAttributes() { in getValueAttributes()
|
D | CldrPath.java | 19 import org.unicode.cldr.api.AttributeKey.AttributeSupplier; 275 /* @Nullable */ public String get(AttributeKey key) { in get() 462 StringBuilder out, ImmutableMap<AttributeKey, String> valueAttributes) { in appendToString() argument 475 .map(AttributeKey::getAttributeName) in appendToString() 497 ImmutableMap<AttributeKey, String> valueAttributes) { in appendResortedValueAttributesTo() argument 506 value = valueAttributes.get(AttributeKey.keyOf(elementName, attrName)); in appendResortedValueAttributesTo() 516 ImmutableMap<AttributeKey, String> valueAttributes) { in appendValueAttributesTo() argument 518 String value = valueAttributes.get(AttributeKey.keyOf(elementName, attrName)); in appendValueAttributesTo()
|
D | CldrPaths.java | 278 BiConsumer<AttributeKey, String> valueAttributeCollector) { in processXPath() argument 381 BiConsumer<AttributeKey, String> collectValueAttribute) { in processPathAttributes() argument 400 BiConsumer<AttributeKey, String> collectValueAttribute, in processAttributes() argument 404 … collectValueAttribute.accept(AttributeKey.keyOf(elementName, e.getKey()), e.getValue()); in processAttributes()
|
D | CldrFileDataSource.java | 71 Map<AttributeKey, String> attributes = new LinkedHashMap<>(); in get() 102 Map<AttributeKey, String> valueAttributes = new LinkedHashMap<>(); in read()
|
D | CldrDataType.java | 181 boolean isValueAttribute(AttributeKey key) { 190 boolean isOptionalAttribute(AttributeKey key) {
|
D | XmlDataSource.java | 208 private final Map<AttributeKey, String> valueAttributes = new LinkedHashMap<>(); 326 BiConsumer<AttributeKey, String> valueAttributeCollector) { in extendPath() argument
|
/external/cldr/tools/cldr-unittest/src/org/unicode/cldr/api/ |
D | CldrValueTest.java | 25 ImmutableMap<AttributeKey, String> expected = ImmutableMap.of( in TestValueAttributes() 26 AttributeKey.keyOf("info", "digits"), "2", in TestValueAttributes() 27 AttributeKey.keyOf("info", "rounding"), "0", in TestValueAttributes() 28 AttributeKey.keyOf("info", "cashDigits"), "0", in TestValueAttributes() 29 AttributeKey.keyOf("info", "cashRounding"), "0"); in TestValueAttributes() 46 AttributeKey key = AttributeKey.keyOf("type", "deprecated"); in TestRetainExplicitNonDefault()
|