NetBeans Platform Code Generator
Previous
Next

Script Content/Syntax Notes

The NBPCG script is an XML document. A template is available - using the New… entry, the template can be selected from the other category with file type NBPCG Definition file

script template selection

The structure of the script XML file is described below:

The top level element is the <nbpcg> element.

The <nbpcg> element

Attributes

Child Elements

The <build> element

Defines the build information - artifact selection, projects and packages etc.

Attributes

Child Elements

The <project> element

Defines the project information.

Attributes

Child Elements

The <generate> element

Requests the generation of code or resource files for various types of entities.

Attributes

The <node> element

Defines the nodes required and their interrelationships.

Attributes

Child Elements

The <entryfield> element

Defines an entry fields and its configuration and mapping to an entity field.

Attributes

The <action> element

Attributes

The <databases> element

Collection of all database definitions.

Child Elements

The <database> element

Definition of a database object.

Attributes

Child Elements

The <table> element

Definition of a database table object.

Attributes

Child Elements

The <field> element

Definition of a database table field (column) object.

Attributes

The <insertentity> element

Definition of an data row to be inserted into the database table object.

Child Elements

Previous
Next