<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
	  classBehavior NMTOKEN #IMPLIED>
Attribute Mand. Description Default
id yes Identifier of the field.  
classBehavior no Name of the Java class representing the behavior of the class associated with the structure (see leon.app.behavior.LyClassBehavior).  

ELEMENTS

<!ELEMENT STRUCT 
	  (%FIELD_BEGIN;,
	   FIELDS*,
	   RULE*,
	   UNITS?,
	   %FIELD_END;)>
Element Mand. Mult. Description
FIELD_BEGIN
yes no Begin of the field description.
FIELDS no yes List of the fields of the complex type.
RULE no yes Rules applied when modifying the values of the fields of the structure.
UNITS no no Dictionary of units for this field.
FIELD_END
yes no End of the field description.

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>