<RELATION> : Relation field

Java class : leon.info.LyRelationFieldInfo

ROLE

This element describes a field that refers to one or several objects of the application. The object references stored inside the value of this field may be ordered or not. Information about that kind of field could be completed by the list of target classes of the application, a default value, a field that specify the target class and a field that creates a context.

ATTRIBUTES

<!ATTLIST RELATION
	  id ID #REQUIRED
	  noContext ( true | false) "false"
	  noToolbar ( true | false) "false"
	  showAs ( DEFAULT | TABLE) "DEFAULT">
Attribute Mand. Description Default
id yes This is the identifier of this field.  
noContext no This attribute indicates if the context of views that contains this field is taken into account to compute the domain, the list of objects that may be used as values for this relation. Usually, all the logical objects of the relation domain must be related with at least one of the logical objects of the context. When this attribute is set to 'true' this behavior is removed. false
noToolbar no This attribute indicates that this relation has no associated toolbar in creation/modification forms. false
showAs no Allows to choose the type of presentation:
-DEFAULT : default presentation,
-TABLE : table presentation.
DEFAULT

ELEMENTS

<!ELEMENT RELATION 
	  (%FIELD_BEGIN;,
	   NROWS?,
	   NCOLS?,
	   %FIELD_END;)>
Element Mand. Mult. Description
FIELD_BEGIN
yes no Begin of a field description.
NROWS no no Specifies for a multiple relation the number of lines of the graphical input field.
NCOLS no no Specifies the number of columns of the graphical input field.
FIELD_END
yes no End of a field description.

SAMPLE 1

<RELATION id="alr_net">
	<ROUTES>
		<ROUTE target='netClass'>
			<STEP idrefs='alr_obj' target='muxClass'/>
		</ROUTE>
		<ROUTE target='netClass'>
			<STEP idrefs='alr_obj' target='cardClass'/>
			<STEP idrefs='card_eqt' target='muxClass'/>
		</ROUTE>
		<ROUTE>
			<STEP idrefs='alr_obj' target='portClass'/>
			<STEP idrefs='port_card' target='cardClass'/>
			<STEP idrefs='card_eqt' target='muxClass'/>
		</ROUTE>
	</ROUTES>
	<NAME value="ALR_NETWORK"/>
	<F_MARKS sort='true' filter='true' find='true' table='true' 			local='true'/>
	<CLASSES idrefs="netClass"/>
</RELATION>

SAMPLE 2

<RELATION id="br_eme" direction='FORWARD'>
	<F_BIND value="EMETTEUR"/>
	<NAME value="BR_EMETTEUR"/>
	<TAB value="TAB_EMISSION"/>
	<F_MARKS create='true' set='true' sort='true' filter='true' find='true' table='true'>
		<MARK name='EMISSION'/>
	</F_MARKS>
	<CLASSES idrefs="custClass usrClass"/>
	<DEFAULT value="$USER"/>
</RELATION>