com.waveset.object
Class Form.ExpansionGroup

java.lang.Object
  extended bycom.waveset.object.Form.ExpansionGroup
Enclosing class:
Form

public static class Form.ExpansionGroup
extends java.lang.Object

A class used to represent a a collection of expansions for a field value. Simple forms may have only one expansion group, without a key. More complex forms may wish to have several alternate expansions selected by passing a list of expansion keys into the expandVariables method.


Field Summary
static java.lang.String ELEMENT
           
 
Constructor Summary
Form.ExpansionGroup()
           
Form.ExpansionGroup(org.w3c.dom.Element e, ExEnvironment env)
           
 
Method Summary
 Form.Expansion[] getExpansions()
           
 ExNode getExpression()
           
 boolean isActive(FormState s)
          Returns true if this expansion group is considered "active".
 void link(ExEnvironment env)
           
 void parseXml(org.w3c.dom.Element e, ExEnvironment env)
           
 void toXml(java.lang.StringBuffer b, int indent)
           
 
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.ExpansionGroup

public Form.ExpansionGroup()

Form.ExpansionGroup

public Form.ExpansionGroup(org.w3c.dom.Element e,
                           ExEnvironment env)
                    throws WavesetException
Method Detail

link

public void link(ExEnvironment env)

isActive

public boolean isActive(FormState s)
                 throws WavesetException
Returns true if this expansion group is considered "active". An expansion will be active it it has no gating expression, or if the expression returns true.

Throws:
WavesetException

getExpression

public ExNode getExpression()

getExpansions

public Form.Expansion[] getExpansions()

toXml

public void toXml(java.lang.StringBuffer b,
                  int indent)

parseXml

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