Oracle Fusion Middleware extensions for Logging and Diagnostics
11g Release 1 (11.1.2)

E22565-02

oracle.apps.fnd.appltest.diagfwk.engine.impl
Class StepExecutorBase.TokenEvaluator

java.lang.Object
  extended by oracle.apps.fnd.appltest.diagfwk.engine.impl.StepExecutorBase.TokenEvaluator
Direct Known Subclasses:
StepExecutorBase.TokenEvaluatorStepOutput, StepExecutorBase.TokenEvaluatorTestInput, StepExecutorBase.TokenEvaluatorTestOutput
Enclosing class:
StepExecutorBase

public abstract static class StepExecutorBase.TokenEvaluator
extends java.lang.Object

Helper class for evaluating tokens


Field Summary
protected  DiagContextExtn mCtx
           
 
Constructor Summary
StepExecutorBase.TokenEvaluator()
           
 
Method Summary
abstract  java.lang.Object evaluate(java.lang.String pToken)
          Evaluates the given token to a value in the context
protected abstract  java.lang.String getParamDefLookupKey(java.lang.String pParamName)
          Returns the key to be used when looking up the TestParam object from the context that corresponds to the given parameter name
protected abstract  java.lang.String getSecretFlagLookupKey(java.lang.String pParamName)
          Returns the key to be used when looking up the isSecret boolean flag for the given parameter
 boolean isSecret(java.lang.String pToken)
          Evaluates whether the parameter referred to by the given token is a secured parameter
protected  java.lang.String parseParameterName(java.lang.String pToken)
          Parses the parameter name which is the last portion of the token
 void setContext(DiagContextExtn pCtx)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

mCtx

protected DiagContextExtn mCtx
Constructor Detail

StepExecutorBase.TokenEvaluator

public StepExecutorBase.TokenEvaluator()
Method Detail

setContext

public void setContext(DiagContextExtn pCtx)

evaluate

public abstract java.lang.Object evaluate(java.lang.String pToken)
Evaluates the given token to a value in the context

Parameters:
pToken - token
Returns:
the value for the token

getParamDefLookupKey

protected abstract java.lang.String getParamDefLookupKey(java.lang.String pParamName)
Returns the key to be used when looking up the TestParam object from the context that corresponds to the given parameter name

Parameters:
pParamName - parameter name

getSecretFlagLookupKey

protected abstract java.lang.String getSecretFlagLookupKey(java.lang.String pParamName)
Returns the key to be used when looking up the isSecret boolean flag for the given parameter

Parameters:
pParamName - name of the parameter
Returns:
the key to be used when looking up the isSecret boolean flag for the given parameter. Returns null if such a isSecret flag is not applicable for this parameter

isSecret

public boolean isSecret(java.lang.String pToken)
Evaluates whether the parameter referred to by the given token is a secured parameter

Parameters:
pToken - token
Returns:
true if the token refers to a secret parameter. false otherwise.

parseParameterName

protected java.lang.String parseParameterName(java.lang.String pToken)
Parses the parameter name which is the last portion of the token

Parameters:
pToken - token to parse the parameter name from
Returns:
name of the parameter in the token

Oracle Fusion Middleware extensions for Logging and Diagnostics
11g Release 1 (11.1.2)

E22565-02

Copyright © 2011 Oracle. All Rights Reserved.