org.directwebremoting.dwrp
Class ObjectNonJsonOutboundVariable

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

public class ObjectNonJsonOutboundVariable
extends NonJsonNestedOutboundVariable
implements MapOutboundVariable

An OutboundVariable that creates data from Maps.

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

Constructor Summary
ObjectNonJsonOutboundVariable(OutboundContext outboundContext, java.lang.String aScriptClassName)
          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.
 void setChildren(java.util.Map<java.lang.String,OutboundVariable> children)
          Generate an map declaration for a map of Outbound variables
 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.extend.OutboundVariable
getAssignCode, getBuildCode, getDeclareCode, getReferenceVariable
 

Constructor Detail

ObjectNonJsonOutboundVariable

public ObjectNonJsonOutboundVariable(OutboundContext outboundContext,
                                     java.lang.String aScriptClassName)
Setup

Parameters:
outboundContext - A collection of objects already converted and the results
aScriptClassName - The object name or null for pure(ish) json
Method Detail

setChildren

public void setChildren(java.util.Map<java.lang.String,OutboundVariable> children)
Generate an map declaration for a map of Outbound variables

Specified by:
setChildren in interface MapOutboundVariable
Parameters:
children - The map of the converted contents

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