• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 package org.robolectric.res;
2 
3 import org.robolectric.res.android.ResTable_config;
4 
5 public class XmlContext {
6   private final String packageName;
7   private final FsFile xmlFile;
8   private final Qualifiers qualifiers;
9 
XmlContext(String packageName, FsFile xmlFile, Qualifiers qualifiers)10   public XmlContext(String packageName, FsFile xmlFile, Qualifiers qualifiers) {
11     this.packageName = packageName;
12     this.xmlFile = xmlFile;
13     this.qualifiers = qualifiers;
14   }
15 
getPackageName()16   public String getPackageName() {
17     return packageName;
18   }
19 
getConfig()20   public ResTable_config getConfig() {
21     return qualifiers.getConfig();
22   }
23 
getQualifiers()24   public Qualifiers getQualifiers() {
25     return qualifiers;
26   }
27 
getXmlFile()28   public FsFile getXmlFile() {
29     return xmlFile;
30   }
31 
toString()32   @Override public String toString() {
33     return '{' + packageName + ':' + xmlFile + '}';
34   }
35 }
36