ResResSpec +hasResource() +hasDefaultResource().

This commit is contained in:
Ryszard Wiśniewski 2010-03-23 23:15:54 +01:00
parent d8a9c97f23
commit df39ed5488

View File

@ -57,10 +57,22 @@ public class ResResSpec {
return res;
}
public boolean hasResource(ResConfig config) {
return hasResource(config.getFlags());
}
private boolean hasResource(ResConfigFlags flags) {
return mResources.containsKey(flags);
}
public ResResource getDefaultResource() throws AndrolibException {
return getResource(new ResConfigFlags());
}
public boolean hasDefaultResource() {
return mResources.containsKey(new ResConfigFlags());
}
public String getFullName() {
return getFullName(false, false);
}