Package org.robolectric.res
Class ResName
java.lang.Object
org.robolectric.res.ResName
public class ResName extends Object
-
Field Summary
-
Constructor Summary
-
Method Summary
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)
Returns the fully qualified resource name if null if the resource could not be qualified.String
toString()
ResName
withPackageName(String packageName)
-
Field Details
-
ID_TYPE
- See Also:
- Constant Field Values
-
packageName
-
type
-
name
-
hashCode
public final int hashCode
-
-
Constructor Details
-
Method Details
-
qualifyResourceName
public static String qualifyResourceName(@Nonnull String possiblyQualifiedResourceName, String defaultPackageName, String defaultType)Returns the fully qualified resource name if null if the resource could not be qualified. -
qualifyResName
-
qualifyResName
-
qualifyResName
-
qualifyFromFilePath
-
equals
-
hashCode
public int hashCode() -
toString
-
getFullyQualifiedName
-
getNamespaceUri
-
withPackageName
-
mustBe
-