public class ResName extends Object
Modifier and Type | Field and Description |
---|---|
int |
hashCode |
static String |
ID_TYPE |
String |
name |
String |
packageName |
String |
type |
Constructor and Description |
---|
ResName(String fullyQualifiedName) |
ResName(String packageName,
String type,
String name) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
String |
getFullyQualifiedName() |
String |
getNamespaceUri() |
int |
hashCode() |
void |
mustBe(String expectedType) |
static ResName |
qualifyFromFilePath(String packageName,
String filePath) |
static ResName |
qualifyResName(String possiblyQualifiedResourceName,
ResName defaults) |
static String |
qualifyResName(String possiblyQualifiedResourceName,
String contextPackageName) |
static ResName |
qualifyResName(String possiblyQualifiedResourceName,
String defaultPackageName,
String defaultType) |
static String |
qualifyResourceName(String possiblyQualifiedResourceName,
String defaultPackageName,
String defaultType) |
String |
toString() |
ResName |
withPackageName(String packageName) |
public static final String ID_TYPE
public final int hashCode
public static String qualifyResourceName(@Nonnull String possiblyQualifiedResourceName, String defaultPackageName, String defaultType)
public static ResName qualifyResName(@Nonnull String possiblyQualifiedResourceName, ResName defaults)
public static ResName qualifyResName(@Nonnull String possiblyQualifiedResourceName, String defaultPackageName, String defaultType)
public static String qualifyResName(String possiblyQualifiedResourceName, String contextPackageName)
public static ResName qualifyFromFilePath(@Nonnull String packageName, @Nonnull String filePath)
public String getFullyQualifiedName()
public String getNamespaceUri()
public void mustBe(String expectedType)