FileDocCategorySizeDatePackage
ResourceQualifier.javaAPI DocAndroid 1.5 API2734Wed May 06 22:41:10 BST 2009com.android.ide.eclipse.editors.resources.configurations

ResourceQualifier

public abstract class ResourceQualifier extends Object implements Comparable
Base class for resource qualifiers.

The resource qualifier classes are designed as immutable.

Fields Summary
Constructors Summary
Methods Summary
public abstract booleancheckAndSet(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.

param
value The value to check and set. Must not be null.
param
config The folder configuration to receive the value. Must not be null.
return
true if the value was valid and was set.

public final intcompareTo(com.android.ide.eclipse.editors.resources.configurations.ResourceQualifier o)

        return toString().compareTo(o.toString());
    
public abstract booleanequals(java.lang.Object object)
Returns true if both objects are equal.

This is declared as abstract to force children classes to implement it.

public abstract org.eclipse.swt.graphics.ImagegetIcon()
Returns the icon for the qualifier.

public abstract java.lang.StringgetName()
Returns the human readable name of the qualifier.

public abstract java.lang.StringgetShortName()
Returns a shorter human readable name for the qualifier.

see
#getName()

public abstract java.lang.StringgetStringValue()
Returns a string formatted for display purpose.

public abstract inthashCode()
Returns a hash code value for the object.

This is declared as abstract to force children classes to implement it.

public abstract booleanisValid()
Returns whether the qualifier has a valid filter value.

public abstract java.lang.StringtoString()
Returns a string formated to be used in a folder name.

This is declared as abstract to force children classes to implement it.