Site Manager Developer Manual / Version 2110
Table Of Contents<DocumentType name="article"> <PropertyType name="Author"> <Initializer class="myInitializer" myattribute="MyValue"/> </PropertyType> </DocumentType>
Example 5.8. Example for the use of an initializer
Initializer fill the fields of a newly created document with default values. Thus, an initializer is defined in
the element <PropertyType>
of the XML file. A GenericInitializer
is provided
which fills String, Integer, Date and SGML text fields with a default value. In addition, an own initializer class
can be used which must be declared via the element <Initializer>
. Own initializers can be
written, which must implement the interface hox.corem.editor.initialization.Initializer.
Initializer | Description |
---|---|
GenericInitializer |
This initializer fills String, Integer, Date and SGML text fields with a default value. The initializer
is called implicitly, if the attribute
Example: A generic initializer that initializes the property "limit" with the value "20":
|
LinkListInitializer |
This initializer fills a LinkList field with a document. Either the document defined via the
Example:
|
Table 5.25. Initializer classes