Home
last modified time | relevance | path

Searched refs:DtdType (Results 1 – 25 of 52) sorted by relevance

123

/external/cldr/tools/java/org/unicode/cldr/util/
DCLDRPaths.java126 common_bcp47(DtdType.ldmlBCP47),
128 …common_annotations(DtdType.ldml), common_casing(DtdType.ldml), common_collation(DtdType.ldml), com…
129 DtdType.ldml), common_segments(DtdType.ldml), common_subdivisions(DtdType.ldml),
131 …common_supplemental(DtdType.supplementalData), common_transforms(DtdType.supplementalData), common…
133 …keyboards_android(DtdType.keyboard, DtdType.platform), keyboards_chromeos(DtdType.keyboard, DtdTyp…
134 DtdType.platform), keyboards_osx(DtdType.keyboard,
135DtdType.platform), keyboards_und(DtdType.keyboard, DtdType.platform), keyboards_windows(DtdType.ke…
138 public final List<DtdType> dtdType;
140 private DIRECTORIES(DtdType... dtdType) { in DIRECTORIES()
DDtdType.java10 public enum DtdType { enum
31 public static final Set<DtdType> STANDARD_SET = ImmutableSet.of(
37 public final DtdType rootType;
41 private DtdType(String dtdPath) { in DtdType() method in DtdType
45 private DtdType(String dtdPath, DtdType realType) { in DtdType() method in DtdType
49 private DtdType(String dtdPath, String firstVersion, DtdType realType, String... directories) { in DtdType() method in DtdType
56 public static DtdType fromPath(String elementOrPath) { in fromPath()
59 return DtdType.valueOf(m.group(1)); in fromPath()
DElementAttributeInfo.java28 private DtdType dtdType;
34 …static Map<String, Map<DtdType, ElementAttributeInfo>> cache = new HashMap<String, Map<DtdType, El…
38 public static final ElementAttributeInfo getInstance(DtdType dtdType) { in getInstance()
42 public static final ElementAttributeInfo getInstance(String commonDirectory, DtdType dtdType) { in getInstance()
43 Map<DtdType, ElementAttributeInfo> result = cache.get(commonDirectory); in getInstance()
56 result = new HashMap<DtdType, ElementAttributeInfo>(); in getInstance()
58 … result.put(DtdType.ldml, new ElementAttributeInfo(canonicalCommonDirectory + "/main/root.xml", in getInstance()
59 DtdType.ldml)); in getInstance()
60 … result.put(DtdType.supplementalData, new ElementAttributeInfo(canonicalCommonDirectory in getInstance()
61 + "/supplemental/plurals.xml", DtdType.supplementalData)); in getInstance()
[all …]
DDtdDataCheck.java32 …static final Set<Row.R4<DtdType, String, String, String>> DEPRECATED = new LinkedHashSet<Row.R4<Dt…
33 …static final Map<Row.R2<DtdType, String>, Relation<Boolean, String>> TYPE_ATTRIBUTE_TO_DIST_ELEMEN…
68 if (dtdData.dtdType == DtdType.ldml && elementsMissingDraft.size() != 0) { in show()
72 if (dtdData.dtdType == DtdType.ldml && elementsMissingAlt.size() != 0) { in show()
140 R2<DtdType, String> key = Row.of(dtdData.dtdType, a.name); in show()
163 DtdType[] args2 = DtdType.values(); in main()
166 for (DtdType arg : args2) { in main()
174 DtdType type = DtdType.valueOf(arg); in main()
186 if (CHECK_CORRECTNESS && type == DtdType.ldml) { in main()
193 dtdData = DtdData.getInstance(DtdType.ldml); in main()
[all …]
DAttributeValueValidity.java46 …private static final Set<DtdType> ALL_DTDs = Collections.unmodifiableSet(EnumSet.allOf(DtdType.cla…
50 …private static Map<DtdType, Map<String, Map<String, MatcherPattern>>> dtd_element_attribute_validi…
213 Set<DtdType> dtds = item.getDtds();
217 for (DtdType dtdType : dtds) {
319 public static Relation<String, String> getAllPossibleMissing(DtdType dtdType) { in getAllPossibleMissing()
322 if (dtdType == DtdType.ldmlICU) { in getAllPossibleMissing()
753 … public AttributeValueSpec(DtdType type, String element, String attribute, String attributeValue) { in AttributeValueSpec()
760 public final DtdType type;
849 public static Set<R3<DtdType, String, String>> getTodoTests() { in getTodoTests()
850 Set<Row.R3<DtdType, String, String>> result = new LinkedHashSet<>(); in getTodoTests()
[all …]
DDtdData.java56 public final DtdType dtdType;
117 …private Attribute(DtdType dtdType, Element element2, String aName, Mode mode2, String[] split, Str… in Attribute()
331 private DtdData(DtdType type, String version) { in DtdData()
604 DtdType explicitDtdType = DtdType.valueOf(name); in handleStartDtd()
659 public static DtdData getInstance(DtdType type) { in getInstance()
666 public static DtdData getInstance(DtdType type, String version) { in getInstance()
673 …private static final ConcurrentMap<Pair<DtdType, File>, DtdData> CACHE = new ConcurrentHashMap<>();
682 public static DtdData getInstance(DtdType type, File directory) { in getInstance()
683 Pair<DtdType, File> key = new Pair<>(type, directory); in getInstance()
688 private static DtdData getInstance(DtdType type, String version, File directory) { in getInstance()
[all …]
/external/cldr/tools/java/org/unicode/cldr/api/
DCldrDataType.java20 import org.unicode.cldr.util.DtdType;
38 BCP47(DtdType.ldmlBCP47),
43 SUPPLEMENTAL(DtdType.supplementalData),
48 LDML(DtdType.ldml, DtdType.ldmlICU);
65 static CldrDataType forRawType(DtdType rawType) { in forRawType()
69 private final DtdType mainType;
70 private final ImmutableList<DtdType> extraTypes;
74 CldrDataType(DtdType mainType, DtdType... extraTypes) { in CldrDataType()
113 private static Stream<Element> elementsFrom(DtdType dataType) { in elementsFrom()
121 for (DtdType t : extraTypes) { in getAttribute()
/external/cldr/tools/java/org/unicode/cldr/tool/
DShowDtdDiffs.java17 import org.unicode.cldr.util.DtdType;
25 static Set<DtdType> TYPES = EnumSet.allOf(DtdType.class);
27 TYPES.remove(DtdType.ldmlICU);
30 static final Map<DtdType, String> FIRST_VERSION = new EnumMap<>(DtdType.class);
32 FIRST_VERSION.put(DtdType.ldmlBCP47, "1.7.2"); in FIRST_VERSION.put()
33 FIRST_VERSION.put(DtdType.keyboard, "22.1"); in FIRST_VERSION.put()
34 FIRST_VERSION.put(DtdType.platform, "22.1"); in FIRST_VERSION.put()
41 for (DtdType type : TYPES) { in main()
159 private static boolean isDeprecated(DtdType dtdType, String elementName, String attributeName) { in isDeprecated()
DGenerateItemCounts.java33 import org.unicode.cldr.util.DtdType;
152 …static final Relation<String, DtdType> ELEMENTS_OCCURRING = Relation.of(new TreeMap(), TreeSet.cla…
153 …static final Relation<String, DtdType> ELEMENTS_POSSIBLE = Relation.of(new TreeMap(), TreeSet.clas…
154 …static final Relation<String, Row.R2<DtdType, String>> ATTRIBUTES_OCCURRING = Relation.of(new Tree…
155 …static final Relation<String, Row.R2<DtdType, String>> ATTRIBUTES_POSSIBLE = Relation.of(new TreeM…
164 for (DtdType dtdType : DtdType.values()) { in checkBadAttributes()
165 if (dtdType == DtdType.ldmlICU) { in checkBadAttributes()
185 final R2<DtdType, String> attributeRow = Row.of(dtdType, elementName); in checkBadAttributes()
195 … final Set<R2<DtdType, String>> attributeRows = ATTRIBUTES_OCCURRING.get(attributeName); in checkBadAttributes()
208 for (Entry<String, Set<DtdType>> x : ELEMENTS_POSSIBLE.keyValuesSet()) { in checkBadAttributes()
[all …]
DChartDtdDelta.java21 import org.unicode.cldr.util.DtdType;
101 for (DtdType type : TYPES) { in writeContents()
149 static Set<DtdType> TYPES = EnumSet.allOf(DtdType.class);
151 TYPES.remove(DtdType.ldmlICU);
154 static final Map<DtdType, String> FIRST_VERSION = new EnumMap<>(DtdType.class);
156 FIRST_VERSION.put(DtdType.ldmlBCP47, "1.7.2"); in FIRST_VERSION.put()
157 FIRST_VERSION.put(DtdType.keyboard, "22.1"); in FIRST_VERSION.put()
158 FIRST_VERSION.put(DtdType.platform, "22.1"); in FIRST_VERSION.put()
166 static final DtdType DEBUG_DTD = null; // set to enable
244 final DtdType dtdType;
[all …]
DGenerateDtd.java10 import org.unicode.cldr.util.DtdType;
20 for (DtdType type : DtdType.values()) { in main()
21 if (type == DtdType.ldmlICU) { in main()
DGenerateReformattedXml.java4 import org.unicode.cldr.util.DtdType;
8 for (DtdType dtdType : DtdType.values()) { in main()
DCheckHtmlFiles.java39 import org.unicode.cldr.util.DtdType;
177 …M4<String, String, DtdType, Boolean> typeToElements = ChainedMap.of(new TreeMap(), new TreeMap(), … in checkForDtd()
178 for (DtdType type : DtdType.values()) { in checkForDtd()
179 if (type == DtdType.ldmlICU) continue; in checkForDtd()
206 …ChainedMap.M4<String, String, DtdType, Comparison> status = ChainedMap.of(new TreeMap(), new TreeM… in checkForDtd()
207 for (R4<String, String, DtdType, Boolean> entry : typeToElements.rows()) { in checkForDtd()
210 final DtdType dtdType = entry.get2(); in checkForDtd()
223 status.put(extraItem.getKey(), extraItem.getValue(), DtdType.ldmlICU, Comparison.extra); in checkForDtd()
226 for (Entry<String, Map<String, Map<DtdType, Comparison>>> entry1 : status) { in checkForDtd()
229 … final Map<String, Map<DtdType, Comparison>> itemToDtdTypeToComparison = entry1.getValue(); in checkForDtd()
[all …]
DShowStarredCoverage.java30 import org.unicode.cldr.util.DtdType;
94 Set<DtdType> dtdTypes = EnumSet.noneOf(DtdType.class); in main()
97 dtdTypes.add(DtdType.valueOf(value)); in main()
107 for (DtdType dtdType : DtdType.values()) { in main()
112 if (dtdType == DtdType.ldml) { in main()
203 …private static void doNonLdml(DtdType dtdType, String dir, String fileLocale, M3<Level, PathHeader… in doNonLdml()
320 if (config.getSupplementalDataInfo().isDeprecated(DtdType.ldml, path)) { in doLdml()
DVerifyAttributeValues.java26 import org.unicode.cldr.util.DtdType;
50 …public void put(String file, DtdType dtdType, String element, String attribute, String attributeVa… in put()
91 dtdData = DtdData.getInstance(DtdType.valueOf(parts.getElement(0))); in handlePathValue()
92 if (dtdData.dtdType == DtdType.ldml) { in handlePathValue()
/external/cldr/tools/cldr-unittest/src/org/unicode/cldr/unittest/
DTestDTDAttributes.java16 import org.unicode.cldr.util.DtdType;
49 private void checkOrdering(DtdType type) { in checkOrdering()
105 for (DtdType type : DtdType.values()) { in TestDistinguishing()
106 if (type == DtdType.ldmlICU) { in TestDistinguishing()
113 private void showDistinguishing(DtdType dtdType) { in showDistinguishing()
194 checkAttributes(DtdType.ldml, DtdType.supplementalData); in TestAttributes()
195 checkAttributes(DtdType.ldml, DtdType.ldmlBCP47); in TestAttributes()
196 checkAttributes(DtdType.ldmlBCP47, DtdType.supplementalData); in TestAttributes()
199 private void checkAttributes(DtdType dtdType1, DtdType dtdType2) { in checkAttributes()
249 private void checkElements(DtdType dtdType1, DtdType dtdType2) { in checkElements()
[all …]
DTestPathsModule.java19 import org.unicode.cldr.util.DtdType;
118 protected DtdType dtdType;
130 dtdType = DtdType.valueOf(fullParts.getElement(0)); in test()
190 private Relation<R3<DtdType, String, String>, String> nonFinalNonDistingishing = Relation
191 .of(new TreeMap<R3<DtdType, String, String>, Set<String>>(),
194 private Relation<R2<DtdType, String>, String> illFormedOrder = Relation
195 .of(new TreeMap<R2<DtdType, String>, Set<String>>(),
212 R3<DtdType, String, String> row = Row.of(dtdType, in test()
262 R2<DtdType, String> row = Row.of(dtdType, element); in findFirstQ()
273 for (R3<DtdType, String, String> item : nonFinalNonDistingishing in finish()
[all …]
DTestBasic.java44 import org.unicode.cldr.util.DtdType;
141 Relation<Row.R2<DtdType, String>, String> foundAttributes = Relation in TestDtds()
142 .of(new TreeMap<Row.R2<DtdType, String>, Set<String>>(), in TestDtds()
168 Relation<R2<DtdType, String>, String> foundAttributes, in checkDtds() argument
200 DtdType type = parts.getDtdData().dtdType; in checkDtds()
203 R2<DtdType, String> typeElement = Row.of(type, in checkDtds()
221 Relation<Row.R2<DtdType, String>, String> foundAttributes) { in showFoundElements() argument
222 Relation<Row.R2<DtdType, String>, String> theoryAttributes = Relation in showFoundElements()
223 .of(new TreeMap<Row.R2<DtdType, String>, Set<String>>(), in showFoundElements()
225 for (DtdType type : DtdType.values()) { in showFoundElements()
[all …]
DTestDtdData.java23 import org.unicode.cldr.util.DtdType;
114 DtdData dtdData = DtdData.getInstance(DtdType.fromPath(path)); in TestRegularized()
153 DtdType dtdTypeFromPath = DtdType.fromPath(pathValue.getFirst()); in TestDirectories()
168 for (DtdType type : DtdType.values()) { in TestValueAttributesWithChildren()
169 if (type == DtdType.ldmlICU) { in TestValueAttributesWithChildren()
198 …private void checkEmpty(Multimap<String, String> m, DtdType type, Element element, Element special… in checkEmpty()
287 for (DtdType type : DtdType.values()) { in TestNewDtdData()
288 if (type == DtdType.ldmlICU) { in TestNewDtdData()
428 public static boolean isOrderedOld(String element, DtdType type) { in isOrderedOld()
432 public boolean isDistinguishingOld(DtdType dtdType, String elementName, String attribute) { in isDistinguishingOld()
DTestComparisonBuilder.java16 import org.unicode.cldr.util.DtdType;
57 for (DtdType dtd : DtdType.values()) { in dtdAttributes()
78 for (DtdType dtd : DtdType.values()) { in dtdAttributes()
92 for (DtdType dtd : DtdType.values()) { in TestDtdElements()
DTestPaths.java28 import org.unicode.cldr.util.DtdType;
241 M5<DtdType, String, String, String, Boolean> data = ChainedMap.of(
242 new HashMap<DtdType, Object>(),
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()
388 DtdType type = null; in TestNonLdml()
396 type = DtdType.valueOf(parts.getElement(0)); in TestNonLdml()
446 … Pair<String, String> pair = Pair.of(type == DtdType.ldml ? file : type.toString(), cleaned); in TestNonLdml()
DTestPerf.java14 import org.unicode.cldr.util.DtdType;
40 CLDRFile.getComparator(DtdType.ldml));
145 DtdData dtdData = DtdData.getInstance(DtdType.ldml); in TestPathComparison()
161 checkCost(sortedArray, CLDRFile.getComparator(DtdType.ldml), 1, in TestPathComparison()
166 CLDRFile.getComparator(DtdType.ldml), iterations, failures); in TestPathComparison()
DTestAttributeValues.java42 import org.unicode.cldr.util.DtdType;
87 Set<DtdType> checkTypes = dtdTypeArg == null ? DtdType.STANDARD_SET in TestValid()
88 : Collections.singleton(DtdType.valueOf(dtdTypeArg)) ; in TestValid()
91 for (DtdType dtdType : checkTypes) { in TestValid()
131 private void addXMLFiles(DtdType dtdType, String path, Set<String> files) { in addXMLFiles()
138 && dtdType == DtdType.ldml) { in addXMLFiles()
410 …Status value = AttributeValueValidity.check(DtdData.getInstance(DtdType.valueOf(parts.get(0))), pa… in quickTest()
442 for (R3<DtdType, String, String> entry1 : AttributeValueValidity.getTodoTests()) { in oldTestCoreValidity()
/external/cldr/tools/java/org/unicode/cldr/draft/
DJsonConverter.java22 import org.unicode.cldr.util.DtdType;
44 static final Relation<String, String> mainInfo = ElementAttributeInfo.getInstance(DtdType.ldml)
46 …static final Relation<String, String> suppInfo = ElementAttributeInfo.getInstance(DtdType.suppleme…
62 DtdType dtdType = null; in main()
69 dtdType = DtdType.valueOf(parts.getElement(0)); in main()
109 …private static boolean isDistinguishing(DtdType dtdType, final String element, final String attrib… in isDistinguishing()
122 private static void rewrite(DtdType dtdType, XPathParts parts, String value, in rewrite()
/external/cldr/tools/java/org/unicode/cldr/json/
DCldrItem.java8 import org.unicode.cldr.util.DtdType;
299 DtdType fileDtdType; in compareTo()
301 fileDtdType = DtdType.supplementalData; in compareTo()
303 fileDtdType = DtdType.ldml; in compareTo()

123