Home
last modified time | relevance | path

Searched refs:dtdData (Results 1 – 18 of 18) sorted by relevance

/external/cldr/tools/java/org/unicode/cldr/util/
DDtdDataCheck.java47 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 …]
DXPathParts.java44 private DtdData dtdData = null; field in XPathParts
77 dtdData = null; in clear()
451 dtdData = DtdData.getInstance(DtdType.valueOf(element)); in addElement()
453 dtdData = null; in addElement()
534 dtdData = null; in addInternal()
963 return dtdData == null ? null in getAttributeComparator()
964 : dtdData.dtdType == DtdType.ldml ? CLDRFile.getAttributeOrdering() in getAttributeComparator()
965 : dtdData.getAttributeComparator(); in getAttributeComparator()
1021 dtdData = parts.dtdData; in set()
1226 xppClone.dtdData = this.dtdData; in cloneAsThawed()
[all …]
DAttributeValueValidity.java827 …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()
DCLDRFile.java136 private DtdData dtdData; field in CLDRFile
1497 private DtdData dtdData;
1541 if (dtdData.isOrdered(qName)) {
1797 dtdData.dtdType == DtdType.ldml
1798 ? CLDRFile.getAttributeOrdering() : dtdData.getAttributeComparator());
1846 target.dtdData = dtdData = DtdData.getInstance(target.dtdType);
3574 return dtdData != null ? dtdData
DDtdData.java384 private void setChildren(DtdData dtdData, String model, Set<String> precomments) { in setChildren() argument
400 CldrUtility.putNew(children, dtdData.elementFrom(part), children.size()); in setChildren()
/external/cldr/tools/cldr-unittest/src/org/unicode/cldr/unittest/
DTestPaths.java256 public boolean check(DtdData dtdData, XPathParts parts, String fullName) { in check() argument
259 if (dtdData.isDeprecated(elementName, "*", "*")) { in check()
264 + dtdData.dtdType in check()
269 data.put(dtdData.dtdType, elementName, "*", "*", true); in check()
272 if (dtdData.isDeprecated(elementName, attributeName, "*")) { in check()
274 + dtdData.dtdType in check()
281 if (dtdData.isDeprecated(elementName, attributeName, attributeValue)) { 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()
[all …]
DTestDtdData.java114 DtdData dtdData = DtdData.getInstance(DtdType.fromPath(path)); in TestRegularized() local
118 Set<String> pathForValues = dtdData.getRegularizedPaths(parts, extras); in TestRegularized()
172 DtdData dtdData = DtdData.getInstance(type); in TestValueAttributesWithChildren() local
173 Element special = dtdData.getElementFromName().get("special"); in TestValueAttributesWithChildren()
174 checkEmpty(m, type, dtdData.ROOT, special, new HashSet<Element>(), in TestValueAttributesWithChildren()
175 new ArrayList<Element>(Arrays.asList(dtdData.ROOT))); in TestValueAttributesWithChildren()
291 DtdData dtdData = DtdData.getInstance(type); in TestNewDtdData() local
292 for (Element element : dtdData.getElements()) { in TestNewDtdData()
293 boolean orderedNew = dtdData.isOrdered(element.name); in TestNewDtdData()
296 boolean deprecatedNew = dtdData.isDeprecated(element.name, "*", "*"); in TestNewDtdData()
[all …]
DTestAttributeValues.java223 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()
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()
339 + "\t" + dtdData.dtdType in show()
365 + "\t" + dtdData.dtdType in show()
DTestBasic.java226 DtdData dtdData = DtdData.getInstance(type); in showFoundElements() local
227 for (Element element : dtdData.getElementFromName().values()) { in showFoundElements()
1089 DtdData dtdData = DtdData.getInstance(type); in TestDtdCompleteness() local
1091 dtdData.getDescendents(dtdData.ROOT, descendents); in TestDtdCompleteness()
1092 Set<Element> elements = dtdData.getElements(); in TestDtdCompleteness()
1095 if (!descendents.contains(e) && !e.equals(dtdData.PCDATA) in TestDtdCompleteness()
1096 && !e.equals(dtdData.ANY)) { in TestDtdCompleteness()
1110 Set<Attribute> attributes = dtdData.getAttributes(); in TestDtdCompleteness()
1250 DtdData dtdData = DtdData.getInstance(type); in TestDtdCompatibility() local
1251 Map<String, Element> currentElementFromName = dtdData in TestDtdCompatibility()
[all …]
DTestPerf.java145 DtdData dtdData = DtdData.getInstance(DtdType.ldml); in TestPathComparison() local
155 Comparator<String> comp = dtdData.getDtdComparator(avc); in TestPathComparison()
DTestPathHeader.java115 DtdData dtdData = null; in tempTestCompletenessLdmlDtd() local
1124 DtdData dtdData = DtdData.getInstance(dtdType); in TestCompletenessNonLdmlDtd() local
1146 pathChecker.checkPathHeader(dtdData, path); in TestCompletenessNonLdmlDtd()
1165 public void checkPathHeader(DtdData dtdData, String rawPath) { in checkPathHeader() argument
1167 if (dtdData.isMetadata(pathPlain)) { in checkPathHeader()
1170 if (dtdData.isDeprecated(pathPlain)) { in checkPathHeader()
1174 Set<String> fixedPaths = dtdData.getRegularizedPaths(pathPlain, extras); in checkPathHeader()
DTestCoverageLevel.java412 DtdData dtdData = DtdData.getInstance(DtdType.ldml);
413 Element numbersElement = dtdData.getElementFromName().get("numbers");
/external/cldr/tools/java/org/unicode/cldr/tool/
DVerifyAttributeValues.java59 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()
DDiffCldr.java101 DtdData dtdData = cldrFile.getDtdData(); in main() local
107 if (dtdData.isMetadata(pathPlain)) { in main()
119 Set<String> pathForValues = dtdData.getRegularizedPaths(pathPlain, extras); in main()
DCheckHtmlFiles.java180 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()
DShowStarredCoverage.java221 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()
DChartDelta.java1001 DtdData dtdData = null; in fillData() local
1013 dtdData = DtdData.getInstance(dtdType); in fillData()
1016 if (dtdData.isMetadata(pathPlain)) { in fillData()
1019 Set<String> pathForValues = dtdData.getRegularizedPaths(pathPlain, extras); in fillData()
DCLDRModify.java96 private static final DtdData dtdData = DtdData.getInstance(DtdType.ldml); field in CLDRModify
1022 if (dtdData.isDeprecated(element, "*", "*")) {
1029 if (dtdData.isDeprecated(element, attribute, value)) {