com.waveset.object
Class Form.Expression
java.lang.Object
com.waveset.util.AbstractXmlObject
com.waveset.object.FormItem
com.waveset.object.Form.Expression
- All Implemented Interfaces:
- com.sun.idm.debugger.common.Locatable, javax.naming.Referenceable, XmlObject
- Enclosing class:
- Form
- public static class Form.Expression
- extends FormItem
Inner class used to represent a top-level XPRESS node,
normally a or
This wrapper is so we can assume that all items on the _items
list is a FormItem.
//
// Note that since this doesn't serialize a wrapper, we can't
// embed might want to add that to ExNode?
Method Summary |
java.lang.String |
getElementName()
We have to implement this so we can be an AbstractXmlObject
but we won't actually put this wrapper around the node. |
ExNode |
getNode()
|
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 |
setNode(ExNode n)
|
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, getItemList, getItems, 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 |
Form.Expression
public Form.Expression()
Form.Expression
public Form.Expression(org.w3c.dom.Element e)
throws WavesetException
Form.Expression
public Form.Expression(org.w3c.dom.Element e,
FormItem parent)
throws WavesetException
- We have historically had this constructor so we could
install things in the Form's ExEnvironment as we built.
That makes it difficult to incrementally construct things
in the editor. So we no longer require it, but you
must call resolveExpressions.
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()
- We have to implement this so we can be an AbstractXmlObject
but we won't actually put this wrapper around the node.
- Specified by:
getElementName
in interface XmlObject
- Specified by:
getElementName
in class AbstractXmlObject
getNode
public ExNode getNode()
setNode
public void setNode(ExNode n)
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