<!ATTLIST DATE id ID #REQUIRED template IDREF #IMPLIED javaName NMTOKEN #IMPLIED type ( DATE_TIME | DATE_HOUR_MIN | DATE | TIME | HOUR_MIN) "DATE_TIME" behavior NMTOKEN #IMPLIED> |
Attribute | Mand. | Description | Default |
id | yes | Date field identifier. | |
template | no | Reference to the date field used as pattern. | |
javaName | no | Name of the JAVA attribute that corresponds to the current field when automatic code generation is used. The default value is the name of the current field. | |
type | no | Type of this date field. Managed types are: - DATE_TIME: Year-month-day-hour-minutes-seconds - DATE_HOUR_MIN: Year-month-day-hour-minutes - DATE: Year-month-day - TIME: Hour-minutes-seconds - HOUR_MIN: Hour-minutes |
DATE_TIME |
behavior | no | Name of the Java class representing the behavior of this field. Reserved for a future use. |
<!ELEMENT DATE (%FIELD_BEGIN;, (UNITS | UNITS_REF)?, UNIT_REF?, DEFAULT?, %FIELD_END;)> |
Element | Mand. | Mult. | Description |
FIELD_BEGIN |
yes | no | Begin of field description. |
UNITS | yes | no | Dictionary of units of this field. |
UNITS_REF | yes | no | Reference on a dictionary of units of this field. |
UNIT_REF | no | no | Reference of the default unit for this field. This unit must belong to the dictionary of units of the field. |
DEFAULT | no | no | This string should follow the defined format. The special string "_now" defines that the default value is the current time when it is asked inside the application. For example, when the user asked for the creation of an object, this date field inside the creation form contains the time this action has been invoked. |
FIELD_END |
yes | no | End of field description.application. |
<DATE id="creationDate" type='DATE_HOUR_MIN'> <NAME value="Creation date"/> <TAB value="Opening "/> <F_MARKS table='true' sort='true' notNull='true'/> <DEFAULT value="_now"/> <TIP value="Creation date, automatically filled in at the creation of a new object"/> </DATE> |