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