com.googlecode.androidannotations.helper
Enum IdValidatorHelper.FallbackStrategy

java.lang.Object
  extended by java.lang.Enum<IdValidatorHelper.FallbackStrategy>
      extended by com.googlecode.androidannotations.helper.IdValidatorHelper.FallbackStrategy
All Implemented Interfaces:
Serializable, Comparable<IdValidatorHelper.FallbackStrategy>
Enclosing class:
IdValidatorHelper

public static enum IdValidatorHelper.FallbackStrategy
extends Enum<IdValidatorHelper.FallbackStrategy>


Enum Constant Summary
ALLOW_NO_RES_ID
           
NEED_RES_ID
           
USE_ELEMENT_NAME
           
 
Method Summary
static IdValidatorHelper.FallbackStrategy valueOf(String name)
          Returns the enum constant of this type with the specified name.
static IdValidatorHelper.FallbackStrategy[] 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

USE_ELEMENT_NAME

public static final IdValidatorHelper.FallbackStrategy USE_ELEMENT_NAME

ALLOW_NO_RES_ID

public static final IdValidatorHelper.FallbackStrategy ALLOW_NO_RES_ID

NEED_RES_ID

public static final IdValidatorHelper.FallbackStrategy NEED_RES_ID
Method Detail

values

public static IdValidatorHelper.FallbackStrategy[] 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 (IdValidatorHelper.FallbackStrategy c : IdValidatorHelper.FallbackStrategy.values())
    System.out.println(c);

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

valueOf

public static IdValidatorHelper.FallbackStrategy valueOf(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:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null


Copyright © 2010-2013. All Rights Reserved.