Table of Contents

The <bind> Element

Definition and Usage

The <bind> element allows associating an interface of an object with a connector role.

If the referred connector role comes from a <simpleAction> element whose eventType is equal to “attribution”, and whose actionType is equal to “start”, and if the specified value is “$anyName”, the assigned value is retrieved from the property associated with the role “anyName” and defined by a <bind> child element in the same <link> element. If this value cannot be retrieved, no attribution is made.

Syntax

Element Attributes Content Parent
<bind> role, component, interface, descriptor <bindParam>* <link>

Attributes

Name Value Description
role String The role attribute refers to a connector role.
component IDREF. The component attribute refers to a <media> element, or to a <context> element, or to a <body> element, or to a <switch> element. These elements must be child elements of the same composition in which the <link> element is defined, or must be the composition in which the <link> element is defined.
interface

String.

The default value is the whole content anchor.

The interface attribute refers to an <area>, <port>, or <switchPort>, of the object identified by the component attribute, by referring its id attribute; or refers to a <property>, of the object identified by the component attribute, by referring its name attribute.
descriptor IDREF. The descriptor attribute refers to a <descriptor> element.