Oracle Fusion Middleware extensions for Logging and Diagnostic
11g Release 1 (11.1.1.6)

E22565-06

oracle.apps.fnd.appltest.diagfwk.common
Enum DiagConstants.Status

java.lang.Object
  extended by java.lang.Enum<DiagConstants.Status>
      extended by oracle.apps.fnd.appltest.diagfwk.common.DiagConstants.Status
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<DiagConstants.Status>
Enclosing interface:
DiagConstants

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

Enumeration representing the various statuses.


Enum Constant Summary
CANCELED
           
EXECERROR
           
FAILURE
           
RUNNING
           
SUCCESS
           
WARNING
           
 
Method Summary
 oracle.apps.fnd.appllcm.sdk.common.ResourceRef getResourceRef()
          Returns the translatable message reference that correspondings to this status
static java.lang.String mapDiagStatus(java.lang.String pStatusCode)
          Maps the given internal status code to the diagnostic result's status code
static java.lang.String mapExecStatus(java.lang.String pStatusCode)
          Maps the given status code to corresponding execution status code.
static DiagConstants.Status parseStatus(java.lang.String pStatusCode)
           
 java.lang.String toString()
          Returns the String representation of the enumeration
static DiagConstants.Status valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static DiagConstants.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, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

RUNNING

public static final DiagConstants.Status RUNNING

EXECERROR

public static final DiagConstants.Status EXECERROR

WARNING

public static final DiagConstants.Status WARNING

SUCCESS

public static final DiagConstants.Status SUCCESS

FAILURE

public static final DiagConstants.Status FAILURE

CANCELED

public static final DiagConstants.Status CANCELED
Method Detail

values

public static DiagConstants.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 (DiagConstants.Status c : DiagConstants.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 DiagConstants.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

toString

public java.lang.String toString()
Returns the String representation of the enumeration

Overrides:
toString in class java.lang.Enum<DiagConstants.Status>
Returns:
the String representation of the enumeration

getResourceRef

public oracle.apps.fnd.appllcm.sdk.common.ResourceRef getResourceRef()
Returns the translatable message reference that correspondings to this status

Returns:
a ResourceRef instance that contains the translated string for this status.

parseStatus

public static DiagConstants.Status parseStatus(java.lang.String pStatusCode)

mapExecStatus

public static java.lang.String mapExecStatus(java.lang.String pStatusCode)
Maps the given status code to corresponding execution status code.

Parameters:
pStatusCode - internal status code
Returns:
corresponding execution status code. If the internal status code is failure or warning, returns success (as test executed successfully). otherwise returns the status code as is.

mapDiagStatus

public static java.lang.String mapDiagStatus(java.lang.String pStatusCode)
Maps the given internal status code to the diagnostic result's status code

Parameters:
pStatusCode - internal status code to map
Returns:
success, failure or warning based on the test results. If the internal code is anything else, then returns null (as diagnostic status is unknown).

Oracle Fusion Middleware extensions for Logging and Diagnostic
11g Release 1 (11.1.1.6)

E22565-06

Copyright © 2012 Oracle. All Rights Reserved.