uCosminexus Service Platform, Basic Development Guide

[Contents][Glossary][Index][Back][Next]

4.4.4 Defining Elements (for CSV Format)

In case of the CSV format, define the contents of the binary format definition file in the Binary Format Definition screen. The Binary Format Definition screen opens when you double-click a binary format definition file displayed in the Package Explorer of Eclipse.

For details on the Binary Format Definition screen, see the manual Cosminexus Service Platform Reference.

Reference note
In the Binary Format Definition screen, you can open multiple binary format definition files and edit them. However, you cannot copy and paste definition information between multiple binary format definition files.

In the case of CSV format, if you create a new binary format definition file and view the Binary Format Definition screen, the root, header, and record elements are displayed as deployed.

Figure 4-6 Initial display of the Binary Format Definition Screen when using CSV format data

[Figure]

The root, header, and record elements are all complex content elements. The header and record elements are specified as components of the root element. Specify the simple content element of the local definition as a component in the header and record elements.

You perform the following operations in the Binary Format Definition screen:

The method for defining elements is described below.

Organization of this subsection
(1) Specifying format information
(2) Specifying occurrence count of header and record elements
(3) Specifying components of header and record elements
(4) Specifying the root element

(1) Specifying format information

Specify the character code and linefeed used in binary data as the format information of the binary format definition file.

The specification method is same as when non-CSV format binary data is used. For details about how to specify the format information, see 4.4.3(1) Specifying the format information.

(2) Specifying occurrence count of header and record elements

How to specify the occurrence count of header and record elements is explained below:

  1. Select the header element or record element displayed as a root element component, right click, and then choose Setting.
    The Component dialog box opens.
  2. Enter the occurrence count in the Component dialog box.
    Specify 0 as the occurrence count of header element if there is no header in the CSV data and 1 if a header exists.
    For details about the display and input contents of the Component dialog box, see the manual Cosminexus Service Platform Reference.
  3. Click OK.
    The occurrence count entered in the Component dialog box is set.

(3) Specifying components of header and record elements

The details about how to specify the components of the header and record elements that are displayed as the root element components in the binary format definition editor is explained below:

  1. Select the header element or record element displayed as a root element component, right click, and choose Add local simple content element.
    The Simple Content Element dialog box opens.
  2. Enter the necessary information in the Simple Content Element dialog box.
    For details about the display and input contents of the Simple Content Element dialog box, see the manual Cosminexus Service Platform Reference.
  3. Click OK.
    The information entered in the Simple Content Element dialog box is specified.

(4) Specifying the root element

If you use CSV data, you cannot specify elements other than the root elements initially displayed in the Binary Format Definition screen, in a root element. However, you can change only the root element name.

How to change a root element name is explained below:

  1. Select a root element, right click, and choose Setting.
    The Complex Content Element dialog box opens.
  2. Enter Name.
  3. Click OK.
    The entered name is specified.