com.waveset.object
Class Form.Loop

java.lang.Object
  extended bycom.waveset.util.AbstractXmlObject
      extended bycom.waveset.object.FormItem
          extended bycom.waveset.object.Form.Loop
All Implemented Interfaces:
java.lang.Cloneable, com.sun.idm.debugger.common.Locatable, javax.naming.Referenceable, XmlObject
Enclosing class:
Form

public static class Form.Loop
extends FormItem
implements java.lang.Cloneable

Inner class used to represent the dynamic duplication of a set of Fields based on inputs.


Field Summary
static java.lang.String ELEMENT
           
 
Fields inherited from class com.waveset.util.AbstractXmlObject
_trace, code_id
 
Constructor Summary
Form.Loop()
           
Form.Loop(org.w3c.dom.Element e)
           
Form.Loop(org.w3c.dom.Element e, FormItem parent)
           
 
Method Summary
 java.lang.String getElementName()
          Return the element name.
 java.lang.String getForName()
           
 ExNode getInExpression()
           
 java.lang.String getInName()
           
protected  java.util.List getItemList()
          List accessor used by Formitem.
 java.util.List getItems()
          Form items may also have children.
 void link(ExEnvironment env)
          Form items may contain expressions, and at the moment expressions need to be "linked" into an ExEnvironment in order to resolve references to variables and functions.
 void parseXml(org.w3c.dom.Element e)
           
 void setForName(java.lang.String s)
           
 void setInExpression(ExNode n)
           
 void setInName(java.lang.String s)
           
 void toXml(java.lang.StringBuffer b, int indent)
          Serialize into a buffer with optional indentation.
 
Methods inherited from class com.waveset.object.FormItem
addCommonAttributes, addItem, addItem, addItems, clearItems, getComments, getForm, getLocation, getName, getParent, parseChild, parseCommonAttributes, setComments, setItems, setLocation, setName, setParent, toXmlChildren
 
Methods inherited from class com.waveset.util.AbstractXmlObject
addXmlHeader, cloneObject, dump, dumpFile, getReference, println, setTrace, toIdentityString, toVerboseString, toVerboseString, toXml, toXml, toXml
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ELEMENT

public static final java.lang.String ELEMENT
See Also:
Constant Field Values
Constructor Detail

Form.Loop

public Form.Loop()

Form.Loop

public Form.Loop(org.w3c.dom.Element e)
          throws WavesetException

Form.Loop

public Form.Loop(org.w3c.dom.Element e,
                 FormItem parent)
          throws WavesetException
Method Detail

link

public void link(ExEnvironment env)
Description copied from class: FormItem
Form items may contain expressions, and at the moment expressions need to be "linked" into an ExEnvironment in order to resolve references to variables and functions.

Overrides:
link in class FormItem

getElementName

public java.lang.String getElementName()
Description copied from class: AbstractXmlObject
Return the element name.

Specified by:
getElementName in interface XmlObject
Specified by:
getElementName in class AbstractXmlObject

getForName

public java.lang.String getForName()

setForName

public void setForName(java.lang.String s)

getInName

public java.lang.String getInName()

setInName

public void setInName(java.lang.String s)

getInExpression

public ExNode getInExpression()

setInExpression

public void setInExpression(ExNode n)

getItems

public java.util.List getItems()
Description copied from class: FormItem
Form items may also have children.

Overrides:
getItems in class FormItem

getItemList

protected java.util.List getItemList()
List accessor used by Formitem.

Overrides:
getItemList in class FormItem

parseXml

public void parseXml(org.w3c.dom.Element e)
              throws WavesetException
Throws:
WavesetException

toXml

public void toXml(java.lang.StringBuffer b,
                  int indent)
Description copied from class: AbstractXmlObject
Serialize into a buffer with optional indentation. This must be implemented by the subclass.

Specified by:
toXml in interface XmlObject
Specified by:
toXml in class AbstractXmlObject