|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.android.ide.common.resources.configuration.ResourceQualifier
com.android.ide.common.resources.configuration.ScreenRatioQualifier
public class ScreenRatioQualifier
| Field Summary | |
|---|---|
static java.lang.String |
NAME
|
| Constructor Summary | |
|---|---|
ScreenRatioQualifier()
|
|
ScreenRatioQualifier(com.android.resources.ScreenRatio value)
|
|
| Method Summary | |
|---|---|
boolean |
checkAndSet(java.lang.String value,
FolderConfiguration config)
Check if the value is valid for this qualifier, and if so sets the value into a Folder Configuration. |
boolean |
equals(java.lang.Object qualifier)
Returns true if both objects are equal. |
java.lang.String |
getFolderSegment()
Returns the string used to represent this qualifier in the folder name. |
java.lang.String |
getLongDisplayValue()
Returns a string formatted for display purpose. |
java.lang.String |
getName()
Returns the human readable name of the qualifier. |
java.lang.String |
getShortDisplayValue()
Returns a string formatted for display purpose. |
java.lang.String |
getShortName()
Returns a shorter human readable name for the qualifier. |
com.android.resources.ScreenRatio |
getValue()
|
boolean |
hasFakeValue()
Returns whether the qualifier has a fake value. |
int |
hashCode()
Returns a hash code value for the object. |
boolean |
isValid()
Returns whether the qualifier has a valid filter value. |
int |
since()
Returns when this qualifier was added to Android. |
| Methods inherited from class com.android.ide.common.resources.configuration.ResourceQualifier |
|---|
compareTo, deprecated, isBetterMatchThan, isMatchFor, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String NAME
| Constructor Detail |
|---|
public ScreenRatioQualifier()
public ScreenRatioQualifier(com.android.resources.ScreenRatio value)
| Method Detail |
|---|
public com.android.resources.ScreenRatio getValue()
public java.lang.String getName()
ResourceQualifier
getName in class ResourceQualifierpublic java.lang.String getShortName()
ResourceQualifier
getShortName in class ResourceQualifierResourceQualifier.getName()public int since()
ResourceQualifier
since in class ResourceQualifier
public boolean checkAndSet(java.lang.String value,
FolderConfiguration config)
ResourceQualifier
checkAndSet in class ResourceQualifiervalue - The value to check and set. Must not be null.config - The folder configuration to receive the value. Must not be null.
public boolean isValid()
ResourceQualifier
isValid in class ResourceQualifierpublic boolean hasFakeValue()
ResourceQualifier
hasFakeValue in class ResourceQualifierpublic boolean equals(java.lang.Object qualifier)
ResourceQualifiertrue if both objects are equal.
This is declared as abstract to force children classes to implement it.
equals in class ResourceQualifierpublic int hashCode()
ResourceQualifier
hashCode in class ResourceQualifierpublic final java.lang.String getFolderSegment()
getFolderSegment in class ResourceQualifierpublic java.lang.String getShortDisplayValue()
ResourceQualifier
getShortDisplayValue in class ResourceQualifierpublic java.lang.String getLongDisplayValue()
ResourceQualifier
getLongDisplayValue in class ResourceQualifier
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||