org.directwebremoting.extend
Class NestedOutboundVariable

java.lang.Object
  extended by org.directwebremoting.extend.NestedOutboundVariable
All Implemented Interfaces:
OutboundVariable
Direct Known Subclasses:
ArrayOutboundVariable, ObjectOutboundVariable

public abstract class NestedOutboundVariable
extends java.lang.Object
implements OutboundVariable

A helper for implementing OutboundVariable when you have children

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

Method Summary
 java.util.Collection<OutboundVariable> getChildren()
          The objects that we contain
 OutboundVariable getReferenceVariable()
          Get a reference to this OutboundVariable.
 boolean isJsonMode()
          Are we in JSON mode, and therefore must quote property names?
 void setChildren(java.util.Collection<OutboundVariable> children)
          We setup the children later than construction time so we can check for recursive references.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.directwebremoting.extend.OutboundVariable
getAssignCode, getBuildCode, getDeclareCode
 

Method Detail

setChildren

public void setChildren(java.util.Collection<OutboundVariable> children)
We setup the children later than construction time so we can check for recursive references.


getChildren

public java.util.Collection<OutboundVariable> getChildren()
The objects that we contain


getReferenceVariable

public OutboundVariable getReferenceVariable()
Description copied from interface: OutboundVariable
Get a reference to this OutboundVariable. During step 1 of the conversion process where we turn the raw objects into OutboundVariables we may wish to refer to something that has already been converted. If this already is a reference then this method returns this, or if not it creates one that does.

Specified by:
getReferenceVariable in interface OutboundVariable
Returns:
An OutboundVariable that refers to this one.

isJsonMode

public boolean isJsonMode()
Are we in JSON mode, and therefore must quote property names?


Copyright 2008