Home
last modified time | relevance | path

Searched refs:XMLSource (Results 1 – 25 of 35) sorted by relevance

12

/external/cldr/tools/cldr-unittest/src/org/unicode/cldr/unittest/
DTestCheckDisplayCollisions.java19 import org.unicode.cldr.util.XMLSource;
46 XMLSource rootSource = new SimpleXMLSource("root"); in testInheritance()
49 XMLSource enSource = new SimpleXMLSource("en"); in testInheritance()
52 XMLSource frSource = new SimpleXMLSource("fr"); in testInheritance()
68 XMLSource frCaSource = new SimpleXMLSource("fr_CA"); in testInheritance()
116 final XMLSource rootSource = new SimpleXMLSource("root"); in mustCollide()
119 final XMLSource enSource = new SimpleXMLSource("en"); in mustCollide()
122 final XMLSource source = new SimpleXMLSource(testLocale); in mustCollide()
200 XMLSource rootSource = new SimpleXMLSource("root"); in TestDotPixel14031()
203 XMLSource localeSource = new SimpleXMLSource("de"); in TestDotPixel14031()
DTestExampleDependencies.java24 import org.unicode.cldr.util.XMLSource;
131 XMLSource topSource = factory.makeSource(localeId); in makeRecordingCldrFile()
132 List<XMLSource> parents = getParentSources(factory, localeId); in makeRecordingCldrFile()
133 XMLSource[] a = new XMLSource[parents.size()]; in makeRecordingCldrFile()
337XMLSource topSource = factory.makeSource(localeId).cloneAsThawed(); // make top one modifiable in makeMutableResolved()
338 List<XMLSource> parents = getParentSources(factory, localeId); in makeMutableResolved()
339 XMLSource[] a = new XMLSource[parents.size()]; in makeMutableResolved()
352 private static List<XMLSource> getParentSources(Factory factory, String localeId) { in getParentSources()
353 List<XMLSource> parents = new ArrayList<>(); in getParentSources()
DTestFactory.java13 import org.unicode.cldr.util.XMLSource;
19 XMLSource mySource = new SimpleXMLSource("root");
27 …org.unicode.cldr.util.XMLSource.ResolvingSource rs = makeResolvingSource(localeID, DraftStatus.unc… in addFile()
DTestXMLSource.java12 import org.unicode.cldr.util.XMLSource;
18 public static class DummyXMLSource extends XMLSource {
22 public XMLSource freeze() { in freeze()
75 XMLSource source = new DummyXMLSource(); in TestGetPathsWithValue()
DTestCheckWidths.java14 import org.unicode.cldr.util.XMLSource;
23 XMLSource xmlSource = new DummyXMLSource(); in TestBasic()
DTestCheckNumbers.java15 import org.unicode.cldr.util.XMLSource;
43 XMLSource xmlSource = new DummyXMLSource(); in checkSingularity()
DTestDateOrder.java10 import org.unicode.cldr.util.XMLSource;
21 XMLSource source = new SimpleXMLSource("xx"); in TestDateImportance()
DTestAliases.java18 import org.unicode.cldr.util.XMLSource;
37 if (!XMLSource.Alias.stripLastElement(pair[0]).equals(pair[1])) { in testAlias()
/external/cldr/tools/java/org/unicode/cldr/util/
DXMLSource.java43 public abstract class XMLSource implements Freezable<XMLSource>, Iterable<String> { class
110 public void putAll(XMLSource otherSource, int conflict_resolution) { in putAll()
198 public void valueChanged(String xpath, XMLSource source); in valueChanged()
485 ((XMLSource.ResolvingSource) this).getFullPathAtDPathCache = null; in clearCache()
486 ((XMLSource.ResolvingSource) this).getSourceLocaleIDCache = null; in clearCache()
649 public XMLSource getUnresolving() { in getUnresolving()
657 public XMLSource cloneAsThawed() { in cloneAsThawed()
659 XMLSource result = (XMLSource) super.clone(); in cloneAsThawed()
719 public static class ResolvingSource extends XMLSource implements Listener {
720 private XMLSource currentSource;
[all …]
DRecordingCLDRFile.java17 public RecordingCLDRFile(XMLSource dataSource) { in RecordingCLDRFile()
21 public RecordingCLDRFile(XMLSource dataSource, XMLSource... resolvingParents) { in RecordingCLDRFile()
DFactory.java13 import org.unicode.cldr.util.XMLSource.ResolvingSource;
133 public static XMLSource makeResolvingSource(List<XMLSource> sources) { in makeResolvingSource()
144 public final XMLSource makeSource(String localeID) { in makeSource()
156 List<XMLSource> sourceList = new ArrayList<>(); in makeResolvingSource()
167 XMLSource source = file.dataSource; in makeResolvingSource()
DXMLNormalizingLoader.java43 private static LoadingCache<XMLSourceCacheKey, XMLSource> cache = CacheBuilder.newBuilder()
47 new CacheLoader<XMLSourceCacheKey, XMLSource>() {
49 public XMLSource load(XMLSourceCacheKey key) {
116 …public static XMLSource getFrozenInstance(String localeId, List<File> dirs, DraftStatus minimalDra… in getFrozenInstance()
121 private static XMLSource makeXMLSource(XMLSourceCacheKey key) { in makeXMLSource()
122 XMLSource source = null; in makeXMLSource()
132 List<XMLSource> list = new ArrayList<>(); in makeXMLSource()
138 XMLSource singleSource = cache.getUnchecked(singleKey); in makeXMLSource()
144 XMLSource other = list.get(i); in makeXMLSource()
152 public static XMLSource loadXMLFile(File f, String localeId, DraftStatus minimalDraftStatus) { in loadXMLFile()
[all …]
DSimpleXMLSource.java18 public class SimpleXMLSource extends XMLSource {
95 public XMLSource freeze() { in freeze()
101 public XMLSource cloneAsThawed() { in cloneAsThawed()
DCLDRFile.java49 import org.unicode.cldr.util.XMLSource.ResolvingSource;
140 XMLSource dataSource; // TODO(jchye): make private
194 public CLDRFile(XMLSource dataSource) { in CLDRFile()
211 this.dataSource = XMLSource.getFrozenInstance(localeId, dirs, minimalDraftStatus); in CLDRFile()
216 public CLDRFile(XMLSource dataSource, XMLSource... resolvingParents) { in CLDRFile()
217 List<XMLSource> sourceList = new ArrayList<>(); in CLDRFile()
228 …LDRFile loadFromFile(File f, String localeName, DraftStatus minimalDraftStatus, XMLSource source) { in loadFromFile()
262 …adFromFiles(List<File> dirs, String localeName, DraftStatus minimalDraftStatus, XMLSource source) { in loadFromFiles()
319 XMLSource source) { in load()
754 if (result == XMLSource.CODE_FALLBACK_ID && dataSource.isResolving()) { in getSourceLocaleIdExtended()
[all …]
DSimpleFactory.java17 import org.unicode.cldr.util.XMLSource.ResolvingSource;
636 XMLSource source = new SimpleXMLSource(localeName); in makeSupplemental()
696 XMLSource source = new SimpleXMLSource(localeName); in makeFile()
/external/cldr/tools/java/org/unicode/cldr/test/
DTestCache.java16 import org.unicode.cldr.util.XMLSource;
29 public class TestCache implements XMLSource.Listener {
167 public void valueChanged(String xpath, XMLSource source) { in valueChanged()
DCheckCoverage.java22 import org.unicode.cldr.util.XMLSource;
85 if (!source.equals(XMLSource.CODE_FALLBACK_ID) in handleCheck()
DCheckLogicalGroupings.java19 import org.unicode.cldr.util.XMLSource;
92 return !source.equals(XMLSource.ROOT_ID) && !source.equals(XMLSource.CODE_FALLBACK_ID); in isHereOrNonRoot()
DCasingInfo.java30 import org.unicode.cldr.util.XMLSource;
205 XMLSource source = new SimpleXMLSource(localeID); in createCasingXml()
/external/cldr/tools/java/org/unicode/cldr/tool/
DCLDRFileTransformer.java19 import org.unicode.cldr.util.XMLSource;
182 XMLSource dataSource = new SimpleXMLSource(localeTransform.getOutputLocale()); in transform()
190 XMLSource outputSource = new SimpleXMLSource(localeTransform.toString()); in transform()
DGetChanges.java24 import org.unicode.cldr.util.XMLSource;
90 …final Set<String> ROOT_OR_CODE_FALLBACK = ImmutableSet.of(XMLSource.CODE_FALLBACK_ID, XMLSource.RO…
DCLDRFilePseudolocalizer.java16 import org.unicode.cldr.util.XMLSource;
379 XMLSource outputSource = new SimpleXMLSource(outputLocale); in generate()
406 private void addTerritory(XMLSource outputSource, String territory) { in addTerritory()
DGenerateChangeChart.java29 import org.unicode.cldr.util.XMLSource;
84 if (source.equals(XMLSource.CODE_FALLBACK_ID) in main()
85 || source.equals(XMLSource.ROOT_ID) in main()
DGenerateProductionData.java33 import org.unicode.cldr.util.XMLSource;
331 || (!Objects.equals(XMLSource.ROOT_ID, localeWhereFound.value) in copyFilesAndReturnIsEmpty()
332 … && !Objects.equals(XMLSource.CODE_FALLBACK_ID, localeWhereFound.value)))) { in copyFilesAndReturnIsEmpty()
DFilterFactory.java29 import org.unicode.cldr.util.XMLSource;
176 if (!sourceLocale.equals(XMLSource.CODE_FALLBACK_ID)) { in removeRedundantPaths()

12