org.directwebremoting.extend
Class ArrayOutboundVariable

java.lang.Object
  extended by org.directwebremoting.extend.NestedOutboundVariable
      extended by org.directwebremoting.extend.ArrayOutboundVariable
All Implemented Interfaces:
OutboundVariable

public class ArrayOutboundVariable
extends NestedOutboundVariable

An OutboundVariable that declares a JavaScript array

Author:
Joe Walker [joe at getahead dot ltd dot uk]

Constructor Summary
ArrayOutboundVariable(OutboundContext context)
          Constructor
 
Method Summary
 java.lang.String getAssignCode()
          A short script that can be used to refer to this variable
 java.lang.String getBuildCode()
          A script that completes the definition of this variable, and may contain reference to other declared variables.
 java.lang.String getDeclareCode()
          A script to declare the variable so it can be referred to.
 
Methods inherited from class org.directwebremoting.extend.NestedOutboundVariable
getChildren, getReferenceVariable, isJsonMode, setChildren
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ArrayOutboundVariable

public ArrayOutboundVariable(OutboundContext context)
Constructor

Method Detail

getDeclareCode

public java.lang.String getDeclareCode()
Description copied from interface: OutboundVariable
A script to declare the variable so it can be referred to. This script is guaranteed not to refer to anything that can recurse

Returns:
Returns the declareCode

getBuildCode

public java.lang.String getBuildCode()
Description copied from interface: OutboundVariable
A script that completes the definition of this variable, and may contain reference to other declared variables.

Returns:
Returns the buildCode.

getAssignCode

public java.lang.String getAssignCode()
Description copied from interface: OutboundVariable
A short script that can be used to refer to this variable

Returns:
Returns the assignCode.

Copyright 2008