Home
last modified time | relevance | path

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

12

/external/icu/tools/cldr/cldr-to-icu/src/main/java/org/unicode/icu/tool/cldrtoicu/regex/
DRule.java37 CldrDataType dtdType, in staticRule() argument
44 return new StaticRule(dtdType, prefix, specs, pathRegex, xpathSpec, lineNumber); in staticRule()
49 CldrDataType dtdType, in dynamicRule() argument
57 return new DynamicRule(dtdType, pathRegex, specs, varString, varFn, xpathSpec, lineNumber); in dynamicRule()
61 private final CldrDataType dtdType; field in Rule
72 CldrDataType dtdType, in Rule() argument
78 this.dtdType = checkNotNull(dtdType); in Rule()
87 return dtdType; in getDataType()
138 CldrDataType dtdType, in StaticRule() argument
145 super(dtdType, prefix, specs, xpathSpec, lineNumber); in StaticRule()
[all …]
DRuleParser.java137 CldrDataType dtdType = CldrDataType.forXmlName(m.group(1)); in parseRule() local
148 dtdType, pathPrefix, resultSpecs, resolved.get(), xpathSpec, lineNumber) in parseRule()
150dtdType, pathPrefix, resultSpecs, varString, dynamicVarMap::get, xpathSpec, lineNumber); in parseRule()
/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()
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()
93 if (dtdData.dtdType == DtdType.ldml) { in handlePathValue()
123 …file_element_attribute.put(file, dtdData.dtdType, element, attribute, attributeValue, "deprecated"… in handlePathValue()
134 …file_element_attribute.put(file, dtdData.dtdType, element, attribute, attributeValue, reason.value… in handlePathValue()
137 … 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()
DChartDtdDelta.java148 .addCell(datum.dtdType) in writeContents()
191 if (SKIP_TYPE_ELEMENTS.containsEntry(dtdCurrent.dtdType, name)) { in checkNames()
207 System.out.println(dtdCurrent.dtdType + "\t" + name); in checkNames()
209 if (DEBUG_DTD == dtdCurrent.dtdType && name.contains(DEBUG_ELEMENT)) { in checkNames()
260 final DtdType dtdType; field in ChartDtdDelta.DiffElement
274 dtdType = dtdCurrent.dtdType; in DiffElement()
294 .add("dtdType", dtdType) in toString()
DGenerateItemCounts.java165 for (DtdType dtdType : DtdType.values()) { in checkBadAttributes()
166 if (dtdType == DtdType.ldmlICU) { in checkBadAttributes()
169 DtdData data = DtdData.getInstance(dtdType); in checkBadAttributes()
172 ELEMENTS_POSSIBLE.put(elementName, dtdType); in checkBadAttributes()
184 + "» for: " + dtdType + "\t" + elementName + "\t" + attributeName); in checkBadAttributes()
186 final R2<DtdType, String> attributeRow = Row.of(dtdType, elementName); in checkBadAttributes()
191 if (supp.isDeprecated(dtdType, elementName, attributeName, null)) { in checkBadAttributes()
194 if (!CLDRFile.isDistinguishing(dtdType, elementName, attributeName)) { in checkBadAttributes()
200 …errors.add("Warning, !disting, !leaf: " + dtdType + "\t" + elementName + "\t" + attributeName + "\… in checkBadAttributes()
216 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()
/external/cldr/tools/cldr-unittest/src/org/unicode/cldr/unittest/
DTestPaths.java272 + dtdData.dtdType in check()
277 data.put(dtdData.dtdType, elementName, "*", "*", true); in check()
283 + dtdData.dtdType in check()
290 + dtdData.dtdType in check()
300 + dtdData.dtdType in check()
307 data.put(dtdData.dtdType, elementName, attributeName, "*", true); in check()
308 data.put(dtdData.dtdType, elementName, attributeName, attributeValue, true); in check()
315 for (DtdType dtdType : DtdType.values()) { in show()
316 if (dtdType == DtdType.ldmlICU || in show()
317 …(inclusion <= 5 && dtdType == DtdType.platform)) { // keyboards/*/_platform.xml won't be in the li… in show()
[all …]
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 …]
DTestPathsModule.java120 protected DtdType dtdType; field in TestPathsModule.PathTest
127 this.dtdType = null; in start()
131 if (dtdType == null) { in test()
132 dtdType = DtdType.valueOf(fullParts.getElement(0)); in test()
212 boolean distinguishing = CLDRFile.isDistinguishing(dtdType, in test()
215 R3<DtdType, String, String> row = Row.of(dtdType, in test()
238 boolean hasq = CLDRFile.isOrdered(element, dtdType); in findFirstQ()
265 R2<DtdType, String> row = Row.of(dtdType, element); in findFirstQ()
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()
322 out.append("file\tCount:\t" + dtdData.dtdType + "\t" + fileCount + "\n"); in show()
323 out.append("element\tCount:\t" + dtdData.dtdType + "\t" + elementCount + "\n"); in show()
324 out.append("attribute\tCount:\t" + dtdData.dtdType + "\t" + attributeCount + "\n"); in show()
[all …]
DTestBasic.java201 DtdType type = parts.getDtdData().dtdType; in checkDtds()
570 DtdType dtdType = null; in TestPaths() local
580 if (dtdType == null) { in TestPaths()
581 dtdType = DtdType.fromPath(path); in TestPaths()
636 if (CLDRFile.isDistinguishing(dtdType, element, attribute)) { in TestPaths()
1454 DtdData dtdData = DtdData.getInstance(myHandler.dtdType); in checkDtdComparatorForResource()
1477 DtdData dtdData = DtdData.getInstance(myHandler.dtdType); in checkDtdComparatorFor()
1483 private DtdType dtdType; field in TestBasic.MyHandler
1487 dtdType = overrideDtdType; in MyHandler()
1492 if (dtdType == null) { in handlePathValue()
[all …]
/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.java139 public final List<DtdType> dtdType; field in CLDRPaths.DIRECTORIES
141 private DIRECTORIES(DtdType... dtdType) { in DIRECTORIES() argument
142 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<>()); 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
125 …private Attribute(DtdType dtdType, Element element2, String aName, Mode mode2, String[] split, Str… in Attribute() argument
163 attributeValueComparator = getAttributeValueComparator(dtdType, element.name, name); in Attribute()
337 this.dtdType = type; in DtdData()
343 …Attribute a = new Attribute(dtdType, nameToElement.get(eName), aName, Mode.forString(mode), FILLER… in addAttribute()
612 if (explicitDtdType != dtdType && explicitDtdType != dtdType.rootType) { in handleStartDtd()
747 elementMergeList.add(dtdType.toString()); in freeze()
920 Seen seen = new Seen(dtdType); in toString()
943 public Seen(DtdType dtdType) { in Seen() argument
944 if (dtdType.rootType == dtdType) { in Seen()
[all …]
DPathChecker.java66 …String, Map<String, ValueStatus>>> elementToAttrToAttrValueToStatus = seenEAV.get(dtdData.dtdType); in checkAttribute()
68 …ing, Map<String, ValueStatus>>> subAlready = seenEAV.putIfAbsent(dtdData.dtdType, elementToAttrToA… in checkAttribute()
DCLDRFile.java137 private DtdType dtdType; field in CLDRFile
212 this.dtdType = dataSource.getXMLNormalizingDtdType(); in CLDRFile()
213 this.dtdData = DtdData.getInstance(this.dtdType); 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()
1819 dtdData.dtdType == DtdType.ldml
1822 isSupplemental = target.dtdType == DtdType.ldml ? 0 : 1;
[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.java204 DtdType dtdType = null; in checkPaths() local
254 if (dtdType == null) { in checkPaths()
255 dtdType = DtdType.valueOf(parts.getElement(0)); in checkPaths()
262 if (CLDRFile.isDistinguishing(dtdType, element, attribute)) { in checkPaths()

12