Stellent
HowToComponents
JavaDoc

intradoc.common
Class DynamicHtmlMerger

java.lang.Object
  |
  +--intradoc.common.DynamicHtmlMerger
All Implemented Interfaces:
DynamicHtmlOutput

public class DynamicHtmlMerger
extends java.lang.Object
implements DynamicHtmlOutput

Class that gives an initial implementation of the DynamicHtmlOutput interface. Note: this class has no constructor. This class must be specialized and a full constructor supplied.


Field Summary
protected  int m_curStackDepth
           
protected  ExecutionContext m_cxt
          Context in which script is implemented.
 java.lang.StringBuffer m_debugTrace
           
protected  int m_errorNestingLevel
           
 java.lang.StringBuffer m_errorTrace
          Debug attributes.
protected  int m_evalNestingLevel
           
protected  ParseSyntaxException m_evalScriptError
           
protected  ScriptStackElement[] m_evalScriptStack
           
protected  java.lang.String m_function
          Active context variables.
protected  IdcBreakpoint m_idcBreakpoint
           
 boolean m_isReportErrorStack
           
protected  boolean m_isTracingScript
           
protected  boolean m_isViewablePageOutput
           
protected  java.util.Vector m_mergerImplementors
           
 int m_numEvalFunction
           
 int m_numEvalString
           
 int m_numGetValue
           
 int m_numIncResource
           
protected  ParseOutput m_parseOutput
          Reusable ParseOutput object.
protected  int m_recursionCount
           
protected  ScriptContext m_scriptContext
          Holds custom implementation of variables and functions.
protected  ScriptStackElement[] m_scriptStack
           
protected  java.lang.String m_variable
           
 
Constructor Summary
protected DynamicHtmlMerger()
           
 
Method Summary
 void addDataMerger(DataMergerImplementor mergerImplementor)
          Adds a callback interface allowing selective evaluation of result sets.
 boolean appAdvanceRow(java.lang.String rsetName)
          Advances to next row of a result set.
 void appAppendStackReferenceInfo(java.lang.StringBuffer stackMsg, HtmlChunk chunk, GrammarElement elt)
           
 void appendPageStatistics(java.lang.StringBuffer buf)
           
 void appendStackElementMessage(java.lang.StringBuffer stackMsg, ScriptStackElement prev, ScriptStackElement cur)
           
 boolean appEvaluateCondition(java.lang.String condition)
          Place for specialization to do its own evaluation of conditions.
 boolean appEvaluateFunction(java.lang.String func, java.lang.Object[] params)
          If not filter or callback interface implements funciton, then function is implemented here.
 DynamicHtml appGetAndRedirectHtmlResource(java.lang.String resName, boolean useSuper, HtmlChunk htmlChunk)
          Gets a resource include.
 java.lang.String appGetLocalVariable(java.lang.String key)
          Place for specialization to get a local variable.
 java.util.Vector appGetOptionList(java.lang.String optListName)
          Method returns option list from application data.
 java.lang.String appGetOptionListSelectName(java.lang.String optListName)
          Method returns key to use when trying to determine which value is selected.
 java.lang.Object appGetValue(java.lang.String variable)
           
 void appSetBackHtmlResource(java.lang.String key, DynamicHtml origHtml, HtmlChunk htmlChunk)
          Sets back a resource include.
 void appSetLocalVariable(java.lang.String key, java.lang.String val)
          Place for specialization to set a local variable.
 boolean checkCondition(HtmlChunk chunk, GrammarElement elt)
          Return true if 'condition' satisfied otherwise return false.
 void checkInitStack()
           
 ScriptStackElement[] cloneCurrentStack()
           
 void computeFunction(java.lang.String func, java.lang.Object[] params)
           
 java.lang.Object computeValue(java.lang.String variable, boolean toBool)
           
 void copyChunkInfo(ParseLocationInfo l, HtmlChunk htmlChunk)
           
 void createArgumentException(java.lang.String msg, java.lang.String parseStr, ParseSyntaxException e)
          Create an exception that reports the location of an error during runtime processing of script.
 java.lang.String createArgumentMessage(java.lang.String msg, java.lang.String parseStr, ParseSyntaxException e)
          Creates a message that reports the location of an error as an offset in a string that was parsed and executed.
static java.lang.String createErrorMessage(HtmlChunk chunk, GrammarElement elt, java.lang.String msg)
           
protected  void displayOptions(java.util.Vector params, java.io.Writer writer)
           
 void doBreakpoint(HtmlChunk chunk)
           
 void endActiveResultSet()
          End the loop by removing the result set.
 void evaluateBreakpoint(HtmlChunk chunk)
          Given the chunk, tries to display contextual information for a breakpoint.
 boolean evaluateCondition(java.lang.String condition)
           
 java.lang.Object evaluateGrammar(java.lang.String str)
           
 java.lang.Object evaluateGrammarElement(HtmlChunk chunk, GrammarElement elt, boolean toBool)
          Recursively called method that evaluates a grammar element.
 java.lang.String evaluateResourceInclude(java.lang.String inc)
           
 java.lang.String evaluateScript(java.lang.String str)
           
 java.lang.String evaluateScriptEx(java.lang.String str, boolean isXml)
           
protected  java.lang.String evaluateScriptInternal(java.lang.String str, boolean isXml)
           
 java.lang.Object evaluateScriptInValue(java.lang.Object obj)
          See if value for element should be recusively evaluated.
 java.lang.String evaluateScriptReportError(java.lang.String str)
           
 java.lang.String executeDynamicHtml(DynamicHtml dynHtml)
           
 int executeFilter(java.lang.String filter)
          Evaluates a plugin filter.
 DynamicHtml getAndRedirectHtmlResource(java.lang.String resName, HtmlChunk htmlChunk)
          Gets a resource of idoc script to evaluate.
 ScriptStackElement getCurrentStackElement()
           
 java.lang.String getDebugTrace()
          Gets the current debug trace.
 java.lang.String getErrorTrace()
          Gets the current error trace.
 ExecutionContext getExecutionContext()
          Gets the current execution context associated with this merger.
 boolean getIsTracingScript()
          Gets value of flag that turns on/off whether or not script is traced.
 boolean getIsViewablePageOutput()
          Gets value of flag that turns on/off whether or not this script is being executed in a context where at least some of the result will be directly viewable by a user or administrator.
 java.lang.String getOptionListSelectedValue(java.lang.String selectName)
          Gets value for an option list key (probably returned by the method appGetOptionListSelectName.
protected  java.util.Vector getOptions(java.util.Vector params, java.lang.String[] selNamePtr)
           
 ParseOutput getOrCreateParseOutput(java.lang.String debugFileName, boolean isXml)
          This method should be used by those who are parsing small bits of Idoc script.
 ScriptContext getScriptContext()
           
 java.util.Vector getScriptOptionList(java.lang.String name, java.lang.String selNameDef, java.lang.String[] selNamePtr)
           
 void init(ExecutionContext ctxt)
           
 boolean loadNextRow(HtmlChunk chunk, java.lang.String rsetName)
          Advances rows in a result set.
 java.lang.String outputDynamicHtmlPage(DynamicHtml dynHtml)
           
 java.util.Vector parseIntoParams(java.lang.String param)
           
 DynamicHtml parseScriptInternal(java.lang.String str)
           
 DynamicHtml parseScriptInternalEx(java.lang.String str, boolean isXml)
           
 void popStack()
           
 void pushStack(java.lang.String resName, GrammarElement arg, DynamicHtml elt, HtmlChunk htmlChunk)
           
 void pushStackMessage(java.lang.String msg)
           
 void registerMerger()
           
 void reportError(java.lang.String msg)
          Outputs a error message without carriage return.
 void reportErrorAsTraceMessage(HtmlChunk chunk, GrammarElement elt, java.lang.String msg)
          Reports a grammar execution error as trace message.
 void reportErrorln(java.lang.String msg)
          Outputs a error message with carriage return.
 void reportErrorMessage(HtmlChunk chunk, GrammarElement elt, java.lang.String msg)
          Reports a grammar execution error message.
 void reportTrace(java.lang.String msg, DynamicHtml dynHtml)
          Outputs a debug trace.
 void reportTraceln(java.lang.String msg, DynamicHtml dynHtml)
          Outputs a debug trace with carriage return.
 void setBackRedirectHtmlResource(java.lang.String inc, DynamicHtml dynHtml, HtmlChunk htmlChunk)
          Undoes the redirection.
 void setExecutionContext(ExecutionContext cxt)
          Beware.
 void setIsTracingScript(boolean isTracingScript)
          Turns on/off flag that controls whether or not script is traced.
 void setIsViewablePageOutput(boolean isViewablePageOutput)
          Turns on/off flag that controls output is meant to be viewable.
 void setScriptContext(ScriptContext context)
           
 void substituteVariable(HtmlChunk chunk, GrammarElement elt, java.io.Writer writer)
          Displays the value of a variable or option list.
 void unregisterMerger()
           
 void updateBreakpoint(java.lang.String type)
           
 void writeOptions(java.io.Writer writer, java.util.Vector options, java.lang.String selName)
          Write out options list.
 java.lang.String writeResourceInclude(java.lang.String inc, java.io.Writer writer, boolean mustExist)
           
 void writeValue(java.io.Writer writer, java.lang.String value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_cxt

protected ExecutionContext m_cxt
Context in which script is implemented.


m_mergerImplementors

protected java.util.Vector m_mergerImplementors

m_scriptContext

protected ScriptContext m_scriptContext
Holds custom implementation of variables and functions.


m_function

protected java.lang.String m_function
Active context variables.


m_variable

protected java.lang.String m_variable

m_recursionCount

protected int m_recursionCount

m_evalScriptError

protected ParseSyntaxException m_evalScriptError

m_evalScriptStack

protected ScriptStackElement[] m_evalScriptStack

m_evalNestingLevel

protected int m_evalNestingLevel

m_errorNestingLevel

protected int m_errorNestingLevel

m_idcBreakpoint

protected IdcBreakpoint m_idcBreakpoint

m_parseOutput

protected ParseOutput m_parseOutput
Reusable ParseOutput object. Note, usage of the ParseOutput object is NOT thread safe. In fact this whole object is really not thread safe.


m_errorTrace

public java.lang.StringBuffer m_errorTrace
Debug attributes. The error trace is always tracked. The debug trace has to be enabled.


m_debugTrace

public java.lang.StringBuffer m_debugTrace

m_isReportErrorStack

public boolean m_isReportErrorStack

m_isViewablePageOutput

protected boolean m_isViewablePageOutput

m_isTracingScript

protected boolean m_isTracingScript

m_scriptStack

protected ScriptStackElement[] m_scriptStack

m_curStackDepth

protected int m_curStackDepth

m_numGetValue

public int m_numGetValue

m_numEvalFunction

public int m_numEvalFunction

m_numIncResource

public int m_numIncResource

m_numEvalString

public int m_numEvalString
Constructor Detail

DynamicHtmlMerger

protected DynamicHtmlMerger()
Method Detail

init

public void init(ExecutionContext ctxt)

checkInitStack

public void checkInitStack()

pushStack

public void pushStack(java.lang.String resName,
                      GrammarElement arg,
                      DynamicHtml elt,
                      HtmlChunk htmlChunk)

pushStackMessage

public void pushStackMessage(java.lang.String msg)

popStack

public void popStack()

copyChunkInfo

public void copyChunkInfo(ParseLocationInfo l,
                          HtmlChunk htmlChunk)

getCurrentStackElement

public ScriptStackElement getCurrentStackElement()

cloneCurrentStack

public ScriptStackElement[] cloneCurrentStack()

getAndRedirectHtmlResource

public DynamicHtml getAndRedirectHtmlResource(java.lang.String resName,
                                              HtmlChunk htmlChunk)
                                       throws ParseSyntaxException
Gets a resource of idoc script to evaluate. Marks off the resource and any parents that are iterated through as locked until released. This is used to solve the following problem. A resource includes the "super" version of itself, then that "super" version includes yet the more "super" version.

Specified by:
getAndRedirectHtmlResource in interface DynamicHtmlOutput
ParseSyntaxException

setBackRedirectHtmlResource

public void setBackRedirectHtmlResource(java.lang.String inc,
                                        DynamicHtml dynHtml,
                                        HtmlChunk htmlChunk)
                                 throws ParseSyntaxException
Undoes the redirection.

Specified by:
setBackRedirectHtmlResource in interface DynamicHtmlOutput
ParseSyntaxException

checkCondition

public boolean checkCondition(HtmlChunk chunk,
                              GrammarElement elt)
                       throws java.io.IOException,
                              ParseSyntaxException
Return true if 'condition' satisfied otherwise return false.

Specified by:
checkCondition in interface DynamicHtmlOutput
java.io.IOException
ParseSyntaxException

loadNextRow

public boolean loadNextRow(HtmlChunk chunk,
                           java.lang.String rsetName)
                    throws java.io.IOException
Advances rows in a result set.

Specified by:
loadNextRow in interface DynamicHtmlOutput
java.io.IOException

endActiveResultSet

public void endActiveResultSet()
Description copied from interface: DynamicHtmlOutput
End the loop by removing the result set.

Specified by:
endActiveResultSet in interface DynamicHtmlOutput

substituteVariable

public void substituteVariable(HtmlChunk chunk,
                               GrammarElement elt,
                               java.io.Writer writer)
                        throws java.io.IOException,
                               ParseSyntaxException
Displays the value of a variable or option list.

Specified by:
substituteVariable in interface DynamicHtmlOutput
java.io.IOException
ParseSyntaxException

evaluateBreakpoint

public void evaluateBreakpoint(HtmlChunk chunk)
Description copied from interface: DynamicHtmlOutput
Given the chunk, tries to display contextual information for a breakpoint.

Specified by:
evaluateBreakpoint in interface DynamicHtmlOutput

registerMerger

public void registerMerger()
Specified by:
registerMerger in interface DynamicHtmlOutput

unregisterMerger

public void unregisterMerger()
Specified by:
unregisterMerger in interface DynamicHtmlOutput

updateBreakpoint

public void updateBreakpoint(java.lang.String type)

doBreakpoint

public void doBreakpoint(HtmlChunk chunk)
Specified by:
doBreakpoint in interface DynamicHtmlOutput

executeFilter

public int executeFilter(java.lang.String filter)
                  throws java.io.IOException
Evaluates a plugin filter. Implemented by a specialization

java.io.IOException

appAdvanceRow

public boolean appAdvanceRow(java.lang.String rsetName)
                      throws java.io.IOException
Advances to next row of a result set. Implemented by a specialization.

java.io.IOException

evaluateGrammarElement

public java.lang.Object evaluateGrammarElement(HtmlChunk chunk,
                                               GrammarElement elt,
                                               boolean toBool)
                                        throws java.io.IOException,
                                               java.lang.IllegalArgumentException
Recursively called method that evaluates a grammar element.

java.io.IOException
java.lang.IllegalArgumentException

evaluateCondition

public boolean evaluateCondition(java.lang.String condition)
                          throws java.lang.IllegalArgumentException,
                                 java.io.IOException,
                                 ServiceException
java.lang.IllegalArgumentException
java.io.IOException
ServiceException

appGetAndRedirectHtmlResource

public DynamicHtml appGetAndRedirectHtmlResource(java.lang.String resName,
                                                 boolean useSuper,
                                                 HtmlChunk htmlChunk)
                                          throws ParseSyntaxException
Gets a resource include.

ParseSyntaxException

appSetBackHtmlResource

public void appSetBackHtmlResource(java.lang.String key,
                                   DynamicHtml origHtml,
                                   HtmlChunk htmlChunk)
                            throws ParseSyntaxException
Sets back a resource include.

ParseSyntaxException

appEvaluateCondition

public boolean appEvaluateCondition(java.lang.String condition)
                             throws java.io.IOException
Place for specialization to do its own evaluation of conditions.

java.io.IOException

appSetLocalVariable

public void appSetLocalVariable(java.lang.String key,
                                java.lang.String val)
Place for specialization to set a local variable.


appGetLocalVariable

public java.lang.String appGetLocalVariable(java.lang.String key)
Place for specialization to get a local variable.


computeFunction

public void computeFunction(java.lang.String func,
                            java.lang.Object[] params)
                     throws java.lang.IllegalArgumentException,
                            java.io.IOException,
                            ServiceException
java.lang.IllegalArgumentException
java.io.IOException
ServiceException

appEvaluateFunction

public boolean appEvaluateFunction(java.lang.String func,
                                   java.lang.Object[] params)
                            throws java.lang.IllegalArgumentException,
                                   java.io.IOException
If not filter or callback interface implements funciton, then function is implemented here. Returns false if function was not evaluated.

java.lang.IllegalArgumentException
java.io.IOException

parseIntoParams

public java.util.Vector parseIntoParams(java.lang.String param)

computeValue

public java.lang.Object computeValue(java.lang.String variable,
                                     boolean toBool)
                              throws java.lang.IllegalArgumentException,
                                     java.io.IOException,
                                     ServiceException
java.lang.IllegalArgumentException
java.io.IOException
ServiceException

appGetValue

public java.lang.Object appGetValue(java.lang.String variable)
                             throws java.lang.IllegalArgumentException,
                                    java.io.IOException
java.lang.IllegalArgumentException
java.io.IOException

writeValue

public void writeValue(java.io.Writer writer,
                       java.lang.String value)
                throws java.io.IOException
java.io.IOException

displayOptions

protected void displayOptions(java.util.Vector params,
                              java.io.Writer writer)
                       throws java.io.IOException,
                              ServiceException
java.io.IOException
ServiceException

getScriptOptionList

public java.util.Vector getScriptOptionList(java.lang.String name,
                                            java.lang.String selNameDef,
                                            java.lang.String[] selNamePtr)
                                     throws java.io.IOException,
                                            ServiceException
java.io.IOException
ServiceException

getOptions

protected java.util.Vector getOptions(java.util.Vector params,
                                      java.lang.String[] selNamePtr)
                               throws java.io.IOException,
                                      ServiceException
java.io.IOException
ServiceException

appGetOptionListSelectName

public java.lang.String appGetOptionListSelectName(java.lang.String optListName)
Method returns key to use when trying to determine which value is selected. Implemented by a specialization.


appGetOptionList

public java.util.Vector appGetOptionList(java.lang.String optListName)
Method returns option list from application data. Implemented by a specialization.


writeOptions

public void writeOptions(java.io.Writer writer,
                         java.util.Vector options,
                         java.lang.String selName)
                  throws java.io.IOException,
                         ServiceException
Write out options list.

java.io.IOException
ServiceException

getOptionListSelectedValue

public java.lang.String getOptionListSelectedValue(java.lang.String selectName)
                                            throws java.io.IOException
Gets value for an option list key (probably returned by the method appGetOptionListSelectName.

java.io.IOException

evaluateScriptInValue

public java.lang.Object evaluateScriptInValue(java.lang.Object obj)
                                       throws java.io.IOException,
                                              java.lang.IllegalArgumentException
See if value for element should be recusively evaluated. Allows user to put in values in fields so that will be evaluated before being presented.

java.io.IOException
java.lang.IllegalArgumentException

evaluateGrammar

public java.lang.Object evaluateGrammar(java.lang.String str)
                                 throws java.lang.IllegalArgumentException,
                                        java.io.IOException
java.lang.IllegalArgumentException
java.io.IOException

evaluateScript

public java.lang.String evaluateScript(java.lang.String str)
                                throws java.io.IOException,
                                       java.lang.IllegalArgumentException
java.io.IOException
java.lang.IllegalArgumentException

evaluateScriptEx

public java.lang.String evaluateScriptEx(java.lang.String str,
                                         boolean isXml)
                                  throws java.io.IOException,
                                         java.lang.IllegalArgumentException
java.io.IOException
java.lang.IllegalArgumentException

evaluateScriptReportError

public java.lang.String evaluateScriptReportError(java.lang.String str)
                                           throws java.io.IOException,
                                                  java.lang.IllegalArgumentException,
                                                  ParseSyntaxException
java.io.IOException
java.lang.IllegalArgumentException
ParseSyntaxException

evaluateScriptInternal

protected java.lang.String evaluateScriptInternal(java.lang.String str,
                                                  boolean isXml)
                                           throws java.io.IOException,
                                                  java.lang.IllegalArgumentException
java.io.IOException
java.lang.IllegalArgumentException

parseScriptInternalEx

public DynamicHtml parseScriptInternalEx(java.lang.String str,
                                         boolean isXml)
                                  throws java.io.IOException,
                                         ParseSyntaxException
java.io.IOException
ParseSyntaxException

parseScriptInternal

public DynamicHtml parseScriptInternal(java.lang.String str)
                                throws java.io.IOException,
                                       ParseSyntaxException
java.io.IOException
ParseSyntaxException

getOrCreateParseOutput

public ParseOutput getOrCreateParseOutput(java.lang.String debugFileName,
                                          boolean isXml)
This method should be used by those who are parsing small bits of Idoc script. By reusing the parse output object, a factor x4 or more speed increase can be realized. Note, the object DynamicHtmlMerger object is NOT thread safe. You must have a different ParseOutput object created per thread of execution.


evaluateResourceInclude

public java.lang.String evaluateResourceInclude(java.lang.String inc)
                                         throws java.io.IOException,
                                                java.lang.IllegalArgumentException
java.io.IOException
java.lang.IllegalArgumentException

writeResourceInclude

public java.lang.String writeResourceInclude(java.lang.String inc,
                                             java.io.Writer writer,
                                             boolean mustExist)
                                      throws java.io.IOException,
                                             java.lang.IllegalArgumentException
java.io.IOException
java.lang.IllegalArgumentException

outputDynamicHtmlPage

public java.lang.String outputDynamicHtmlPage(DynamicHtml dynHtml)
                                       throws java.io.IOException,
                                              ParseSyntaxException
java.io.IOException
ParseSyntaxException

executeDynamicHtml

public java.lang.String executeDynamicHtml(DynamicHtml dynHtml)
                                    throws java.io.IOException,
                                           ParseSyntaxException
java.io.IOException
ParseSyntaxException

createArgumentException

public void createArgumentException(java.lang.String msg,
                                    java.lang.String parseStr,
                                    ParseSyntaxException e)
                             throws java.lang.IllegalArgumentException
Create an exception that reports the location of an error during runtime processing of script. This error is in the internal processing of an element and gives offsets into the string that produced the GrammarElement object. The method createErrorMessage is the high level message that reports the location of the GrammarElement inside the file.

java.lang.IllegalArgumentException
See Also:
createErrorMessage

createArgumentMessage

public java.lang.String createArgumentMessage(java.lang.String msg,
                                              java.lang.String parseStr,
                                              ParseSyntaxException e)
                                       throws java.lang.IllegalArgumentException
Creates a message that reports the location of an error as an offset in a string that was parsed and executed. This method is called by createArgumentException.

java.lang.IllegalArgumentException
See Also:
createArgumentException

reportErrorMessage

public void reportErrorMessage(HtmlChunk chunk,
                               GrammarElement elt,
                               java.lang.String msg)
Reports a grammar execution error message.


appAppendStackReferenceInfo

public void appAppendStackReferenceInfo(java.lang.StringBuffer stackMsg,
                                        HtmlChunk chunk,
                                        GrammarElement elt)

appendStackElementMessage

public void appendStackElementMessage(java.lang.StringBuffer stackMsg,
                                      ScriptStackElement prev,
                                      ScriptStackElement cur)

reportErrorAsTraceMessage

public void reportErrorAsTraceMessage(HtmlChunk chunk,
                                      GrammarElement elt,
                                      java.lang.String msg)
Reports a grammar execution error as trace message.


reportErrorln

public void reportErrorln(java.lang.String msg)
Outputs a error message with carriage return.


reportError

public void reportError(java.lang.String msg)
Outputs a error message without carriage return.


reportTraceln

public void reportTraceln(java.lang.String msg,
                          DynamicHtml dynHtml)
Outputs a debug trace with carriage return.


reportTrace

public void reportTrace(java.lang.String msg,
                        DynamicHtml dynHtml)
Outputs a debug trace.


createErrorMessage

public static java.lang.String createErrorMessage(HtmlChunk chunk,
                                                  GrammarElement elt,
                                                  java.lang.String msg)

getExecutionContext

public ExecutionContext getExecutionContext()
Gets the current execution context associated with this merger.


setExecutionContext

public void setExecutionContext(ExecutionContext cxt)
Beware. If the ExecutionContext you supply isn't fairly complete, you may have objects like PageMerger explode on you. A wise idea is to wrap the ExecutionContext returned by getExecutionContext() in an ExecutionContextAdaptor and set that into this DynamicHtmlMerger.


addDataMerger

public void addDataMerger(DataMergerImplementor mergerImplementor)
Adds a callback interface allowing selective evaluation of result sets.


getIsTracingScript

public boolean getIsTracingScript()
Gets value of flag that turns on/off whether or not script is traced.


setIsTracingScript

public void setIsTracingScript(boolean isTracingScript)
Turns on/off flag that controls whether or not script is traced.


getIsViewablePageOutput

public boolean getIsViewablePageOutput()
Gets value of flag that turns on/off whether or not this script is being executed in a context where at least some of the result will be directly viewable by a user or administrator. This flag should be false only if the script is being used to control internal logic or set variables.


setIsViewablePageOutput

public void setIsViewablePageOutput(boolean isViewablePageOutput)
Turns on/off flag that controls output is meant to be viewable.


getErrorTrace

public java.lang.String getErrorTrace()
Gets the current error trace.


getDebugTrace

public java.lang.String getDebugTrace()
Gets the current debug trace.


getScriptContext

public ScriptContext getScriptContext()

setScriptContext

public void setScriptContext(ScriptContext context)

appendPageStatistics

public void appendPageStatistics(java.lang.StringBuffer buf)


(c) 1996-2005  All rights reserved.  Stellent, Inc.