com.waveset.object
Class Form.ExpansionGroup
java.lang.Object
com.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
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ELEMENT
public static final java.lang.String ELEMENT
- See Also:
- Constant Field Values
Form.ExpansionGroup
public Form.ExpansionGroup()
Form.ExpansionGroup
public Form.ExpansionGroup(org.w3c.dom.Element e,
ExEnvironment env)
throws WavesetException
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