Home
last modified time | relevance | path

Searched refs:dtdType (Results 1 – 25 of 28) sorted by relevance

12

/external/cldr/tools/java/org/unicode/cldr/api/
DCldrPath.java130 private final CldrDataType dtdType;
144 CldrDataType dtdType, in CldrPath() argument
146 checkState(parent != null || dtdType.getLdmlName().equals(name), in CldrPath()
147 "unexpected root element: expected %s, but got %s", dtdType.getLdmlName(), name); in CldrPath()
154 if (CldrPaths.isOrdered(dtdType, elementName)) { in CldrPath()
162 this.dtdType = checkNotNull(dtdType); in CldrPath()
163 this.ordering = CldrPaths.getPathComparator(dtdType); in CldrPath()
294 return dtdType; in getDataType()
382 if (dtdType == other.dtdType) { in compareTo()
385 return dtdType.compareTo(other.dtdType); in compareTo()
[all …]
DCldrPaths.java207 static boolean isOrdered(CldrDataType dtdType, String elementName) { in isOrdered() argument
214 return ORDERED_ELEMENTS_MAP.get(dtdType).contains(elementName); in isOrdered()
292 CldrDataType dtdType = CldrDataType.forRawType(dtd.dtdType); in processXPath() local
336 elementName, attributes, dtdType, collectElementAttribute, valueAttributeCollector); in processXPath()
369 path = new CldrPath(path, elementName, keyValuePairs, dtdType, draftStatus, sortIndex); in processXPath()
379 CldrDataType dtdType, in processPathAttributes() argument
392 attributeMap.entrySet().stream(), elementName, collectValueAttribute, dtdType) in processPathAttributes()
401 CldrDataType dtdType) { in processAttributes() argument
403 if (dtdType.isValueAttribute(elementName, e.getKey())) { in processAttributes()
412 .filter(e -> dtdType.isDistinguishingAttribute(elementName, e.getKey())); in processAttributes()
DXmlDataSource.java50 private final CldrDataType dtdType; field in XmlDataSource
78 XmlDataSource(CldrDataType dtdType, Set<Path> xmlFiles, CldrDraftStatus draftStatus) { in XmlDataSource() argument
79 this(dtdType, xmlFiles, draftStatus, XmlDataSource::openFile); in XmlDataSource()
84 …CldrDataType dtdType, Set<Path> xmlFiles, CldrDraftStatus draftStatus, Function<Path, Reader> open… in XmlDataSource() argument
86 this.dtdType = dtdType; in XmlDataSource()
98 read(value -> map.put(value.getPath(), value), dtdType, true); in getPathValueMap()
145 private void read(ValueVisitor visitor, CldrDataType dtdType, boolean validating) { in read() argument
148 xmlReader.setContentHandler(new PathValueHandler(visitor, dtdType)); in read()
/external/cldr/tools/java/org/unicode/cldr/tool/
DGenerateReformattedXml.java8 for (DtdType dtdType : DtdType.values()) { in main()
9 if (args.length > 0 && !dtdType.toString().matches(args[0])) { in main()
12 System.out.println("\n#####\n\t" + dtdType + "\n#####"); in main()
13 System.out.println(DtdData.getInstance(dtdType)); in main()
DChartDtdDelta.java135 .addCell(datum.dtdType) in writeContents()
178 if (SKIP_TYPE_ELEMENTS.containsEntry(dtdCurrent.dtdType, name)) { in checkNames()
194 System.out.println(dtdCurrent.dtdType + "\t" + name); in checkNames()
196 if (DEBUG_DTD == dtdCurrent.dtdType && name.contains(DEBUG_ELEMENT)) { in checkNames()
244 final DtdType dtdType; field in ChartDtdDelta.DiffElement
258 dtdType = dtdCurrent.dtdType; in DiffElement()
278 .add("dtdType", dtdType) in toString()
DVerifyAttributeValues.java50 …public void put(String file, DtdType dtdType, String element, String attribute, String attributeVa… in put() argument
51 …file_element_attribute.put(file, new AttributeValueSpec(dtdType, element, attribute, attributeValu… in put()
92 if (dtdData.dtdType == DtdType.ldml) { in handlePathValue()
122 …file_element_attribute.put(file, dtdData.dtdType, element, attribute, attributeValue, "deprecated"… in handlePathValue()
133 …file_element_attribute.put(file, dtdData.dtdType, element, attribute, attributeValue, reason.value… in handlePathValue()
136 … missing.add(new AttributeValueSpec(dtdData.dtdType, element, attribute, attributeValue)); in handlePathValue()
DShowDtdDiffs.java88 …if (isDeprecated(dtdCurrent.dtdType, name, "*")) { // SDI.isDeprecated(dtdCurrent.dtdType, name, "… in checkNames()
146 …if (isDeprecated(dtdCurrent.dtdType, elementName, name)) { // SDI.isDeprecated(dtdCurrent, element… in getAttributeNames()
159 private static boolean isDeprecated(DtdType dtdType, String elementName, String attributeName) { in isDeprecated() argument
161 return DtdData.getInstance(dtdType).isDeprecated(elementName, attributeName, "*"); in isDeprecated()
DGenerateItemCounts.java164 for (DtdType dtdType : DtdType.values()) { in checkBadAttributes()
165 if (dtdType == DtdType.ldmlICU) { in checkBadAttributes()
168 DtdData data = DtdData.getInstance(dtdType); in checkBadAttributes()
171 ELEMENTS_POSSIBLE.put(elementName, dtdType); in checkBadAttributes()
183 + "» for: " + dtdType + "\t" + elementName + "\t" + attributeName); in checkBadAttributes()
185 final R2<DtdType, String> attributeRow = Row.of(dtdType, elementName); in checkBadAttributes()
190 if (supp.isDeprecated(dtdType, elementName, attributeName, null)) { in checkBadAttributes()
193 if (!CLDRFile.isDistinguishing(dtdType, elementName, attributeName)) { in checkBadAttributes()
199 …errors.add("Warning, !disting, !leaf: " + dtdType + "\t" + elementName + "\t" + attributeName + "\… in checkBadAttributes()
215 for (DtdType dtdType : possible) { in checkBadAttributes()
[all …]
DShowStarredCoverage.java107 for (DtdType dtdType : DtdType.values()) { in main()
108 if (dtdTypes != null && !dtdTypes.contains(dtdType)) { in main()
111 for (String dir : dtdType.directories) { in main()
112 if (dtdType == DtdType.ldml) { in main()
115 doNonLdml(dtdType, dir, fileLocale, levelToPathHeaders); in main()
203 …private static void doNonLdml(DtdType dtdType, String dir, String fileLocale, M3<Level, PathHeader… in doNonLdml() argument
221 DtdData dtdData = DtdData.getInstance(dtdType); in doNonLdml()
DChartDelta.java887 DtdType dtdType = null; in writeNonLdmlPlain() local
894 if (dtdType == null) { in writeNonLdmlPlain()
895 dtdType = DtdType.fromPath(originalPath); in writeNonLdmlPlain()
897 Multimap<PathHeader, String> target = dtdType == DtdType.ldmlBCP47 ? bcp in writeNonLdmlPlain()
1000 DtdType dtdType = null; in fillData() local
1011 if (dtdType == null) { in fillData()
1012 dtdType = DtdType.fromPath(path); in fillData()
1013 dtdData = DtdData.getInstance(dtdType); in fillData()
/external/cldr/tools/cldr-unittest/src/org/unicode/cldr/unittest/
DTestPaths.java264 + dtdData.dtdType in check()
269 data.put(dtdData.dtdType, elementName, "*", "*", true); in check()
274 + dtdData.dtdType in check()
283 + dtdData.dtdType in check()
290 data.put(dtdData.dtdType, elementName, attributeName, "*", true); in check()
291 data.put(dtdData.dtdType, elementName, attributeName, attributeValue, true); in check()
298 for (DtdType dtdType : DtdType.values()) { in show()
299 if (dtdType == DtdType.ldmlICU || in show()
300 …(inclusion <= 5 && dtdType == DtdType.platform)) { // keyboards/*/_platform.xml won't be in the li… in show()
303 M4<String, String, String, Boolean> infoEAV = data.get(dtdType); in show()
[all …]
DTestPathsModule.java118 protected DtdType dtdType; field in TestPathsModule.PathTest
125 this.dtdType = null; in start()
129 if (dtdType == null) { in test()
130 dtdType = DtdType.valueOf(fullParts.getElement(0)); in test()
209 boolean distinguishing = CLDRFile.isDistinguishing(dtdType, in test()
212 R3<DtdType, String, String> row = Row.of(dtdType, in test()
235 boolean hasq = CLDRFile.isOrdered(element, dtdType); in findFirstQ()
262 R2<DtdType, String> row = Row.of(dtdType, element); in findFirstQ()
DTestDTDAttributes.java113 private void showDistinguishing(DtdType dtdType) { in showDistinguishing() argument
115 .getInstance(dtdType).getElement2Attributes(); in showDistinguishing()
126 .getInstance(dtdType).getElementAttribute2Data(); in showDistinguishing()
129 boolean isOrdered = CLDRFile.isOrdered(element, dtdType); in showDistinguishing()
135 if (CLDRFile.isDistinguishing(dtdType, element, attribute)) { in showDistinguishing()
154 logln(dtdType in showDistinguishing()
167 logln("// " + dtdType + "\tnondistinguishing: " + nondistinguishing); in showDistinguishing()
173 logln("// " + dtdType + "\tdistinguishing: " + distinguishing); in showDistinguishing()
178 logln("// " + dtdType + "\tboth: " + both); in showDistinguishing()
181 logln("{\"" + "dist" + "\", \"" + dtdType + "\", \"" + "*" in showDistinguishing()
[all …]
DTestAttributeValues.java91 for (DtdType dtdType : checkTypes) { in TestValid()
92 PathChecker pathChecker = new PathChecker(this, DtdData.getInstance(dtdType)); in TestValid()
95 for (String stringDir : dtdType.directories) { in TestValid()
96 addXMLFiles(dtdType, mainDirs + stringDir, files); in TestValid()
131 private void addXMLFiles(DtdType dtdType, String path, Set<String> files) { in addXMLFiles() argument
138 && dtdType == DtdType.ldml) { in addXMLFiles()
150 addXMLFiles(dtdType, path + "/" + file, files); in addXMLFiles()
318 out.append("file\tCount:\t" + dtdData.dtdType + "\t" + fileCount + "\n"); in show()
319 out.append("element\tCount:\t" + dtdData.dtdType + "\t" + elementCount + "\n"); in show()
320 out.append("attribute\tCount:\t" + dtdData.dtdType + "\t" + attributeCount + "\n"); in show()
[all …]
DTestBasic.java200 DtdType type = parts.getDtdData().dtdType; in checkDtds()
566 DtdType dtdType = null; in TestPaths() local
576 if (dtdType == null) { in TestPaths()
577 dtdType = DtdType.fromPath(path); in TestPaths()
632 if (CLDRFile.isDistinguishing(dtdType, element, attribute)) { in TestPaths()
1442 DtdData dtdData = DtdData.getInstance(myHandler.dtdType); in checkDtdComparatorForResource()
1465 DtdData dtdData = DtdData.getInstance(myHandler.dtdType); in checkDtdComparatorFor()
1471 private DtdType dtdType; field in TestBasic.MyHandler
1475 dtdType = overrideDtdType; in MyHandler()
1479 if (dtdType == null) { in handlePathValue()
[all …]
DTestDtdData.java432 public boolean isDistinguishingOld(DtdType dtdType, String elementName, String attribute) { in isDistinguishingOld() argument
433 switch (dtdType) { in isDistinguishingOld()
602 throw new IllegalArgumentException("Type is wrong: " + dtdType); in isDistinguishingOld()
/external/cldr/tools/java/org/unicode/cldr/util/
DElementAttributeInfo.java28 private DtdType dtdType; field in ElementAttributeInfo
38 public static final ElementAttributeInfo getInstance(DtdType dtdType) { in getInstance() argument
39 return getInstance(CLDRPaths.COMMON_DIRECTORY, dtdType); in getInstance()
42 public static final ElementAttributeInfo getInstance(String commonDirectory, DtdType dtdType) { in getInstance() argument
75 return result.get(dtdType); in getInstance()
94 this.dtdType = type; in ElementAttributeInfo()
114 return dtdType; in getDtdType()
DDtdDataCheck.java68 if (dtdData.dtdType == DtdType.ldml && elementsMissingDraft.size() != 0) { in show()
72 if (dtdData.dtdType == DtdType.ldml && elementsMissingAlt.size() != 0) { in show()
127 if (SUPPLEMENTAL.isDeprecated(dtdData.dtdType, element.name, a.name, "*")) { in show()
130 DEPRECATED.add(Row.of(dtdData.dtdType, element.name, a.name, "*")); in show()
133 … if (SUPPLEMENTAL.isDeprecated(dtdData.dtdType, element.name, a.name, value)) { in show()
135 … DEPRECATED.add(Row.of(dtdData.dtdType, element.name, a.name, value)); in show()
140 R2<DtdType, String> key = Row.of(dtdData.dtdType, a.name); in show()
141 … boolean isDisting = CLDRFile.isDistinguishing(dtdData.dtdType, element.name, a.name); in show()
DCLDRPaths.java138 public final List<DtdType> dtdType; field in CLDRPaths.DIRECTORIES
140 private DIRECTORIES(DtdType... dtdType) { in DIRECTORIES() argument
141 this.dtdType = ImmutableList.copyOf(dtdType); in DIRECTORIES()
DAttributeValueValidity.java217 for (DtdType dtdType : dtds) {
218 DtdData data = DtdData.getInstance(dtdType);
219 …<String, MatcherPattern>> element_attribute_validity = dtd_element_attribute_validity.get(dtdType);
221 …dtd_element_attribute_validity.put(dtdType, element_attribute_validity = new TreeMap<String, Map<S… in dtd_element_attribute_validity.put() argument
237 + dtdType
245 + dtdType
319 public static Relation<String, String> getAllPossibleMissing(DtdType dtdType) { in getAllPossibleMissing() argument
322 if (dtdType == DtdType.ldmlICU) { in getAllPossibleMissing()
326 DtdData dtdData2 = DtdData.getInstance(dtdType); in getAllPossibleMissing()
328 dtd_element_attribute_validity.get(dtdType), in getAllPossibleMissing()
[all …]
DDtdData.java56 public final DtdType dtdType; field in DtdData
117 …private Attribute(DtdType dtdType, Element element2, String aName, Mode mode2, String[] split, Str… in Attribute() argument
156 attributeValueComparator = getAttributeValueComparator(dtdType, element.name, name); in Attribute()
332 this.dtdType = type; in DtdData()
338 …Attribute a = new Attribute(dtdType, nameToElement.get(eName), aName, Mode.forString(mode), FILLER… in addAttribute()
605 if (explicitDtdType != dtdType && explicitDtdType != dtdType.rootType) { in handleStartDtd()
736 elementMergeList.add(dtdType.toString()); in freeze()
899 Seen seen = new Seen(dtdType); in toString()
922 public Seen(DtdType dtdType) { in Seen() argument
923 if (dtdType.rootType == dtdType) { in Seen()
[all …]
DCLDRFile.java135 private DtdType dtdType; field in CLDRFile
414 DtdType dtdType = DtdType.ldml; // default in write() local
421 dtdType = DtdType.valueOf(firstFullPathParts.getElement(0)); in write()
428 String fixedPath = "../../" + dtdType.dtdPath; in write()
432 fixedPath = dtdDir + dtdType + ".dtd"; in write()
434 pw.println("<!DOCTYPE " + dtdType + " SYSTEM \"" + fixedPath + "\">"); in write()
1797 dtdData.dtdType == DtdType.ldml
1799 isSupplemental = target.dtdType == DtdType.ldml ? 0 : 1;
1845 target.dtdType = DtdType.valueOf(name);
1846 target.dtdData = dtdData = DtdData.getInstance(target.dtdType);
[all …]
/external/cldr/tools/java/org/unicode/cldr/draft/
DJsonConverter.java62 DtdType dtdType = null; in main() local
68 if (dtdType == null) { in main()
69 dtdType = DtdType.valueOf(parts.getElement(0)); in main()
71 rewrite(dtdType, oldParts, value, element2Attributes, parts); in main()
109 …private static boolean isDistinguishing(DtdType dtdType, final String element, final String attrib… in isDistinguishing() argument
119 return CLDRFile.isDistinguishing(dtdType, element, attribute); in isDistinguishing()
122 private static void rewrite(DtdType dtdType, XPathParts parts, String value, in rewrite() argument
143 if (!isDistinguishing(dtdType, element, attribute)) { in rewrite()
149 if (isDistinguishing(dtdType, element, attribute)) { in rewrite()
/external/cldr/tools/java/org/unicode/cldr/test/
DQuickCheck.java200 DtdType dtdType = null; in checkPaths() local
250 if (dtdType == null) { in checkPaths()
251 dtdType = DtdType.valueOf(parts.getElement(0)); in checkPaths()
258 if (CLDRFile.isDistinguishing(dtdType, element, attribute)) { in checkPaths()
DTestMisc.java507 DtdType dtdType = null; in checkDistinguishing() local
513 if (dtdType == null) { in checkDistinguishing()
514 dtdType = DtdType.fromPath(path); in checkDistinguishing()
529 if (CLDRFile.isDistinguishing(dtdType, element, attribute)) { in checkDistinguishing()

12