<FIELD> : Typed field

Java class : leon.info.LyFieldInfo

ROLE

The FIELD element defines a field from a template. The result is the same as the use of the template attribute in the definition of each type of field. A field defined with this element is of the same type as the field referenced by the type attribute.

ATTRIBUTES

<!ATTLIST FIELD
	  id ID #REQUIRED
	  local ( true | false) "false"
	  load ( true | false) "false"
	  notNull ( true | false) "false"
	  providerValue ( 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
notNull no Equivalent with the notNull mark: indicates that the field may not be null. When a new object is created, a value is automatically built for this field with the default value if no value has been specified. false
providerValue no Equivalent with the providerValue mark: allows to specify that the value of the field is given by the data provider. false

ELEMENTS

<!ELEMENT FIELD 
	  (((%A_F_BIND;), IMPORT?) |
	   PATH)?>
Element Mand. Mult. Description
A_F_BIND
no no Binding with the physical level.
IMPORT no no Allows to import a value (or a computation on a list of values) of a field from a pointed object by a relation of the same class.
PATH yes no Allows to compute the value of the field using a path.

SAMPLE

<FIELD id="userAddress" type="address" subtypes="frenchAddress"/>

<FIELD id="myZipCode" type="standardZipCode"/>