|
Oracle Fusion Middleware extensions for Logging and Diagnostic 11g Release 7 (11.1.7) E22565-07 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectoracle.apps.fnd.appltest.diagfwk.engine.DiagUtil
public abstract class DiagUtil
Some common utility APIs for the diagnostics engine
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface oracle.apps.fnd.appltest.diagfwk.common.DiagConstants |
|---|
DiagConstants.ExecutionMode, DiagConstants.Format, DiagConstants.LinkType, DiagConstants.Status |
| Field Summary |
|---|
| Constructor Summary | |
|---|---|
DiagUtil()
|
|
| Method Summary | |
|---|---|
static void |
addNew(java.util.List<java.lang.String> pTarget,
java.util.List<java.lang.String> pSource)
Adds the element of the source list to the target list if those elements don't already exist in the target list. |
static void |
addNewAtIndex(java.util.List<java.lang.String> pTarget,
java.util.List<java.lang.String> pSource,
int pTargetIndex)
Adds the element of the source list to the target list if those elements don't already exist in the target list. |
static void |
checkExactlyOneReqParam(java.lang.String[] pReqParamNames,
NameValueList pAllParams)
Validates that exactly one of the given required parameters have been specified. |
static java.lang.String |
computeInputsStatus(TestParamList pInputParams,
java.util.Map<java.lang.String,java.lang.Object> pInputValues)
Computes the inputs status for the given list of input parameters based on the metadata about the parameters along any values provided for those parameters. |
static java.lang.String |
computeTimeDiff(java.util.Date pStart,
java.util.Date pEnd)
Computes the difference between the given start date and end date in HH:MM:SS format. |
static java.lang.String |
computeTimeDiff(java.util.Date pStart,
java.util.Date pEnd,
boolean pUseSystemDateIfEndDateNull)
Computes the difference between the given start date and end date in HH:MM:SS format. |
static java.lang.String |
convertBooleanToYNFlag(boolean pFlag)
If the given boolean flag is true, returns "Y". |
static java.lang.RuntimeException |
convertToSerializableException(java.lang.Throwable e)
Utility to convert a non serializable exception to something that the mx bean framework can serialize. |
static boolean |
convertYNFlag(java.lang.String pYNFlag)
Returns true if the given flag is "Y" or "YES" (ignoring case). |
static java.lang.Object |
getAttributeValue(java.lang.Object pSource,
java.lang.String pAttrName)
Introspects the given object to retrieve the value of the given attribute. |
static int |
indexOf(java.util.List<java.lang.String> pList,
java.lang.String pVal)
Gets the first index of the given value in the list of values. |
static boolean |
isDone(java.lang.String pStatusCode)
Returns true if the status code is not running Otherwise returns false. |
static boolean |
isFileOfType(java.lang.String pFilePath,
java.lang.String pType)
Checks to see if the given file name is for ".java" file |
static boolean |
isJava(java.lang.String pFilePath)
Checks to see if the given file name is for ".java" file |
static boolean |
isRunning(java.lang.String pStatusCode)
Returns true if the given status code is the "running" status. |
static boolean |
isValidYNFlag(java.lang.String pYNFlag)
Checks the value of the given flag to see if it equals "Y","N", "YES",or "NO" (ignores case). |
static boolean |
isXML(java.lang.String pFilePath)
Checks to see if the given file name is for ".xml" file |
static java.util.Date |
querySysDate()
Queries the current system date |
static java.util.List<java.lang.String> |
shallowCopy(java.util.List<java.lang.String> pOrgList)
Makes a shallow copy of the given list |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DiagUtil()
| Method Detail |
|---|
public static boolean isJava(java.lang.String pFilePath)
public static boolean isXML(java.lang.String pFilePath)
public static boolean isFileOfType(java.lang.String pFilePath,
java.lang.String pType)
public static boolean convertYNFlag(java.lang.String pYNFlag)
pYNFlag - Y/N flag
public static java.lang.String convertBooleanToYNFlag(boolean pFlag)
pFlag - boolean flag to convert
public static boolean isValidYNFlag(java.lang.String pYNFlag)
pYNFlag - flag to check if it is a valid yes/no value
public static int indexOf(java.util.List<java.lang.String> pList,
java.lang.String pVal)
public static void addNew(java.util.List<java.lang.String> pTarget,
java.util.List<java.lang.String> pSource)
pTarget - list where the new elements are to be addedpSource - list to be added.public static java.util.List<java.lang.String> shallowCopy(java.util.List<java.lang.String> pOrgList)
public static void addNewAtIndex(java.util.List<java.lang.String> pTarget,
java.util.List<java.lang.String> pSource,
int pTargetIndex)
pTarget - list where the new elements are to be addedpSource - list to be added.pTargetIndex - index at which the source list should be added
in the target list.
public static void checkExactlyOneReqParam(java.lang.String[] pReqParamNames,
NameValueList pAllParams)
pReqParamNames - - an Array of names of required parameters
of which exactly one must be specified.pAllParams - - All available parameter name values
public static java.lang.Object getAttributeValue(java.lang.Object pSource,
java.lang.String pAttrName)
pSource - the source object. This is either a Java Bean or
an instance of java.util.MappAttrName - name of the attribute to lookup.
public static java.lang.String computeInputsStatus(TestParamList pInputParams,
java.util.Map<java.lang.String,java.lang.Object> pInputValues)
pInputParams - List of TestParam instances that generally
represents the metadata for input parameters for a test.pInputValues - any values available for each of the input
parameters (keyed by the parameter name). If no parameter
values are available, this can be null.
INPUTS_STATUS_NO_INPUTS - No inputs defined
INPUTS_STATUS_ALL_OPT_INPUTS - All inputs are optional inputs
INPUTS_STATUS_REQ_INPUTS_W_DEFAULTS - One or more required inputs exist but all required inputs have values available
INPUTS_STATUS_REQ_INPUTS_NO_DEFAULTS - One or more required inputs exist for which no value exists
public static java.lang.String computeTimeDiff(java.util.Date pStart,
java.util.Date pEnd,
boolean pUseSystemDateIfEndDateNull)
pStart - start date/timepEnd - end date/timepUseSystemDateIfEndDateNull - if true, uses the system
date for end date if end date is null.
public static java.lang.String computeTimeDiff(java.util.Date pStart,
java.util.Date pEnd)
pStart - start date/timepEnd - end date/time
public static java.util.Date querySysDate()
public static boolean isRunning(java.lang.String pStatusCode)
public static boolean isDone(java.lang.String pStatusCode)
pStatusCode - status code to check
public static java.lang.RuntimeException convertToSerializableException(java.lang.Throwable e)
e - Exception to convert
|
Oracle Fusion Middleware extensions for Logging and Diagnostic 11g Release 7 (11.1.7) E22565-07 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||