<STRUCT> : Structure field

Java class : leon.info.LyStructFieldInfo

ROLE

A struct is a field used to group other fields. A struct is exactly like an internal class.

ATTRIBUTES

<!ATTLIST STRUCT
	  id ID #REQUIRED
	  local ( true | false) "false"
	  load ( true | false) "false">
Attribute Mand. Description Default
id yes Identifier of the field.  
local no Equivalent with the local mark: allows to specify that this field is local i.e. that it has no physical representation on a data provider. false
load no Equivalent with the load mark: indicates that the field must be loaded when sending load requests with no indication on the fields that must be loaded. false

ELEMENTS

<!ELEMENT STRUCT 
	  ((%A_F_BIND;),
	   (%A_C_BIND;),
	   CACHE?,
	   FIELDS*)>
Element Mand. Mult. Description
A_F_BIND
no no Binding with the physical level.
A_C_BIND
no no Binding with the physical layer.
CACHE no no Cache policy for the structure instances.
FIELDS no yes List of the fields of the complex type.

SAMPLE

<STRUCT id="userAddress">
	<NAME value="Adresse"/>
	<F_MARKS create='true' set='true'/>
	<FIELDS>
		<NUMBER id="addressNumber">
			...
		</NUMBER>
		<TEXT id="addressStreet">
			...
		</TEXT>
		<NUMBER id="addressZipCode">
			...
		</NUMBER>
		<CHOICE id="addressCountry">
			...
		</CHOICE>
	</FIELDS>
</STRUCT>