Package org.robolectric.res
Class PackageResourceTable
- java.lang.Object
-
- org.robolectric.res.PackageResourceTable
-
- All Implemented Interfaces:
ResourceTable
public class PackageResourceTable extends Object implements ResourceTable
AResourceTable
for a single package, e.g: "android" / ox01
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.robolectric.res.ResourceTable
ResourceTable.Visitor
-
-
Constructor Summary
Constructors Constructor Description PackageResourceTable(String packageName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getPackageName()
InputStream
getRawValue(int resId, ResTable_config config)
InputStream
getRawValue(ResName resName, ResTable_config config)
ResName
getResName(int resourceId)
Integer
getResourceId(ResName resName)
TypedResource
getValue(int resId, ResTable_config config)
TypedResource
getValue(ResName resName, ResTable_config config)
XmlBlock
getXml(ResName resName, ResTable_config config)
void
receive(ResourceTable.Visitor visitor)
-
-
-
Constructor Detail
-
PackageResourceTable
public PackageResourceTable(String packageName)
-
-
Method Detail
-
getPackageName
public String getPackageName()
- Specified by:
getPackageName
in interfaceResourceTable
-
getResourceId
public Integer getResourceId(ResName resName)
- Specified by:
getResourceId
in interfaceResourceTable
-
getResName
public ResName getResName(int resourceId)
- Specified by:
getResName
in interfaceResourceTable
-
getValue
public TypedResource getValue(@Nonnull ResName resName, ResTable_config config)
- Specified by:
getValue
in interfaceResourceTable
-
getValue
public TypedResource getValue(int resId, ResTable_config config)
- Specified by:
getValue
in interfaceResourceTable
-
getXml
public XmlBlock getXml(ResName resName, ResTable_config config)
- Specified by:
getXml
in interfaceResourceTable
-
getRawValue
public InputStream getRawValue(ResName resName, ResTable_config config)
- Specified by:
getRawValue
in interfaceResourceTable
-
getRawValue
public InputStream getRawValue(int resId, ResTable_config config)
- Specified by:
getRawValue
in interfaceResourceTable
-
receive
public void receive(ResourceTable.Visitor visitor)
- Specified by:
receive
in interfaceResourceTable
-
-