API Documentation

# ECXMLControlReferenceRule

This rule allows the definition of anchors and their corresponding references.
Superclass: ECObject

Through this rule it is possible to set an anchor and by doing so, to refer to the corresponding object later in the xml parsing step. The reference results in a corresponding setter call. Example:

<house id="house-id"/>
<Contract price="128.231,75" object-idref="house-id"/> In this example the object allocated by <Contracr> will be hand-off the previously allocate instance related to <house> by calling the related setter method setObject or addObject.

The underlying rules are as follows:

- id-attribute: This attribute specifies the name under which the object, which is currently on top of the stack, has to be registered. The identifier behind has to be unique wrt. the whole file.
- <attributename>-idref-attribute: Looks for an object which has been registered with the value specified by this attribute. The registration must habe been done before! If the registired object is found then the underlying setting method is called using <attributename> as the base name.

Regarding the lookup for the corresponding setting method please refer to ECXMLControlSetterLookupUtil.

(Last Updated August 27, 2006)
HTML documentation generated by HeaderDoc