/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 | XPathParts.java | 38 private DtdData dtdData; field in XPathParts 82 dtdData = null; in clear() 469 dtdData = DtdData.getInstance(DtdType.valueOf(element)); in addElement() 471 dtdData = null; in addElement() 943 return dtdData == null ? null in getAttributeComparator() 944 : dtdData.dtdType == DtdType.ldml ? CLDRFile.getAttributeOrdering() in getAttributeComparator() 945 : dtdData.getAttributeComparator(); in getAttributeComparator() 996 dtdData = parts.dtdData; in set() 1212 return dtdData; in getDtdData()
|
D | AttributeValueValidity.java | 827 …public static Status check(DtdData dtdData, String element, String attribute, String attributeValu… in check() argument 828 if (dtdData.isDeprecated(element, attribute, attributeValue)) { in check() 834 … MatcherPattern>> element_attribute_validity = dtd_element_attribute_validity.get(dtdData.dtdType); in check()
|
D | CLDRFile.java | 129 private DtdData dtdData; field in CLDRFile 1547 private DtdData dtdData; 1592 if (dtdData.isOrdered(qName)) { 1851 dtdData.dtdType == DtdType.ldml 1852 ? CLDRFile.getAttributeOrdering() : dtdData.getAttributeComparator()); 1908 target.dtdData = dtdData = DtdData.getInstance(target.dtdType); 3685 return dtdData != null ? dtdData
|
D | DtdData.java | 324 private void setChildren(DtdData dtdData, String model, Set<String> precomments) { in setChildren() argument 340 CldrUtility.putNew(children, dtdData.elementFrom(part), children.size()); in setChildren()
|
/external/cldr/tools/cldr-unittest/src/org/unicode/cldr/unittest/ |
D | TestPaths.java | 198 public boolean check(DtdData dtdData, XPathParts parts, String fullName) { in check() argument 201 if (dtdData.isDeprecated(elementName, "*", "*")) { in check() 206 + dtdData.dtdType in check() 211 data.put(dtdData.dtdType, elementName, "*", "*", true); in check() 214 if (dtdData.isDeprecated(elementName, attributeName, "*")) { in check() 216 + dtdData.dtdType in check() 223 if (dtdData.isDeprecated(elementName, attributeName, attributeValue)) { in check() 225 + dtdData.dtdType in check() 232 data.put(dtdData.dtdType, elementName, attributeName, "*", true); in check() 233 data.put(dtdData.dtdType, elementName, attributeName, attributeValue, true); in check() [all …]
|
D | TestDtdData.java | 109 DtdData dtdData = DtdData.getInstance(DtdType.fromPath(path)); in TestRegularized() local 113 Set<String> pathForValues = dtdData.getRegularizedPaths(parts, extras); in TestRegularized() 167 DtdData dtdData = DtdData.getInstance(type); in TestValueAttributesWithChildren() local 168 Element special = dtdData.getElementFromName().get("special"); in TestValueAttributesWithChildren() 169 checkEmpty(m, type, dtdData.ROOT, special, new HashSet<Element>(), in TestValueAttributesWithChildren() 170 new ArrayList<Element>(Arrays.asList(dtdData.ROOT))); in TestValueAttributesWithChildren() 286 DtdData dtdData = DtdData.getInstance(type); in TestNewDtdData() local 287 for (Element element : dtdData.getElements()) { in TestNewDtdData() 288 boolean orderedNew = dtdData.isOrdered(element.name); in TestNewDtdData() 291 boolean deprecatedNew = dtdData.isDeprecated(element.name, "*", "*"); in TestNewDtdData() [all …]
|
D | TestBasic.java | 221 DtdData dtdData = DtdData.getInstance(type); in showFoundElements() local 222 for (Element element : dtdData.getElementFromName().values()) { in showFoundElements() 1098 DtdData dtdData = DtdData.getInstance(type); in TestDtdCompleteness() local 1100 dtdData.getDescendents(dtdData.ROOT, descendents); in TestDtdCompleteness() 1101 Set<Element> elements = dtdData.getElements(); in TestDtdCompleteness() 1104 if (!descendents.contains(e) && !e.equals(dtdData.PCDATA) in TestDtdCompleteness() 1105 && !e.equals(dtdData.ANY)) { in TestDtdCompleteness() 1119 Set<Attribute> attributes = dtdData.getAttributes(); in TestDtdCompleteness() 1260 DtdData dtdData = DtdData.getInstance(type); in TestDtdCompatibility() local 1261 Map<String, Element> currentElementFromName = dtdData in TestDtdCompatibility() [all …]
|
D | TestPerf.java | 139 DtdData dtdData = DtdData.getInstance(DtdType.ldml); in TestXPathPartsWithComparators() local 141 XPathParts newParts = new XPathParts(dtdData.getAttributeComparator(), in TestXPathPartsWithComparators() 150 DtdData dtdData = DtdData.getInstance(DtdType.ldml); in TestPathComparison() local 160 Comparator<String> comp = dtdData.getDtdComparator(avc); in TestPathComparison()
|
D | TestPathHeader.java | 113 DtdData dtdData = null; in tempTestCompletenessLdmlDtd() local 1119 DtdData dtdData = DtdData.getInstance(dtdType); in TestCompletenessNonLdmlDtd() local 1141 pathChecker.checkPathHeader(dtdData, path); in TestCompletenessNonLdmlDtd() 1160 public void checkPathHeader(DtdData dtdData, String rawPath) { in checkPathHeader() argument 1162 if (dtdData.isMetadata(pathPlain)) { in checkPathHeader() 1165 if (dtdData.isDeprecated(pathPlain)) { in checkPathHeader() 1169 Set<String> fixedPaths = dtdData.getRegularizedPaths(pathPlain, extras); in checkPathHeader()
|
D | TestCoverageLevel.java | 405 DtdData dtdData = DtdData.getInstance(DtdType.ldml); 406 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 90 if (dtdData == null) { in handlePathValue() 91 dtdData = DtdData.getInstance(DtdType.valueOf(parts.getElement(0))); in handlePathValue() 92 if (dtdData.dtdType == DtdType.ldml) { in handlePathValue() 112 Element elementInfo = dtdData.getElementFromName().get(element); in handlePathValue() 121 if (dtdData.isDeprecated(element, attribute, attributeValue)) { in handlePathValue() 122 …file_element_attribute.put(file, dtdData.dtdType, element, attribute, attributeValue, "deprecated"… in handlePathValue() 127 …Status haveTest = AttributeValueValidity.check(dtdData, element, attribute, attributeValue, reason… 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()
|
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 | 180 DtdData dtdData = DtdData.getInstance(type); in checkForDtd() local 181 Set<Element> elements = dtdData.getElements(); in checkForDtd() 184 || element.equals(dtdData.PCDATA) in checkForDtd() 185 || element.equals(dtdData.ANY)) continue; in checkForDtd() 188 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 | 982 DtdData dtdData = null; in fillData() local 994 dtdData = DtdData.getInstance(dtdType); in fillData() 997 if (dtdData.isMetadata(pathPlain)) { in fillData() 1000 Set<String> pathForValues = dtdData.getRegularizedPaths(pathPlain, extras); in fillData()
|
D | CLDRModify.java | 95 private static final DtdData dtdData = DtdData.getInstance(DtdType.ldml); field in CLDRModify 1021 if (dtdData.isDeprecated(element, "*", "*")) { 1028 if (dtdData.isDeprecated(element, attribute, value)) {
|