org.directwebremoting.dwrp
Class ArrayNonJsonOutboundVariable

java.lang.Object
  extended by org.directwebremoting.dwrp.NonJsonNestedOutboundVariable
      extended by org.directwebremoting.dwrp.ArrayNonJsonOutboundVariable
All Implemented Interfaces:
CollectionOutboundVariable, OutboundVariable

public class ArrayNonJsonOutboundVariable
extends NonJsonNestedOutboundVariable
implements CollectionOutboundVariable

An OutboundVariable that creates data from Collections.

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

Constructor Summary
ArrayNonJsonOutboundVariable(OutboundContext outboundContext)
          Setup
 
Method Summary
 void prepareAssignCode()
          Things work out if they are doubly referenced during the conversion process, and can't be sure how to create output until that phase is done.
 void prepareBuildDeclareCodes()
          Create build and declare codes.
 java.lang.String toString()
           
 
Methods inherited from class org.directwebremoting.dwrp.NonJsonNestedOutboundVariable
getAssignCode, getBuildCode, getDeclareCode, getReferenceVariable, isOutline, setAssignCode, setBaseBuildCode, setBaseDeclareCode, setChildren
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.directwebremoting.dwrp.CollectionOutboundVariable
setChildren
 
Methods inherited from interface org.directwebremoting.extend.OutboundVariable
getAssignCode, getBuildCode, getDeclareCode, getReferenceVariable
 

Constructor Detail

ArrayNonJsonOutboundVariable

public ArrayNonJsonOutboundVariable(OutboundContext outboundContext)
Setup

Parameters:
outboundContext - A collection of objects already converted and the results
Method Detail

prepareAssignCode

public void prepareAssignCode()
Description copied from interface: OutboundVariable
Things work out if they are doubly referenced during the conversion process, and can't be sure how to create output until that phase is done. This method creates the assign code such that other variables can refer to us when creating build and declare codes

Specified by:
prepareAssignCode in interface OutboundVariable

prepareBuildDeclareCodes

public void prepareBuildDeclareCodes()
Description copied from interface: OutboundVariable
Create build and declare codes.

Specified by:
prepareBuildDeclareCodes in interface OutboundVariable
See Also:
OutboundVariable.prepareAssignCode()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

Copyright ¬ 2005