public class ResName extends Object
Modifier and Type | Field | Description |
---|---|---|
int |
hashCode |
|
static String |
ID_TYPE |
|
String |
name |
|
String |
packageName |
|
String |
type |
Constructor | Description |
---|---|
ResName(String fullyQualifiedName) |
|
ResName(String packageName,
String type,
String name) |
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) |
public static final String ID_TYPE
@Nonnull public final String packageName
@Nonnull public final String type
@Nonnull public final String name
public final int hashCode
public ResName(@Nonnull String fullyQualifiedName)
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)