oracle.clex.process
Class CreatePopulatedHTMLPage

java.lang.Object
  |
  +--oracle.cle.process.Process
        |
        +--oracle.cle.process.GenericProcess
              |
              +--oracle.cle.process.ParentProcess
                    |
                    +--oracle.clex.process.CreatePage
                          |
                          +--oracle.clex.process.CreateGenericTextPage
                                |
                                +--oracle.clex.process.CreateTagReplacementPage
                                      |
                                      +--oracle.clex.process.CreateHTMLPage
                                            |
                                            +--oracle.clex.process.CreatePopulatedHTMLPage
All Implemented Interfaces:
Child, java.lang.Cloneable, PageConstants, Parent, ProcessConstants, java.io.Serializable, State

public class CreatePopulatedHTMLPage
extends CreateHTMLPage

This class constructs HTML file by parsing through the contents of the HTML file. Values are provided for all HTML form items
Preferred Value format ="".

DEV Note: The processXXX methods use recursion so that it can process multiple tags on the same line. This is true in all cases except in the case of a "TEXTAREA" and drop down select list .

See Also:
Serialized Form

Field Summary
static java.lang.String CHECKED
           
static java.lang.String DEFAULT_VALUE
           
protected  java.util.Hashtable infoTable
           
static java.lang.String SELECTED
           
static java.lang.String VALUE_TAG
           
 
Fields inherited from class oracle.clex.process.CreateTagReplacementPage
className, filename, htmlDynamicLine, htmlInputBufferLine, htmlInputBufferNextLine, lookupPage, matchString, pageLocationKey, url, valueProvider, valueProviderInstance, valueStr, wrbStr, wrbSubStr
 
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
CreatePopulatedHTMLPage(java.lang.String aFileURLString)
          Constructor with aFileURLString parameter.
CreatePopulatedHTMLPage(java.lang.String aPageLocationKey, boolean lookup)
          Constructor with aPageLocationKey and lookup parameter.
CreatePopulatedHTMLPage(java.lang.String aFileURLString, java.lang.String aClassName)
           
CreatePopulatedHTMLPage(java.lang.String aPageLocationKey, java.lang.String aClassName, boolean lookup)
          Constructor with aPageLocationKey, aClassName parameters and lookup.
 
Method Summary
protected  java.lang.String postProcessLine(java.lang.String htmlInputBufferLine)
          Provides the dynamic content for the WRB_INC and the Form items values
protected  java.lang.String processCheckBoxTag(java.lang.String htmlInputBufferLine)
          Processes the Check box tag
protected  java.lang.String processInputTag(java.lang.String htmlInputBufferLine)
          Processes the Input Tag
protected  java.lang.String processOptionTag(java.lang.String selectName, java.lang.String htmlInputBufferLine)
          Processes the Option Tag
protected  java.lang.String processRadioTag(java.lang.String htmlInputBufferLine)
          Processes the Radio Tag
protected  java.lang.String processSelectTag(java.lang.String htmlInputBufferLine)
          Processes the Select tag
protected  java.lang.String processTextAreaTag(java.lang.String htmlInputBufferLine)
          Processes the Text Area Tag
 void start()
          Starts execution of this State Calls the printPage(PrintWriter out) to print page.
 
Methods inherited from class oracle.clex.process.CreateHTMLPage
getPageIDTag, main, registerInfo, setContentType, setCreatePageResult
 
Methods inherited from class oracle.clex.process.CreateTagReplacementPage
getInputStream, handleTag, init, postStart, preStart, printPage, setService
 
Methods inherited from class oracle.clex.process.CreatePage
buildTransitionTable, getPageId, lookupPageLocation, registerProcesses
 
Methods inherited from class oracle.cle.process.ParentProcess
addTransition, clone, doSkip, getChildren, getEndStates, getInitialState, getSkipable, isReady, processParameters, processResults, registerProcess, setInitialState, setSkipable, skip
 
Methods inherited from class oracle.cle.process.GenericProcess
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
 
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, toString
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface oracle.cle.process.Parent
getInfo, getName, getParents
 
Methods inherited from interface oracle.cle.process.Child
getParameters, getParent, getParents, getResults, setParent
 

Field Detail

infoTable

protected java.util.Hashtable infoTable

DEFAULT_VALUE

public static final java.lang.String DEFAULT_VALUE

VALUE_TAG

public static final java.lang.String VALUE_TAG

SELECTED

public static final java.lang.String SELECTED

CHECKED

public static final java.lang.String CHECKED
Constructor Detail

CreatePopulatedHTMLPage

public CreatePopulatedHTMLPage(java.lang.String aFileURLString)
Constructor with aFileURLString parameter. Assumption is made that the HTML file will not contain any WRB tag. In case, a WRB tag is found and no class parameter was passed, the printHTMLPage method sets state condition to failure.
Parameters:
aFileURLString - URL string containing the HTML file name

CreatePopulatedHTMLPage

public CreatePopulatedHTMLPage(java.lang.String aFileURLString,
                               java.lang.String aClassName)

CreatePopulatedHTMLPage

public CreatePopulatedHTMLPage(java.lang.String aPageLocationKey,
                               java.lang.String aClassName,
                               boolean lookup)
Constructor with aPageLocationKey, aClassName parameters and lookup. From the aClassName actual class is created and assigned to valueProvider class object. The aPageLocationKey is the key used to lookup the HTML Page location.
Parameters:
aPageLocationKey - properties key to use for lookup of the HTML page
aClassName - Name of the child class
lookup - lookup HTML location if this is true

CreatePopulatedHTMLPage

public CreatePopulatedHTMLPage(java.lang.String aPageLocationKey,
                               boolean lookup)
Constructor with aPageLocationKey and lookup parameter. The aPageLocationKey is the key used to lookup the HTML Page location only if the lookup parameter is set to true.
Parameters:
aPageLocationKey - properties key to use for lookup of the HTML page
lookup - lookup HTML location if this is true
Method Detail

start

public void start()
Description copied from class: CreatePage
Starts execution of this State Calls the printPage(PrintWriter out) to print page.
Overrides:
start in class CreatePage

processRadioTag

protected java.lang.String processRadioTag(java.lang.String htmlInputBufferLine)
                                    throws java.lang.StringIndexOutOfBoundsException
Processes the Radio Tag
Parameters:
String - : The HTML string
Returns:
String

processTextAreaTag

protected java.lang.String processTextAreaTag(java.lang.String htmlInputBufferLine)
                                       throws java.lang.StringIndexOutOfBoundsException
Processes the Text Area Tag
Parameters:
String - : The HTML string
Returns:
String

processInputTag

protected java.lang.String processInputTag(java.lang.String htmlInputBufferLine)
                                    throws java.lang.StringIndexOutOfBoundsException
Processes the Input Tag
Parameters:
String - : The HTML string
Returns:
String

processSelectTag

protected java.lang.String processSelectTag(java.lang.String htmlInputBufferLine)
                                     throws java.lang.StringIndexOutOfBoundsException,
                                            java.io.IOException
Processes the Select tag
Parameters:
String - : The HTML string
Returns:
String

processOptionTag

protected java.lang.String processOptionTag(java.lang.String selectName,
                                            java.lang.String htmlInputBufferLine)
Processes the Option Tag
Parameters:
String - : The HTML string
Returns:
String

processCheckBoxTag

protected java.lang.String processCheckBoxTag(java.lang.String htmlInputBufferLine)
                                       throws java.lang.StringIndexOutOfBoundsException
Processes the Check box tag
Parameters:
String - : The HTML string
Returns:
String

postProcessLine

protected java.lang.String postProcessLine(java.lang.String htmlInputBufferLine)
Provides the dynamic content for the WRB_INC and the Form items values
Overrides:
postProcessLine in class CreateHTMLPage


Copyright © 2003 ORACLE Corp. All Rights Reserved.