|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.waveset.util.AbstractXmlObject
com.waveset.object.FormItem
com.waveset.object.Form.Reference
Inner class used to represent a form or field reference. The inherited "name" field is used to mean the name of the referenced item. // For field references, we assume these // are unique within the included forms. Might want to allow // an optional "form" attribute to select a specific form to // search in, or allow a qualified name?
Field Summary |
Fields inherited from class com.waveset.util.AbstractXmlObject |
_trace, code_id |
Constructor Summary | |
Form.Reference()
|
|
Form.Reference(java.lang.String name)
|
Method Summary | |
java.lang.String |
getBaseContext()
Retreives the base context of this reference whether it was set as an attribute or as a child property called 'baseContext'. |
java.lang.String |
getBaseContext(ExState state)
Retreives the base context of this reference whether it was set as an attribute or as a child property called 'baseContext'. |
java.lang.String |
getName()
Retreives the name of this reference whether it was set as an attribute or as a child property called 'name'. |
java.lang.String |
getName(ExState state)
Retreives the name of this reference whether it was set as an attribute or as a child property called 'name'. |
java.util.List |
getProperties()
|
java.lang.Object |
getProperty(java.lang.String name)
Retreives the value of a property. |
java.lang.Object |
getProperty(java.lang.String name,
ExState state)
Retreives the value of a property |
void |
link(ExEnvironment env)
Link expressions within us into the environment. |
void |
parseXml(org.w3c.dom.Element e)
|
void |
setBaseContext(java.lang.String s)
|
void |
setName(java.lang.String s)
|
void |
setProperties(java.util.List props)
|
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, getParent, parseChild, parseCommonAttributes, setComments, setItems, setLocation, setParent, toXmlChildren |
Methods inherited from class com.waveset.util.AbstractXmlObject |
addXmlHeader, cloneObject, dump, dumpFile, getElementName, 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 |
Constructor Detail |
public Form.Reference()
public Form.Reference(java.lang.String name)
Method Detail |
public java.lang.String getName()
setName(String)
or in
the constructor it takes priority over the property value.
If name was set via a property and the property value is
calculated from an expression, this method returns null.
For expressions use getName(com.waveset.expression.ExState)
.
getName
in class FormItem
public java.lang.String getName(ExState state) throws WavesetException
setName(String)
or in
the constructor it takes priority over the property value.
WavesetException
public void setName(java.lang.String s)
setName
in class FormItem
public java.lang.String getBaseContext()
setBaseContext(String)
it takes priority over the property value.
If base context was set via a property and the property value is
calculated from an expression, this method returns null.
For expressions use getBaseContext(com.waveset.expression.ExState)
.
public java.lang.String getBaseContext(ExState state) throws WavesetException
setBaseContext(String)
it takes priority over the property value.
WavesetException
public void setBaseContext(java.lang.String s)
public java.util.List getProperties()
public java.lang.Object getProperty(java.lang.String name)
getProperty(String, com.waveset.expression.ExState)
name
-
public java.lang.Object getProperty(java.lang.String name, ExState state) throws WavesetException
name
- state
-
WavesetException
public void setProperties(java.util.List props)
public void parseXml(org.w3c.dom.Element e) throws WavesetException
WavesetException
public void toXml(java.lang.StringBuffer b, int indent)
AbstractXmlObject
toXml
in interface XmlObject
toXml
in class AbstractXmlObject
public void link(ExEnvironment env)
link
in class FormItem
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |