oracle.clex.tools.processgenerator.process
Class ProcessGeneratorValueProvider

java.lang.Object
  |
  +--oracle.cle.process.Process
        |
        +--oracle.cle.process.GenericProcess
              |
              +--oracle.clex.process.PageValueProvider
                    |
                    +--oracle.clex.tools.processgenerator.process.ProcessGeneratorValueProvider
All Implemented Interfaces:
Child, java.lang.Cloneable, PageConstants, ProcessConstants, java.io.Serializable, State

public class ProcessGeneratorValueProvider
extends PageValueProvider

This class provides dynamic content for pages when using CreateHTMLPage in the ProcessGenerator. This particular value provider is used for both dyanmic UI and generating the processes.

See Also:
Serialized Form

Fields inherited from class oracle.cle.process.GenericProcess
parent
 
Fields inherited from class oracle.cle.process.Process
condition, DEBUG, endState, FAILURE, name, processes, service, stateMachine, SUCCESS, TRANSITION_CONDITION_FAILURE, TRANSITION_CONDITION_SUCCESS
 
Fields inherited from interface oracle.cle.process.ProcessConstants
ALLINFO, BINARYSIZE, CONNECTION_PROVIDER_DTD_NAME, CONNECTION_PROVIDER_VALIDATION_PROPERTY, CONTENTTYPE, CURRENTPAGEID, CURRENTSERVICE, ERRORMESSAGE, GENERICBINARYRESULT, GENERICTEXTRESULT, GETINFO_CHECK_ALL, GETINFO_CHECK_CONTROLLERONLY, GETINFO_CHECK_SERVICEONLY, HTML, HTMLRESULT, JSPRESULT, LOGOFF, NOMESSAGE, PAGEID, PDF, PDFRESULT, PRE_GROUP_DTD_NAME, PRE_GROUP_VALIDATION_PROPERTY, PROCESS_FEEDBACK, RESTART, RESULTTYPE, RULES_DTD_NAME, SERVICE_DESCRIPTOR, SERVICE_DTD_NAME, SERVICE_VALIDATION_PROPERTY, SERVICEINITIALSTATE, SERVICENAME, SESSIONID, SKIP, STACKTRACE, USER, USERROLE, WML, XML, XMLRESULT
 
Constructor Summary
ProcessGeneratorValueProvider()
           
 
Method Summary
static java.lang.String convertKey(java.lang.String key)
          Converts a sting to be used as a local variable.
 HTMLString getAvailableParameterConstants()
          Produces an HTML table that displays the interface name, parameter name and object type of the parameter.
 HTMLString getAvailableResultConstants()
          Produces an HTML table that displays the interface name, result name and object type of the result.
 HTMLString getClassValue()
          Returns HTML String of the Class name
 HTMLString getHandlerFactory()
          This method generates the code for instantiating a handler.
 HTMLString getImports()
          Used for the generation of the imports necessary for the completion of the process.
 HTMLString getPackageValue()
          creates a string to define the package in the generated class
 HTMLString getParameterInfo()
          Creates code for parameters stored for generating in the process and defined in the registerInfo method
 HTMLString getParameterVariables()
          Used to generated local variables in the start method.
 HTMLString getProcessesTable()
          This method creates a table of the available methods for generation.
 HTMLString getProcessStaticConstants()
          Create the static constants defined for the process being generated
 HTMLString getResultsInfo()
          Used to generate results for the registerInfo method of any of the generated processes
 HTMLString getStoredParameters()
          Produces a table of the parameters that have been selected and stored for later generation.
 HTMLString getStoredResults()
          Produces a table of the results that have been selected and stored for later generation.
 HTMLString getVariables(java.util.Hashtable results)
          Used to generated local variables in the start method.
static void main(java.lang.String[] args)
           
 void registerInfo()
          This method registers info used within this class to generate content
 
Methods inherited from class oracle.clex.process.PageValueProvider
getPageId
 
Methods inherited from class oracle.cle.process.GenericProcess
clone, getBooleanInfo, getFloatInfo, getInfo, getInfo, getInfo, getInfoValue, getInfoValue, getInfoValueFromController, getInfoValueFromService, getIntegerInfo, getParameterNamed, getParameters, getParent, getParents, getResultNamed, getResults, getSessionId, getStringInfo, processParameters, processResults, registerBooleanParameter, registerBooleanResult, registerIntegerParameter, registerIntegerResult, registerParameter, registerProcessInfo, registerResult, registerStringArrayParameter, registerStringArrayResult, registerStringParameter, registerStringParameter, registerStringResult, registerStringResult, retrieveStringParameter, runTest, setParent, setResult, setResult, setResult, start
 
Methods inherited from class oracle.cle.process.Process
addCondition, addProcess, cloneProcess, debug, generateFailureCondition, generateSuccessCondition, getClassname, getCondition, getConditions, getIconName, getImageName, getName, getProcesses, getProcessNamed, getStateMachine, hashCode, isEndState, removeCondition, removeCondition, reportException, returnCondition, setCondition, setCondition, setEndState, setName, setService, toString
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ProcessGeneratorValueProvider

public ProcessGeneratorValueProvider()
Method Detail

registerInfo

public void registerInfo()
This method registers info used within this class to generate content
Overrides:
registerInfo in class GenericProcess

getAvailableResultConstants

public HTMLString getAvailableResultConstants()
Produces an HTML table that displays the interface name, result name and object type of the result.

getAvailableParameterConstants

public HTMLString getAvailableParameterConstants()
Produces an HTML table that displays the interface name, parameter name and object type of the parameter.

getProcessesTable

public HTMLString getProcessesTable()
This method creates a table of the available methods for generation. The table has a radio button with a value of the processes fully qualified class name and the fully qualified class name

getStoredResults

public HTMLString getStoredResults()
Produces a table of the results that have been selected and stored for later generation. The table displays the process name, parameter name and type

getStoredParameters

public HTMLString getStoredParameters()
Produces a table of the parameters that have been selected and stored for later generation. The table displays the process name, parameter name and type.

getImports

public HTMLString getImports()
Used for the generation of the imports necessary for the completion of the process. The imports are unique and will include any of the process used for parameters or results, the handler interface and the resource interface. The handler and resource imports will only be used if the processtype is persisting.

getHandlerFactory

public HTMLString getHandlerFactory()
This method generates the code for instantiating a handler.

getResultsInfo

public HTMLString getResultsInfo()
Used to generate results for the registerInfo method of any of the generated processes

getParameterVariables

public HTMLString getParameterVariables()
Used to generated local variables in the start method. The variables will be based on parameters that are being generated

getVariables

public HTMLString getVariables(java.util.Hashtable results)
Used to generated local variables in the start method. The variables will be based on the hashtable passed in.

getParameterInfo

public HTMLString getParameterInfo()
Creates code for parameters stored for generating in the process and defined in the registerInfo method

convertKey

public static java.lang.String convertKey(java.lang.String key)
Converts a sting to be used as a local variable. Converts the string to mixed case in standard java convention

getProcessStaticConstants

public HTMLString getProcessStaticConstants()
Create the static constants defined for the process being generated

getPackageValue

public HTMLString getPackageValue()
creates a string to define the package in the generated class

getClassValue

public HTMLString getClassValue()
Returns HTML String of the Class name

main

public static void main(java.lang.String[] args)


Copyright © 2003 ORACLE Corp. All Rights Reserved.