MMBase Builder Configuration


A builder file uses the following general format:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE builder PUBLIC "-//MMBase//DTD builder config 1.1//EN" "http://www.mmbase.org/dtd/builder_1_1.dtd">
<builder name="..." maintainer="..." version="..." extends="...">
  <status>...</status>
  <classfile>...</classfile>
  <searchage>...</searchage>
  <names>
    <singular xml:lang="...">...</singular>
    ...
    <plural xml:lang="...">...</plural>
    ...
  </names>
  <descriptions>
    <description xml:lang="...">...</description>
    ...
  </descriptions>
  <properties>
    <property name="...">...</property>
    ...
  </properties>
  <fieldlist>
    <field>
      <descriptions>
        <description xml:lang="...">...</description>
        ...
      </descriptions>
      <gui>
        <guiname xml:lang="...">...</guiname>
        ...
        <guitype>...</guitype>
      </gui>
      <editor>
        <positions>
          <input>...</input>
          <list>...</list>
          <search>...</search>
        </positions>
      </editor>
      <db>
        <name>...</name>
        <type state="..." notnull="..." key="...">...</type>
      </db>
    </field>
  </fieldlist>
</builder>
    

Most builders include less information than given here - since they can extend from each other, you only need to supply information that overrides the default, or when you add information such as fields.

The following sections explains the use and intention of each tag in detail.

The builder tag is the main tag. It's attributes define the builder's identity and place in the builder hierarchy. It is the parent of all other tags.

This section is used to supply gui (graphical user interface) names for the builder. The information is generally used in generic editors, as well as the default value for use in the editwizards.

You can include gui names for different languages. the system picks the correct name depending on its currently specified locale.

This section is used to supply a description or help text for the builder. It may include information on the type of objects, specific behavior,and how it should be used.

You can include descriptions for different languages. the system picks the correct description depending on its currently specified locale.

A list of name-value pairs, used by the java class specified in the classfile as configuration parameters. You normally only specify properties for objects with specific behavior (such as Images).

This tag is used to supply a description or help text for the field. It may include information on the type of objects, specific behavior,and how it should be used. This description is used (among other places) in the editwizards.

You can include descriptions for different languages. The system picks the correct description depending on its currently specified locale.

This section contains gui (graphical user interface) information for the field. The information is generally used in generic editors, as well as the default value for use in the editwizards.

This tag includes gui names for different languages to represent a label for the field. The system picks the correct name depending on its currently specified locale.

It can also contain one guitype, which explains how the field should be rendered or edited.

Determines settings for this field when used in a generic editor.

Lists the positions of a field in certain types of forms.


This is part of the MMBase documentation.

For questions and remarks about this documentation mail to: documentation@mmbase.org