com.android.ide.common.rendering.api
Enum Result.Status

java.lang.Object
  extended by java.lang.Enum<Result.Status>
      extended by com.android.ide.common.rendering.api.Result.Status
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<Result.Status>
Enclosing class:
Result

public static enum Result.Status
extends java.lang.Enum<Result.Status>

Scene Status enum.

This indicates the status of all scene actions.


Enum Constant Summary
ERROR_ANIM_NOT_FOUND
           
ERROR_INFLATION
           
ERROR_LOCK_INTERRUPTED
           
ERROR_NOT_A_DRAWABLE
           
ERROR_NOT_INFLATED
           
ERROR_REFLECTION
           
ERROR_RENDER
           
ERROR_TIMEOUT
           
ERROR_UNKNOWN
           
ERROR_VIEWGROUP_NO_CHILDREN
           
NOT_IMPLEMENTED
           
SUCCESS
           
 
Method Summary
 Result createResult()
          Returns a Result object with this status.
 Result createResult(java.lang.Object data)
          Returns a Result object with this status, and the given data.
 Result createResult(java.lang.String errorMessage)
          Returns a ERROR_UNKNOWN result with the given message
 Result createResult(java.lang.String errorMessage, java.lang.Throwable throwable)
          Returns a ERROR_UNKNOWN result with the given message and throwable
static Result.Status valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static Result.Status[] 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

SUCCESS

public static final Result.Status SUCCESS

NOT_IMPLEMENTED

public static final Result.Status NOT_IMPLEMENTED

ERROR_TIMEOUT

public static final Result.Status ERROR_TIMEOUT

ERROR_LOCK_INTERRUPTED

public static final Result.Status ERROR_LOCK_INTERRUPTED

ERROR_INFLATION

public static final Result.Status ERROR_INFLATION

ERROR_VIEWGROUP_NO_CHILDREN

public static final Result.Status ERROR_VIEWGROUP_NO_CHILDREN

ERROR_NOT_INFLATED

public static final Result.Status ERROR_NOT_INFLATED

ERROR_RENDER

public static final Result.Status ERROR_RENDER

ERROR_ANIM_NOT_FOUND

public static final Result.Status ERROR_ANIM_NOT_FOUND

ERROR_NOT_A_DRAWABLE

public static final Result.Status ERROR_NOT_A_DRAWABLE

ERROR_REFLECTION

public static final Result.Status ERROR_REFLECTION

ERROR_UNKNOWN

public static final Result.Status ERROR_UNKNOWN
Method Detail

values

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

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

valueOf

public static Result.Status 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

createResult

public Result createResult()
Returns a Result object with this status.

Returns:
an instance of SceneResult;

createResult

public Result createResult(java.lang.Object data)
Returns a Result object with this status, and the given data.

Returns:
an instance of SceneResult;
See Also:
Result.getData()

createResult

public Result createResult(java.lang.String errorMessage,
                           java.lang.Throwable throwable)
Returns a ERROR_UNKNOWN result with the given message and throwable

Parameters:
errorMessage - the error message
throwable - the throwable
Returns:
an instance of SceneResult.

createResult

public Result createResult(java.lang.String errorMessage)
Returns a ERROR_UNKNOWN result with the given message

Parameters:
errorMessage - the error message
Returns:
an instance of SceneResult.