<varref> : CookXml Core Tag
This tag is used to refer to an variable object. To set attributes and add children, however, one need to use the tag attribute to tell CookXml the tag to use.
Constructor Attribute ( ctor )
The constructor of this element is required and needs to be the variable name.
Additional Notes
Change the Way to Lookup Variable
CookXml has a parameter for aVarLookup function object. DefaultVarLookup being used looks up the actual variable inside an object.
By default, CookXml uses DefaultVarLookup if one passes a non-VarLookup object parameter, which looks up the actual variable inside an object.
Change the Accessibility of the Variable
By default, CookXml is only able to read / write public variables. One could change the accessibility of the CookXml to read protected and private variables. It allows one to expose less internal variables. However, this functionality can generate aSecurityException if there is a SecurityManager installed.
Examples
The following XML code retrieves the object from variable "myButton" and set its text attribute to "OK".
<varref ctor="myButton" text="OK"/>
PDF
History


