<C_BIND> : Simple or partial binding

Java class : leon.info.binding.LyClassBinding

ROLE

In this case, one logical instance corresponds to one physical instance. However, all the physical instances do not necessary have a logical representation. There is a way to limit the number of logical instances by setting a filter on the current class. In the same way, all the attributes of an object of the physical layer do not necessary have a logical representation (a field which is bound to). In addition, one physical instance may correspond to several logical instances that belong to different classes. In this case, the sharing out between the logical classes is made with the help of filters. The identifier of the physical class, the name of the data provider and a limitation filter are needed to define this binding.

ATTRIBUTES

<!ATTLIST C_BIND
	  value CDATA #REQUIRED
	  location IDREF #IMPLIED>
Attribute Mand. Description Default
value yes Identifier of the physical class. The content of this value depends on the type of the data provider (the name of the table for a relational database, the name of the objectClass for an LDAP directory...)  
location no Identifier of the related data provider. The default value is the identifier of the application.  

ELEMENTS

<!ELEMENT C_BIND 
	  (FILTER |
	   FILTER_REF)?>
Element Mand. Mult. Description
FILTER yes no Filter used to define a partial binding (restricted to objects that match the filter).
FILTER_REF yes no Filter reference used to define a partial binding (restricted to objects that match the filter).

SAMPLE

<C_BIND value="user"/>

<C_BIND value="user" location="project"/>

<C_BIND value="user">
	<FILTER_REF idref="clientUsers"/>
</C_BIND>