com.android.resources
Enum ResourceFolderType

java.lang.Object
  extended by java.lang.Enum<ResourceFolderType>
      extended by com.android.resources.ResourceFolderType
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<ResourceFolderType>

public enum ResourceFolderType
extends java.lang.Enum<ResourceFolderType>

Enum representing a type of resource folder.


Enum Constant Summary
ANIM
           
ANIMATOR
           
COLOR
           
DRAWABLE
           
INTERPOLATOR
           
LAYOUT
           
MENU
           
MIPMAP
           
RAW
           
TRANSITION
           
VALUES
           
XML
           
 
Method Summary
static ResourceFolderType getFolderType(java.lang.String folderName)
          Returns the ResourceFolderType from the folder name
 java.lang.String getName()
          Returns the folder name for this resource folder type.
static ResourceFolderType getTypeByName(java.lang.String name)
          Returns the enum by name.
static ResourceFolderType valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static ResourceFolderType[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

ANIM

public static final ResourceFolderType ANIM

ANIMATOR

public static final ResourceFolderType ANIMATOR

COLOR

public static final ResourceFolderType COLOR

DRAWABLE

public static final ResourceFolderType DRAWABLE

INTERPOLATOR

public static final ResourceFolderType INTERPOLATOR

LAYOUT

public static final ResourceFolderType LAYOUT

MENU

public static final ResourceFolderType MENU

MIPMAP

public static final ResourceFolderType MIPMAP

RAW

public static final ResourceFolderType RAW

TRANSITION

public static final ResourceFolderType TRANSITION

VALUES

public static final ResourceFolderType VALUES

XML

public static final ResourceFolderType XML
Method Detail

values

public static ResourceFolderType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (ResourceFolderType c : ResourceFolderType.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static ResourceFolderType valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null

getName

public java.lang.String getName()
Returns the folder name for this resource folder type.


getTypeByName

public static ResourceFolderType getTypeByName(java.lang.String name)
Returns the enum by name.

Parameters:
name - The enum string value.
Returns:
the enum or null if not found.

getFolderType

public static ResourceFolderType getFolderType(java.lang.String folderName)
Returns the ResourceFolderType from the folder name

Parameters:
folderName - The name of the folder. This must be a valid folder name in the format resType[-resqualifiers[-resqualifiers[...]]
Returns:
the ResourceFolderType representing the type of the folder, or null if no matching type was found.