/external/cldr/tools/java/org/unicode/cldr/util/ |
D | DtdDataCheck.java | 47 private DtdData dtdData; field in DtdDataCheck.Walker 49 public Walker(DtdData dtdData) { in Walker() argument 50 this.dtdData = dtdData; in Walker() 54 for (Entry<String, Element> ee : dtdData.getElementFromName().entrySet()) { in showSuppressed() 59 … System.out.println(dtdData.ROOT + "\t" + element.name + "\t" + a.name + "\t" + a.defaultValue); in showSuppressed() 68 if (dtdData.dtdType == DtdType.ldml && elementsMissingDraft.size() != 0) { in show() 72 if (dtdData.dtdType == DtdType.ldml && elementsMissingAlt.size() != 0) { in show() 84 … for (Entry<String, Set<Attribute>> entry : dtdData.getAttributesFromName().keyValuesSet()) { 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() [all …]
|
D | PathChecker.java | 45 DtdData dtdData = parts.getDtdData(); in checkPath() local 56 ok &= checkAttribute(dtdData, element, attribute, attrValue, errors); in checkPath() 63 …private boolean checkAttribute(DtdData dtdData, String element, String attribute, String attrValue… in checkAttribute() argument 66 …String, Map<String, ValueStatus>>> elementToAttrToAttrValueToStatus = seenEAV.get(dtdData.dtdType); in checkAttribute() 68 … Map<String, Map<String, ValueStatus>>> subAlready = seenEAV.putIfAbsent(dtdData.dtdType, elementT… in checkAttribute() 89 valueStatus = dtdData.getValueStatus(element, attribute, attrValue); in checkAttribute() 92 dtdData.getValueStatus(element, attribute, attrValue); in checkAttribute()
|
D | DtdPathIterator.java | 30 public DtdPathIterator(DtdData dtdData) { in DtdPathIterator() argument 32 this.dtdData = dtdData; in DtdPathIterator() 36 final DtdData dtdData; field in DtdPathIterator 45 visit(dtdData.ROOT, function, sample); in visit()
|
D | XPathParts.java | 47 private DtdData dtdData = null; field in XPathParts 81 dtdData = null; in clear() 498 dtdData = DtdData.getInstance(DtdType.valueOf(element), dir); in addElement() 500 dtdData = null; in addElement() 593 dtdData = null; in addInternal() 734 return dtdData.getDtdComparator().xpathComparator(this, that); in compareTo() 1017 return dtdData == null ? null in getAttributeComparator() 1018 : dtdData.dtdType == DtdType.ldml ? CLDRFile.getAttributeOrdering() in getAttributeComparator() 1019 : dtdData.getAttributeComparator(); in getAttributeComparator() 1285 xppClone.dtdData = this.dtdData; in cloneAsThawed() [all …]
|
D | XMLNormalizingLoader.java | 187 private DtdData dtdData; field in XMLNormalizingLoader.XMLNormalizingHandler 240 if (dtdData.isOrdered(qName)) { in push() 463 dtdData.dtdType == DtdType.ldml in startElement() 465 : dtdData.getAttributeComparator()); in startElement() 513 dtdData = DtdData.getInstance(source.getXMLNormalizingDtdType()); in startDTD()
|
D | AttributeValueValidity.java | 829 …public static Status check(DtdData dtdData, String element, String attribute, String attributeValu… in check() argument 830 if (dtdData.isDeprecated(element, attribute, attributeValue)) { in check() 836 … MatcherPattern>> element_attribute_validity = dtd_element_attribute_validity.get(dtdData.dtdType); in check()
|
D | CLDRFile.java | 138 private DtdData dtdData; field in CLDRFile 213 this.dtdData = DtdData.getInstance(this.dtdType); in CLDRFile() 1518 private DtdData dtdData; 1562 if (dtdData.isOrdered(qName)) { 1819 dtdData.dtdType == DtdType.ldml 1821 : dtdData.getAttributeComparator()); 1872 target.dtdData = dtdData = DtdData.getInstance(target.dtdType); 3736 return dtdData != null ? dtdData
|
D | DtdData.java | 389 private void setChildren(DtdData dtdData, String model, Set<String> precomments) { in setChildren() argument 405 CldrUtility.putNew(children, dtdData.elementFrom(part), children.size()); in setChildren()
|
/external/cldr/tools/cldr-unittest/src/org/unicode/cldr/unittest/ |
D | TestPaths.java | 264 public boolean check(DtdData dtdData, XPathParts parts, String fullName) { in check() argument 267 if (dtdData.isDeprecated(elementName, "*", "*")) { in check() 272 + dtdData.dtdType in check() 277 data.put(dtdData.dtdType, elementName, "*", "*", true); in check() 280 if (dtdData.isDeprecated(elementName, attributeName, "*")) { in check() 283 + dtdData.dtdType in check() 290 + dtdData.dtdType in check() 298 if (dtdData.isDeprecated(elementName, attributeName, attributeValue)) { in check() 300 + dtdData.dtdType in check() 307 data.put(dtdData.dtdType, elementName, attributeName, "*", true); in check() [all …]
|
D | TestAttributeValues.java | 223 private final DtdData dtdData; field in TestAttributeValues.PathChecker 231 public PathChecker(TestFmwk testLog, DtdData dtdData) { in PathChecker() argument 233 this.dtdData = dtdData; in PathChecker() 235 needsTesting = dtdData.getNonEnumerated(_matchValues); in PathChecker() 291 ValueStatus valueStatus = dtdData.getValueStatus(element, attribute, attrValue); in checkAttribute() 294 dtdData.getValueStatus(element, attribute, attrValue); in checkAttribute() 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() 344 + "\t" + dtdData.dtdType in show() [all …]
|
D | TestDtdData.java | 118 DtdData dtdData = DtdData.getInstance(DtdType.fromPath(path)); in TestRegularized() local 122 Set<String> pathForValues = dtdData.getRegularizedPaths(parts, extras); in TestRegularized() 176 DtdData dtdData = DtdData.getInstance(type); in TestValueAttributesWithChildren() local 177 Element special = dtdData.getElementFromName().get("special"); in TestValueAttributesWithChildren() 178 checkEmpty(m, type, dtdData.ROOT, special, new HashSet<Element>(), in TestValueAttributesWithChildren() 179 new ArrayList<>(Arrays.asList(dtdData.ROOT))); in TestValueAttributesWithChildren() 295 DtdData dtdData = DtdData.getInstance(type); in TestNewDtdData() local 296 for (Element element : dtdData.getElements()) { in TestNewDtdData() 297 boolean orderedNew = dtdData.isOrdered(element.name); in TestNewDtdData() 300 boolean deprecatedNew = dtdData.isDeprecated(element.name, "*", "*"); in TestNewDtdData() [all …]
|
D | TestBasic.java | 227 DtdData dtdData = DtdData.getInstance(type); in showFoundElements() local 228 for (Element element : dtdData.getElementFromName().values()) { in showFoundElements() 1101 DtdData dtdData = DtdData.getInstance(type); in TestDtdCompleteness() local 1103 dtdData.getDescendents(dtdData.ROOT, descendents); in TestDtdCompleteness() 1104 Set<Element> elements = dtdData.getElements(); in TestDtdCompleteness() 1107 if (!descendents.contains(e) && !e.equals(dtdData.PCDATA) in TestDtdCompleteness() 1108 && !e.equals(dtdData.ANY)) { in TestDtdCompleteness() 1122 Set<Attribute> attributes = dtdData.getAttributes(); in TestDtdCompleteness() 1262 DtdData dtdData = DtdData.getInstance(type); in TestDtdCompatibility() local 1263 Map<String, Element> currentElementFromName = dtdData in TestDtdCompatibility() [all …]
|
D | TestPerf.java | 144 DtdData dtdData = DtdData.getInstance(DtdType.ldml); in TestPathComparison() local 154 Comparator<String> comp = dtdData.getDtdComparator(avc); in TestPathComparison()
|
D | TestPathHeader.java | 115 DtdData dtdData = null; in tempTestCompletenessLdmlDtd() local 1221 DtdData dtdData = DtdData.getInstance(dtdType); in TestCompletenessNonLdmlDtd() local 1244 pathChecker.checkPathHeader(dtdData, path); in TestCompletenessNonLdmlDtd() 1262 public void checkPathHeader(DtdData dtdData, String rawPath) { in checkPathHeader() argument 1264 if (dtdData.isMetadata(pathPlain)) { in checkPathHeader() 1267 if (dtdData.isDeprecated(pathPlain)) { in checkPathHeader() 1271 Set<String> fixedPaths = dtdData.getRegularizedPaths(pathPlain, extras); in checkPathHeader()
|
D | TestCoverageLevel.java | 420 DtdData dtdData = DtdData.getInstance(DtdType.ldml); 421 Element numbersElement = dtdData.getElementFromName().get("numbers");
|
/external/cldr/tools/java/org/unicode/cldr/tool/ |
D | VerifyAttributeValues.java | 59 private DtdData dtdData; // set from first element read field in VerifyAttributeValues 91 if (dtdData == null) { in handlePathValue() 92 dtdData = DtdData.getInstance(DtdType.valueOf(parts.getElement(0))); in handlePathValue() 93 if (dtdData.dtdType == DtdType.ldml) { in handlePathValue() 113 Element elementInfo = dtdData.getElementFromName().get(element); in handlePathValue() 122 if (dtdData.isDeprecated(element, attribute, attributeValue)) { in handlePathValue() 123 …file_element_attribute.put(file, dtdData.dtdType, element, attribute, attributeValue, "deprecated"… in handlePathValue() 128 …Status haveTest = AttributeValueValidity.check(dtdData, element, attribute, attributeValue, reason… 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()
|
D | DiffCldr.java | 101 DtdData dtdData = cldrFile.getDtdData(); in main() local 107 if (dtdData.isMetadata(pathPlain)) { in main() 119 Set<String> pathForValues = dtdData.getRegularizedPaths(pathPlain, extras); in main()
|
D | CheckHtmlFiles.java | 181 DtdData dtdData = DtdData.getInstance(type); in checkForDtd() local 182 Set<Element> elements = dtdData.getElements(); in checkForDtd() 185 || element.equals(dtdData.PCDATA) in checkForDtd() 186 || element.equals(dtdData.ANY)) continue; in checkForDtd() 189 Set<Attribute> attributes = dtdData.getAttributes(); in checkForDtd()
|
D | ShowStarredCoverage.java | 221 DtdData dtdData = DtdData.getInstance(dtdType); in doNonLdml() local 232 if (dtdData.isMetadata(pathPlain)) { in doNonLdml() 235 Set<String> pathForValues = dtdData.getRegularizedPaths(pathPlain, extras); in doNonLdml()
|
D | ChartDelta.java | 1024 DtdData dtdData = null; in fillData() local 1042 dtdData = DtdData.getInstance(dtdType, CLDR_BASE_DIR); in fillData() 1046 if (dtdData.isMetadata(pathPlain)) { in fillData() 1058 Set<String> pathForValues = dtdData.getRegularizedPaths(pathPlain, extras); in fillData()
|
D | CLDRModify.java | 97 private static final DtdData dtdData = DtdData.getInstance(DtdType.ldml); field in CLDRModify 1031 if (dtdData.isDeprecated(element, "*", "*")) { 1038 if (dtdData.isDeprecated(element, attribute, value)) {
|