Package org.robolectric.res
Class RoutingResourceTable
- java.lang.Object
-
- org.robolectric.res.RoutingResourceTable
-
- All Implemented Interfaces:
ResourceTable
public class RoutingResourceTable extends Object implements ResourceTable
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.robolectric.res.ResourceTable
ResourceTable.Visitor
-
-
Constructor Summary
Constructors Constructor Description RoutingResourceTable(PackageResourceTable... resourceTables)
-
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)
String
toString()
-
-
-
Constructor Detail
-
RoutingResourceTable
public RoutingResourceTable(PackageResourceTable... resourceTables)
-
-
Method Detail
-
getRawValue
public InputStream getRawValue(int resId, ResTable_config config)
- Specified by:
getRawValue
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
-
getResourceId
public Integer getResourceId(ResName resName)
- Specified by:
getResourceId
in interfaceResourceTable
-
getResName
public ResName getResName(int resourceId)
- Specified by:
getResName
in interfaceResourceTable
-
receive
public void receive(ResourceTable.Visitor visitor)
- Specified by:
receive
in interfaceResourceTable
-
getPackageName
public String getPackageName()
- Specified by:
getPackageName
in interfaceResourceTable
-
-