Package org.robolectric.res
Class ResName
- java.lang.Object
-
- org.robolectric.res.ResName
-
public class ResName extends Object
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
String
getFullyQualifiedName()
String
getNamespaceUri()
int
hashCode()
void
mustBe(String expectedType)
static ResName
qualifyFromFilePath(String packageName, String filePath)
static String
qualifyResName(String possiblyQualifiedResourceName, String contextPackageName)
static ResName
qualifyResName(String possiblyQualifiedResourceName, String defaultPackageName, String defaultType)
static ResName
qualifyResName(String possiblyQualifiedResourceName, ResName defaults)
static String
qualifyResourceName(String possiblyQualifiedResourceName, String defaultPackageName, String defaultType)
String
toString()
ResName
withPackageName(String packageName)
-
-
-
Method Detail
-
qualifyResourceName
public static String qualifyResourceName(@Nonnull String possiblyQualifiedResourceName, String defaultPackageName, String defaultType)
- Returns:
- null if the resource could not be qualified.
-
qualifyResName
public static ResName qualifyResName(@Nonnull String possiblyQualifiedResourceName, ResName defaults)
-
qualifyResName
public static ResName qualifyResName(@Nonnull String possiblyQualifiedResourceName, String defaultPackageName, String defaultType)
-
qualifyResName
public static String qualifyResName(String possiblyQualifiedResourceName, String contextPackageName)
-
qualifyFromFilePath
public static ResName qualifyFromFilePath(@Nonnull String packageName, @Nonnull String filePath)
-
getFullyQualifiedName
public String getFullyQualifiedName()
-
getNamespaceUri
public String getNamespaceUri()
-
mustBe
public void mustBe(String expectedType)
-
-