railo.runtime.tag
Class Wddx

java.lang.Object
  extended by railo.runtime.ext.tag.TagImpl
      extended by railo.runtime.tag.Wddx
All Implemented Interfaces:
javax.servlet.jsp.tagext.Tag

public final class Wddx
extends TagImpl

Serializes and de-serializes CFML data structures to the XML-based WDDX format. Generates JavaScript statements to instantiate JavaScript objects equivalent to the contents of a WDDX packet or some CFML data structures.


Field Summary
 
Fields inherited from interface javax.servlet.jsp.tagext.Tag
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE
 
Constructor Summary
Wddx()
           
 
Method Summary
 int doEndTag()
           
 int doStartTag()
           
 void release()
           
 void setAction(String action)
          set the value action Specifies the action taken by the cfwddx tag.
 void setInput(Object input)
          set the value input The value to be processed.
 void setOutput(String output)
          set the value output The name of the variable to hold the output of the operation.
 void setToplevelvariable(String toplevelvariable)
          set the value toplevelvariable The name of the top-level JavaScript object created by the deserialization process.
 void setUsetimezoneinfo(boolean usetimezoneinfo)
          set the value usetimezoneinfo Indicates whether to output time-zone information when serializing CFML to WDDX.
 void setValidate(boolean validate)
          set the value validate
 void setXmlconform(boolean xmlConform)
          sets if generated code is xml or wddx conform
 
Methods inherited from class railo.runtime.ext.tag.TagImpl
getParent, required, required, required, required, setPageContext, setPageContext, setParent
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Wddx

public Wddx()
Method Detail

release

public void release()
Specified by:
release in interface javax.servlet.jsp.tagext.Tag
Overrides:
release in class TagImpl

setInput

public void setInput(Object input)
set the value input The value to be processed.

Parameters:
input - value to set

setAction

public void setAction(String action)
set the value action Specifies the action taken by the cfwddx tag.

Parameters:
action - value to set

setOutput

public void setOutput(String output)
set the value output The name of the variable to hold the output of the operation. This attribute is required for action = 'WDDX2CFML'. For all other actions, if this attribute is not provided, the result of the WDDX processing is outputted in the HTML stream.

Parameters:
output - value to set

setValidate

public void setValidate(boolean validate)
set the value validate

Parameters:
validate - value to set

setToplevelvariable

public void setToplevelvariable(String toplevelvariable)
set the value toplevelvariable The name of the top-level JavaScript object created by the deserialization process. The object created is an instance of the WddxRecordset object, explained in WddxRecordset Object.

Parameters:
toplevelvariable - value to set

setUsetimezoneinfo

public void setUsetimezoneinfo(boolean usetimezoneinfo)
set the value usetimezoneinfo Indicates whether to output time-zone information when serializing CFML to WDDX. If time-zone information is taken into account, the hour-minute offset, as represented in the ISO8601 format, is calculated in the date-time output. If time-zone information is not taken into account, the local time is output. The default is Yes.

Parameters:
usetimezoneinfo - value to set

setXmlconform

public void setXmlconform(boolean xmlConform)
sets if generated code is xml or wddx conform

Parameters:
xmlConform -

doStartTag

public int doStartTag()
               throws PageException
Specified by:
doStartTag in interface javax.servlet.jsp.tagext.Tag
Overrides:
doStartTag in class TagImpl
Throws:
PageException

doEndTag

public int doEndTag()
Specified by:
doEndTag in interface javax.servlet.jsp.tagext.Tag
Overrides:
doEndTag in class TagImpl


Copyright © 2012 Railo