Package org.robolectric.res
Class PackageResourceTable
java.lang.Object
org.robolectric.res.PackageResourceTable
- All Implemented Interfaces:
ResourceTable
public class PackageResourceTable extends Object implements ResourceTable
A
ResourceTable
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
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 Details
-
Method Details
-
getPackageName
- Specified by:
getPackageName
in interfaceResourceTable
-
getResourceId
- Specified by:
getResourceId
in interfaceResourceTable
-
getResName
- Specified by:
getResName
in interfaceResourceTable
-
getValue
- Specified by:
getValue
in interfaceResourceTable
-
getValue
- Specified by:
getValue
in interfaceResourceTable
-
getXml
- Specified by:
getXml
in interfaceResourceTable
-
getRawValue
- Specified by:
getRawValue
in interfaceResourceTable
-
getRawValue
- Specified by:
getRawValue
in interfaceResourceTable
-
receive
- Specified by:
receive
in interfaceResourceTable
-