JP2009211143A - Information processor and information processing program - Google Patents

Information processor and information processing program Download PDF

Info

Publication number
JP2009211143A
JP2009211143A JP2008050719A JP2008050719A JP2009211143A JP 2009211143 A JP2009211143 A JP 2009211143A JP 2008050719 A JP2008050719 A JP 2008050719A JP 2008050719 A JP2008050719 A JP 2008050719A JP 2009211143 A JP2009211143 A JP 2009211143A
Authority
JP
Japan
Prior art keywords
source code
information
template
specification information
definition file
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2008050719A
Other languages
Japanese (ja)
Inventor
Masayoshi Narukawa
正芳 成川
Ayumi Tawara
歩 田原
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Toshiba Corp
Toshiba Digital Solutions Corp
Original Assignee
Toshiba Corp
Toshiba Solutions Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Toshiba Corp, Toshiba Solutions Corp filed Critical Toshiba Corp
Priority to JP2008050719A priority Critical patent/JP2009211143A/en
Publication of JP2009211143A publication Critical patent/JP2009211143A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Stored Programmes (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To easily prepare a source code of screen information according to the intention of a user. <P>SOLUTION: When selecting a file name of a screen definition file 4 by input operation to a GUI (Graphical User Interface) part 1, a screen definition file reading analysis part 2 with the file name as a parameter is generated. The screen definition file reading analysis part 2 creates a list of generation target file names through reading of the screen definition file 4, a data check, and calculation of a value by a source code generation logic 23. When the file name of a generation target is selected by input operation to the GUI part 1, a source code output part 3 generates a source code of a file instructed with the generation by use of a source code template 5. The screen definition file 4, the source code template 5, and the source code generation logic 23 can be each customized, and regeneration of the source code is performed by newly selecting the file name of the screen definition file 4 after the customization is performed. <P>COPYRIGHT: (C)2009,JPO&INPIT

Description

本発明は、画面情報のソースコードを生成する情報処理装置および情報処理プログラムに関する。   The present invention relates to an information processing apparatus and an information processing program that generate a source code of screen information.

従来、例えば特許文献1に開示されるようにプログラムのソースコードを生成する技術があるが、このようなソースコード生成の一種として、設計書となる部品仕様情報をもとにソフトウェア部品のソースコードを生成する技術がある。
特開平5−100832号公報
Conventionally, there is a technique for generating a source code of a program as disclosed in, for example, Patent Document 1. As one type of such source code generation, a source code of a software component based on component specification information as a design document. There is a technology to generate.
Japanese Patent Laid-Open No. 5-100832

部品仕様情報によって定義できる画面機能はソースコード生成にあたって予め決められているが、当該部品仕様情報はソースコード生成用のプログラムで予め想定した画面構成や機能を前提として作成されたものであるため、画面レイアウトの変更を要する場合には部品仕様情報を変更することでユーザの要求に応じた画面を新たに定義することが困難である。よってユーザの意向に応じた画面情報のソースコードを自動生成することが困難であった。   The screen functions that can be defined by the component specification information are determined in advance when generating the source code, but the component specification information is created on the assumption of the screen configuration and functions assumed in advance in the source code generation program. When it is necessary to change the screen layout, it is difficult to define a new screen according to the user's request by changing the component specification information. Therefore, it is difficult to automatically generate a source code of screen information according to the user's intention.

そこで、本発明の目的は、ユーザの意向に応じた画面情報のソースコードを容易に作成することが可能になる情報処理装置および情報処理プログラムを提供することにある。   Accordingly, an object of the present invention is to provide an information processing apparatus and an information processing program capable of easily creating a source code of screen information according to a user's intention.

すなわち、本発明に係わる情報処理装置は、出力用情報のソフトウェア部品のソースコードテンプレート情報を記憶するテンプレート記憶手段と、テンプレート情報中の変数に対応するソフトウェア部品仕様情報を記憶する仕様情報記憶手段と、部品仕様情報の内容に対応し、当該部品仕様情報およびテンプレート情報をもとにソースコードを生成するための生成用プログラムを記憶する生成用プログラム記憶手段とを備え、部品仕様情報、テンプレート情報および生成用プログラムをもとにソースコードを生成し、ソースコードテンプレート情報、部品仕様情報および生成用プログラムの少なくとも1種類を入力操作にしたがって修正し、修正後、ソースコードテンプレート情報、部品仕様情報および生成用プログラムをもとにソースコードを再生成することを特徴とする。   That is, an information processing apparatus according to the present invention includes a template storage unit that stores source code template information of software components of output information, and a specification information storage unit that stores software component specification information corresponding to variables in the template information. A generation program storage means for storing a generation program for generating a source code on the basis of the component specification information and the template information corresponding to the contents of the component specification information, the component specification information, the template information, and Source code is generated based on the generation program, and at least one of the source code template information, the part specification information, and the generation program is corrected according to the input operation. After the correction, the source code template information, the part specification information, and the generation are generated. Source code based on Wherein the regenerating.

本発明によれば、ユーザの意向に応じた画面情報のソースコードを容易に作成することができる。   ADVANTAGE OF THE INVENTION According to this invention, the source code of the screen information according to a user's intention can be created easily.

以下図面により本発明の実施形態について説明する。
(第1の実施形態)
まず、本発明の第1の実施形態について説明する。
図1は、本発明の実施形態における情報処理装置の機能構成の一例を示すブロック図である。
図1に示すように、クライアント装置はソフトウェア部品のソースコード生成機能の構成要素としてGUI(Graphical User Interface)部1、画面定義ファイル読込解析部2、ソースコード出力部3を備える。
Embodiments of the present invention will be described below with reference to the drawings.
(First embodiment)
First, a first embodiment of the present invention will be described.
FIG. 1 is a block diagram illustrating an example of a functional configuration of an information processing apparatus according to an embodiment of the present invention.
As shown in FIG. 1, the client device includes a GUI (Graphical User Interface) unit 1, a screen definition file reading analysis unit 2, and a source code output unit 3 as components of a source code generation function for software components.

GUI部1は、ソースコードの生成を行なうための画面インタフェースを提供する。ここではソースコードの言語はJava(登録商標)である。
画面定義ファイル読込解析部2は、画面定義ファイル4を読み込んで設定パラメータの解析を行ない、生成対象ファイルの一覧を作成する。
The GUI unit 1 provides a screen interface for generating source code. Here, the language of the source code is Java (registered trademark).
The screen definition file reading analysis unit 2 reads the screen definition file 4 and analyzes the setting parameters to create a list of files to be generated.

ソースコード出力部3は画面定義ファイル読込解析部2により作成された出力ファイル情報をもとにソースコードテンプレート5の読み込みを行い、画面定義ファイル4の設定パラメータをソースコードテンプレート5内の変数にマージしてソースコードの出力を行なう。   The source code output unit 3 reads the source code template 5 based on the output file information created by the screen definition file reading analysis unit 2, and merges the setting parameters of the screen definition file 4 with the variables in the source code template 5. And output the source code.

画面定義ファイル4は、画面レイアウトや画面のフィールド、ボタン等へのイベント設定などを定義するためのパラメータ情報である。画面定義ファイル4やソースコードテンプレート5の内容はGUI部1への入力操作にしたがって所望の内容にカスタマイズすることができる。例として、画面定義ファイル4の内容をカスタマイズした場合に、当該画面定義ファイル4に対応するソースコードテンプレート5の内容を前述した画面定義ファイル4の変更内容に沿ってカスタマイズすることができる。   The screen definition file 4 is parameter information for defining a screen layout, screen fields, event settings for buttons, and the like. The contents of the screen definition file 4 and the source code template 5 can be customized to desired contents in accordance with an input operation to the GUI unit 1. For example, when the contents of the screen definition file 4 are customized, the contents of the source code template 5 corresponding to the screen definition file 4 can be customized according to the change contents of the screen definition file 4 described above.

画面定義ファイル4の仕組みを説明する。一つの画面定義ファイル4は一つの画面に対応する。一つの画面はヘッダ部や一覧部などのいくつかのブロックに分割される。画面定義ファイル4中の一つのシートには一つのブロックの定義がなされる。   The mechanism of the screen definition file 4 will be described. One screen definition file 4 corresponds to one screen. One screen is divided into several blocks such as a header part and a list part. One sheet is defined in one sheet in the screen definition file 4.

また、一つの画面定義ファイル4には画面全体構成を定義するシートが一つ存在する。当該シートでブロックの配置や親子関係などが定義される。つまり、画面定義ファイル4は全体構成シートと一つ以上の定義シートで構成される。   One screen definition file 4 has one sheet for defining the entire screen configuration. The arrangement of blocks and parent-child relationships are defined on the sheet. That is, the screen definition file 4 includes an entire configuration sheet and one or more definition sheets.

ソースコードテンプレート5は、ソースコードの雛形となるテンプレートファイルである。画面定義ファイル4の設定パラメータがソースコードテンプレート5に埋め込まれることでソースコードが生成される。   The source code template 5 is a template file serving as a template of source code. The source code is generated by embedding the setting parameters of the screen definition file 4 in the source code template 5.

次に、図1に示した各種構成の詳細について説明する。GUI部1は、画面定義ファイル4の選択、読込、生成対象ファイルの表示およびソースコード生成の実行を行なうためのユーザインタフェースである。   Next, details of various configurations shown in FIG. 1 will be described. The GUI unit 1 is a user interface for selecting and reading the screen definition file 4, displaying a generation target file, and executing source code generation.

画面定義ファイル読込解析部2は、読込部21、解析部22、ソースコード生成ロジック23、画面定義ファイルオブジェクト24および読込ライブラリ25を備える。
画面定義ファイル読込解析部2の読込部21は、ソースコード生成ロジック23に対して画面定義ファイル4の読込制御を行なう。解析部22は、ソースコード生成ロジック23に対して画面定義ファイル4の解析制御を行なう。
The screen definition file reading analysis unit 2 includes a reading unit 21, an analysis unit 22, a source code generation logic 23, a screen definition file object 24, and a reading library 25.
The reading unit 21 of the screen definition file reading analysis unit 2 controls reading of the screen definition file 4 with respect to the source code generation logic 23. The analysis unit 22 performs analysis control of the screen definition file 4 with respect to the source code generation logic 23.

ソースコード生成ロジック23は、画面定義ファイル4の読込処理やデータチェックや値の計算などの主要な処理を司るプログラムである。
ソースコード生成ロジック23のプログラムは画面定義ファイル4の仕様にあわせて作られたプログラムである。画面定義ファイル4の内容をカスタマイズした場合には、当該画面定義ファイル4に対応するソースコード生成ロジック23の内容をGUI部1への入力操作にしたがって前述した画面定義ファイル4の変更内容に沿った内容にカスタマイズすることができる。
The source code generation logic 23 is a program that controls main processing such as reading processing of the screen definition file 4, data check, and value calculation.
The program of the source code generation logic 23 is a program created according to the specification of the screen definition file 4. When the contents of the screen definition file 4 are customized, the contents of the source code generation logic 23 corresponding to the screen definition file 4 are in accordance with the change contents of the screen definition file 4 described above according to the input operation to the GUI unit 1. Can be customized to the content.

画面定義ファイル読込解析部2の読込部21,解析部22とソースコード生成ロジック23との間には呼出インタフェースが設けられており、画面定義ファイル読込解析部2の読込部21,解析部22は必要時に当該インタフェースを介してソースコード生成ロジック23の処理の呼出を行なう。   A call interface is provided between the reading unit 21 and analysis unit 22 of the screen definition file reading analysis unit 2 and the source code generation logic 23. The reading unit 21 and analysis unit 22 of the screen definition file reading analysis unit 2 are When necessary, the processing of the source code generation logic 23 is called through the interface.

つまり、ソースコード生成ロジック23は規定されたインタフェースを用いて処理を実装すれば中身の処理を別なものに差し替えることが可能であるのでソースコード生成の仕組みのカスタマイズが可能である。   That is, the source code generation logic 23 can customize the source code generation mechanism because the content processing can be replaced with another one if the processing is implemented using a prescribed interface.

また、画面定義ファイル読込解析部2の画面定義ファイルオブジェクト24と画面定義ファイル4との間のインタフェースも別に設けられ、当該オブジェクトが必要に応じてインタフェースに従って画面定義ファイル4の情報を実装する仕組みとなっている。   In addition, an interface between the screen definition file object 24 of the screen definition file reading analysis unit 2 and the screen definition file 4 is provided separately, and the object implements the information of the screen definition file 4 according to the interface as necessary. It has become.

画面定義ファイルオブジェクト24は、画面定義ファイル4の設定パラメータを格納するためのデータオブジェクトであり、当該オブジェクトに対応する画面定義ファイル4をカスタマイズする場合に、GUI部1への入力操作を行なうことで前述した画面定義ファイル4の変更内容に沿った内容にカスタマイズできる。
一つの画面定義ファイル4に対して一つのソースコード生成ロジック23と一つの画面定義ファイルオブジェクト24は対応関係にある。
The screen definition file object 24 is a data object for storing the setting parameters of the screen definition file 4. When the screen definition file 4 corresponding to the object is customized, an input operation to the GUI unit 1 is performed. The contents can be customized according to the change contents of the screen definition file 4 described above.
One source code generation logic 23 and one screen definition file object 24 are associated with one screen definition file 4.

読込ライブラリ25は、ソースコード生成ロジック23から使用されるシートを読み込むための汎用的なライブラリである。   The reading library 25 is a general-purpose library for reading a sheet used from the source code generation logic 23.

ソースコード出力部3は読込部31、出力部32およびテンプレートライブラリ33を備える。
ソースコード出力部3の読込部31は、テンプレートライブラリ33に対してソースコードテンプレートの読込制御を行なう。
出力部32は、テンプレートライブラリ33に対してソースコードの出力制御を行なう。テンプレートライブラリ33はテンプレート機能の汎用ライブラリである。
The source code output unit 3 includes a reading unit 31, an output unit 32, and a template library 33.
The reading unit 31 of the source code output unit 3 controls reading of the source code template with respect to the template library 33.
The output unit 32 controls the output of source code for the template library 33. The template library 33 is a general-purpose library for template functions.

図2は、本発明の実施形態における情報処理装置のハードウェア構成の一例を示すブロック図である。
図2に示したハードウェア構成は、図1に示した情報処理装置の各部の機能を具現化する構成である。情報処理装置10のハードウェア構成として、前述したGUI部1、不揮発性メモリである記憶装置42と、当該記憶装置42内のプログラムに従って当該装置の各部を制御するCPU41と、処理結果等を表示するディスプレイ装置といった表示部45と、通信インタフェース43と、ユーザが入力操作のために用いる入力デバイス44とを備え、それぞれがバス46により接続される。情報処理装置10は、これらの構成を備えたコンピュータに適用することができる。
FIG. 2 is a block diagram illustrating an example of a hardware configuration of the information processing apparatus according to the embodiment of the present invention.
The hardware configuration illustrated in FIG. 2 is a configuration that embodies the functions of the respective units of the information processing apparatus illustrated in FIG. 1. As the hardware configuration of the information processing apparatus 10, the above-described GUI unit 1, the storage device 42 that is a nonvolatile memory, the CPU 41 that controls each unit of the device according to the program in the storage device 42, and the processing results are displayed. A display unit 45 such as a display device, a communication interface 43, and an input device 44 used for an input operation by a user are provided, and each is connected by a bus 46. The information processing apparatus 10 can be applied to a computer having these configurations.

記憶装置42は、画面定義ファイル読込解析部2の読込部21、解析部22、ソースコード生成ロジック23、画面定義ファイルオブジェクト24、読込ライブラリ25に相当するプログラム、ソースコード出力部3の読込部31、出力部32およびテンプレートライブラリ33に相当するプログラムに加え、画面定義ファイル4およびソースコードテンプレート5などの種々のデータを記憶する。   The storage device 42 includes a reading unit 21 of the screen definition file reading analysis unit 2, an analysis unit 22, a source code generation logic 23, a screen definition file object 24, a program corresponding to the reading library 25, and a reading unit 31 of the source code output unit 3. In addition to programs corresponding to the output unit 32 and the template library 33, various data such as the screen definition file 4 and the source code template 5 are stored.

図3は、本発明の実施形態における情報処理装置が用いるテンプレート情報の構成例を示す図である。
図3に示したテンプレート情報はテンプレートディレクトリの各階層にテンプレートファイルを格納した情報の表示部45への表示例である。
ここで、テンプレートディレクトリ「rev1.2/master」に格納されるテンプレートファイルはマスタ画面に対応するテンプレートファイルであり、テンプレートディレクトリ「rev1.2/report」に格納されるテンプレートファイルは帳票画面に対応するテンプレートファイルであり、テンプレートディレクトリ「rev2.0/applet」に格納されるテンプレートファイルは標準的な画面に対応するテンプレートファイルである。
FIG. 3 is a diagram illustrating a configuration example of template information used by the information processing apparatus according to the embodiment of the present invention.
The template information shown in FIG. 3 is a display example on the display unit 45 of information in which a template file is stored in each level of the template directory.
Here, the template file stored in the template directory “rev1.2 / master” corresponds to the master screen, and the template file stored in the template directory “rev1.2 / report” corresponds to the form screen. A template file stored in the template directory “rev2.0 / applet” is a template file corresponding to a standard screen.

図4は、本発明の実施形態における情報処理装置が有する画面定義ファイルにて定義される画面全体定義シートの一例を示す図である。
図4では、画面全体定義シートの表示部45への表示例を示す。画面定義ファイル中の画面全体定義シートでは、画面全体の画面情報の業務部品名の設定値、バージョンの設定値、部品種別の設定値、画面名称の設定値、初期化時の業務ロジック呼出の設定値および検索の基準日パネルの設定値が定義される。
また、画面全体定義シートには、画面全体のパネルレイアウトのパネル区分、シート名、クラス名の接頭辞、パネル変数名、パネルの画面上でのサイズが定義される。
FIG. 4 is a diagram illustrating an example of the entire screen definition sheet defined by the screen definition file included in the information processing apparatus according to the embodiment of the present invention.
FIG. 4 shows a display example of the entire screen definition sheet on the display unit 45. In the entire screen definition sheet in the screen definition file, the setting value of business part name, version setting value, part type setting value, screen name setting value of the screen information of the entire screen, setting of business logic call at initialization Values and settings for the reference date panel for search are defined.
In the entire screen definition sheet, the panel classification of the panel layout of the entire screen, the sheet name, the class name prefix, the panel variable name, and the size of the panel on the screen are defined.

図5は、本発明の実施形態における情報処理装置が有する画面定義ファイルにて定義されるデータベース情報の一例を示す図である。
図5では画面定義ファイル中のデータベース情報の表示部45への表示例を示す。画面定義ファイル中のデータベース情報では、画面中の部品種別である標準画面、帳票画面およびマスタ保守画面のテンプレートディレクトリが定義される。また、当該データベース情報ではテンプレート一覧のテンプレートディレクトリ、パネル区分、テンプレートファイル名およびインタフェース情報が定義される。
FIG. 5 is a diagram illustrating an example of database information defined by a screen definition file included in the information processing apparatus according to the embodiment of the present invention.
FIG. 5 shows a display example of the database information in the screen definition file on the display unit 45. In the database information in the screen definition file, template directories for the standard screen, form screen, and master maintenance screen, which are the component types in the screen, are defined. In the database information, a template directory, a panel classification, a template file name, and interface information in the template list are defined.

図6は、本発明の実施形態における情報処理装置が用いる画面定義ファイル、画面定義ファイルオブジェクト、シートおよびシートオブジェクトとの関係を示す図である。
図6に示すように、画面定義ファイル4には複数のシートが存在する。また、画面定義ファイルオブジェクト24には、シートに対応するシートオブジェクトが登録される。
FIG. 6 is a diagram illustrating a relationship between a screen definition file, a screen definition file object, a sheet, and a sheet object used by the information processing apparatus according to the embodiment of the present invention.
As shown in FIG. 6, the screen definition file 4 has a plurality of sheets. In the screen definition file object 24, a sheet object corresponding to the sheet is registered.

図7は、本発明の実施形態における情報処理装置が用いる画面定義ファイル中のシート、シートオブジェクト、リストおよびリストオブジェクトとの関係を示す図である。
図7に示すように、画面定義ファイル中のシートには複数のいくつかのリストがあり、シートオブジェクトには当該オブジェクトに対応するリストオブジェクトが登録される。
FIG. 7 is a diagram illustrating a relationship between sheets, sheet objects, lists, and list objects in a screen definition file used by the information processing apparatus according to the embodiment of the present invention.
As shown in FIG. 7, the sheet in the screen definition file has a plurality of several lists, and a list object corresponding to the object is registered in the sheet object.

図8は、本発明の実施形態における情報処理装置が用いる画面定義ファイル中のリスト、リストオブジェクト、カラムおよびカラムオブジェクトとの関係を示す図である。
図8に示すように、画面定義ファイル中のリストには複数のカラムである列があり、リストオブジェクトにはリスト中の列に対応するカラムオブジェクトが登録される。
FIG. 8 is a diagram illustrating a relationship between a list, a list object, a column, and a column object in the screen definition file used by the information processing apparatus according to the embodiment of the present invention.
As shown in FIG. 8, the list in the screen definition file includes a plurality of columns, and column objects corresponding to the columns in the list are registered in the list object.

図9は、本発明の実施形態における情報処理装置が用いる各種オブジェクトのデータ属性の一例を表形式で示す図である。
図9を参照して各オブジェクトのデータ属性について説明する。画面定義ファイルオブジェクト24のシート数は画面定義ファイルオブジェクト24が保持するシートの数であり、画面定義ファイルオブジェクト24のシート配列は、シート情報をシートオブジェクトに格納して配列で保持するための情報である。
FIG. 9 is a diagram showing an example of data attributes of various objects used by the information processing apparatus according to the embodiment of the present invention in a table format.
The data attributes of each object will be described with reference to FIG. The number of sheets of the screen definition file object 24 is the number of sheets held by the screen definition file object 24. The sheet arrangement of the screen definition file object 24 is information for storing sheet information in the sheet object and holding it in the arrangement. is there.

シートオブジェクトのシート見出しはシート名に対応するシート見出しであり、シートオブジェクトのリスト数はシートオブジェクトが保持するリストの数であり、シートオブジェクトのリスト配列は、一覧設定項目をリストオブジェクトに格納し配列で保持するための情報である。   The sheet heading of the sheet object is the sheet heading corresponding to the sheet name, the list number of the sheet object is the number of lists held by the sheet object, and the list array of the sheet object is an array in which list setting items are stored in the list object It is information to hold in.

また、リストオブジェクトのリスト見出しはリスト上の見出し文字列であって、シートオブジェクトを定義する場合に設定する情報である。
リストオブジェクトの変数名はリスト項目を格納する変数名であってシートオブジェクトを定義する場合に設定する情報である。
リストオブジェクトの開始列番号はリストの開始列番号であって、シートオブジェクトを定義する場合に設定する情報である。
リストオブジェクトの開始行番号はリストの開始行番号を読込ライブラリ25が読込時に自動で設定する情報である。
The list heading of the list object is a heading character string on the list, and is information set when a sheet object is defined.
The variable name of the list object is a variable name for storing a list item, and is information set when a sheet object is defined.
The starting column number of the list object is the starting column number of the list, and is information set when a sheet object is defined.
The starting line number of the list object is information that the reading library 25 automatically sets the starting line number of the list when reading.

リストオブジェクトの終了行番号はリストの終了行番号を読込ライブラリ25が読込む場合に自動で設定する情報である。
リストオブジェクトのパラメータ配列は、パラメータを配列で保持するための情報であって、1行分のパラメータデータはカラムオブジェクトで定義された変数名をキーとしてHashで保持される。
The end line number of the list object is information that is automatically set when the reading library 25 reads the end line number of the list.
The parameter array of the list object is information for storing the parameters in the array, and the parameter data for one line is stored in Hash using the variable name defined in the column object as a key.

カラムオブジェクトのカラム見出しはリストの各項目の見出し文字列を定義する情報であり、カラムオブジェクトの変数名は列の値をパラメータに格納する際の変数名を定義する情報であり、カラムオブジェクトのカラムタイプは列タイプが数値であるか文字列であるかを定義するための情報である。
カラムオブジェクトの列番号は、列番号を読込ライブラリ25が読込む場合に自動で設定される情報である。
The column heading of the column object is information that defines the heading character string of each item in the list. The variable name of the column object is information that defines the variable name when the column value is stored in the parameter. The type is information for defining whether the column type is a numeric value or a character string.
The column number of the column object is information that is automatically set when the reading library 25 reads the column number.

次に、図1に示した構成の装置の動作について説明する。図10は、本発明の実施形態における情報処理装置によるソースコード生成処理の一例を示す図である。
ユーザはGUI部1への入力操作により画面定義ファイル4のファイル名を選択することで、当該ファイルの読み込みをGUI部1へ指示する(ステップS1)。
Next, the operation of the apparatus having the configuration shown in FIG. 1 will be described. FIG. 10 is a diagram illustrating an example of source code generation processing by the information processing apparatus according to the embodiment of this invention.
The user selects the file name of the screen definition file 4 by an input operation to the GUI unit 1, thereby instructing the GUI unit 1 to read the file (step S1).

GUI部1は、指示にしたがって画面定義ファイル4のファイル名をパラメータとして画面定義ファイル読込解析部2を生成する(ステップS2)。
画面定義ファイル読込解析部2は読み込み指示がなされた画面定義ファイル4に対応するソースコード生成ロジック23を生成する(ステップS3)。
The GUI unit 1 generates the screen definition file reading analysis unit 2 using the file name of the screen definition file 4 as a parameter in accordance with the instruction (step S2).
The screen definition file reading analysis unit 2 generates a source code generation logic 23 corresponding to the screen definition file 4 for which the reading instruction is given (step S3).

ソースコード生成ロジック23は当該ロジックに対応する画面定義ファイル4を読み込むための読込ライブラリ25を生成する(ステップS4)。
また、ソースコード生成ロジック23は当該ロジックに対応する画面定義ファイルオブジェクト24を生成する(ステップS5)。
The source code generation logic 23 generates a reading library 25 for reading the screen definition file 4 corresponding to the logic (step S4).
Further, the source code generation logic 23 generates a screen definition file object 24 corresponding to the logic (step S5).

GUI部1は画面定義ファイル読込解析部2に対して画面定義ファイル4の読込を指示する(ステップS6)。
画面定義ファイル読込解析部2の読込部21はソースコード生成ロジック23に対して画面定義ファイル4の読込を指示する(ステップS7)。
The GUI unit 1 instructs the screen definition file reading analysis unit 2 to read the screen definition file 4 (step S6).
The reading unit 21 of the screen definition file reading analysis unit 2 instructs the source code generation logic 23 to read the screen definition file 4 (step S7).

ソースコード生成ロジック23は当該ロジックに対応する画面定義ファイル4の読込を読込ライブラリ25に指示し(ステップS8)、読込ライブラリ25は、ソースコード生成ロジック23からの指示にしたがって画面定義ファイル4を読み込むと当該ファイルをステップS5の処理で生成済みの画面定義ファイルオブジェクト24に格納する(ステップS9)。   The source code generation logic 23 instructs the reading library 25 to read the screen definition file 4 corresponding to the logic (step S8), and the reading library 25 reads the screen definition file 4 according to the instruction from the source code generation logic 23. And the file are stored in the screen definition file object 24 that has been generated in the process of step S5 (step S9).

画面定義ファイル読込解析部2の解析部22は、ソースコード生成ロジック23にデータ解析を指示する(ステップS10)。ここではソースコード生成ロジック23は格納先の画面定義ファイルオブジェクト24をもとに画面定義ファイル4中の設定パラメータのエラーチェックや値の変換等を行なう。   The analysis unit 22 of the screen definition file reading analysis unit 2 instructs the source code generation logic 23 to perform data analysis (step S10). Here, the source code generation logic 23 performs an error check of a setting parameter in the screen definition file 4 and conversion of values based on the screen definition file object 24 of the storage destination.

そして画面定義ファイル読込解析部2は、画面定義ファイル4から画面定義ファイルオブジェクト24に格納された情報をもとに生成対象ファイル名の一覧を作成し、当該作成した一覧情報をGUI部1へ返す(ステップS11)。
具体的には、図4に示した画面全体定義シートでは部品種別として「標準画面」が定義されており、当該「標準画面」に対応するテンプレートディレクトリは図5に示したデータベース情報上では「rev2.0/applet」であるので、画面定義ファイル読込解析部2は、当該データベース情報上のテンプレート一覧におけるテンプレートディレクトリ「rev2.0/applet」に対応するテンプレートファイル名の一覧を取得し、当該取得したテンプレートファイル名および画面定義ファイル4中の各種シートの情報をもとに生成対象のソースコードのファイル名の一覧を作成する。
図11は、本発明の実施形態における情報処理装置により出力した生成対象ファイル一覧の表示例を示す図である。
Then, the screen definition file reading analysis unit 2 creates a list of generation target file names from the screen definition file 4 based on the information stored in the screen definition file object 24, and returns the created list information to the GUI unit 1. (Step S11).
Specifically, in the entire screen definition sheet shown in FIG. 4, “standard screen” is defined as the component type, and the template directory corresponding to the “standard screen” is “rev2” in the database information shown in FIG. .0 / applet ”, the screen definition file reading analysis unit 2 acquires a list of template file names corresponding to the template directory“ rev2.0 / applet ”in the template list on the database information. A list of file names of source codes to be generated is created based on template file names and information on various sheets in the screen definition file 4.
FIG. 11 is a diagram illustrating a display example of the generation target file list output by the information processing apparatus according to the embodiment of the present invention.

ユーザは、ファイル名の一覧をGUI部1により参照した上で、当該GUI部1への入力操作により生成対象のファイル名を選択してソースコード生成を指示する(ステップS12)。   The user refers to the list of file names by using the GUI unit 1 and then selects a file name to be generated by an input operation to the GUI unit 1 to instruct source code generation (step S12).

GUI部1は読み込み済みの画面定義ファイル4のファイル名をパラメータとしてソースコード出力部3を生成する(ステップS13)。
GUI部1はソースコード出力部3に対してソースコード生成を指示する(ステップS14)。
The GUI unit 1 generates the source code output unit 3 using the file name of the read screen definition file 4 as a parameter (step S13).
The GUI unit 1 instructs the source code output unit 3 to generate source code (step S14).

ソースコード出力部3は、テンプレートライブラリ33に対する初期化を行なう(ステップS15)。
ソースコード出力部3は、生成を指示されたファイルのソースコード生成のためのソースコードテンプレート5をテンプレートライブラリ33により取得する(ステップS16)。
The source code output unit 3 initializes the template library 33 (step S15).
The source code output unit 3 acquires the source code template 5 for generating the source code of the file instructed to be generated from the template library 33 (step S16).

ソースコード出力部3は、テンプレートライブラリ33に対してソースコードの生成を指示する(ステップS17)。
ソースコード出力部3は、ソースコードの生成がなされるとGUI部1に対してソースコード生成結果を返す(ステップS18)。
The source code output unit 3 instructs the template library 33 to generate source code (step S17).
When the source code is generated, the source code output unit 3 returns a source code generation result to the GUI unit 1 (step S18).

以上がソースコード生成の手順である。前述したように本実施形態ではソースコード生成のための画面定義ファイル4、当該画面定義ファイル4に対応するソースコード生成ロジック23および当該画面定義ファイル4中の設定パラメータを格納するための画面定義ファイルオブジェクト24およびソースコードテンプレート5をそれぞれカスタマイズすることができる。   The above is the source code generation procedure. As described above, in this embodiment, the screen definition file 4 for generating the source code, the source code generation logic 23 corresponding to the screen definition file 4 and the screen definition file for storing the setting parameters in the screen definition file 4 are used. Each of the object 24 and the source code template 5 can be customized.

カスタマイズがなされた後は、ユーザは改めてGUI部1への入力操作により画面定義ファイル4のファイル名を選択することで、当該ファイルの読み込みをGUI部1へ指示すれば、前述したステップS2以降の処理に従ってソースコードの再生成がなされることになる。   After the customization, the user again selects the file name of the screen definition file 4 by an input operation to the GUI unit 1, and instructs the GUI unit 1 to read the file. The source code is regenerated according to the processing.

以上のように、本発明の実施形態における情報処理装置では、画面設計書である画面定義ファイル4により出力画面のソフトウェア部品のソースコードを自動的に生成することでソースコードの生産性の向上を図ることができる。さらに、ソースコード生成のためのソースコードテンプレート5、画面定義ファイル4、画面定義ファイルオブジェクト24およびソースコード生成ロジック23を自由にカスタマイズした上でソースコードの生成を行なうことができるので、ソースコードの生成範囲を拡大してより高い生産性の向上を図ることができる。   As described above, in the information processing apparatus according to the embodiment of the present invention, the source code of the output screen software component is automatically generated by the screen definition file 4 which is the screen design document, thereby improving the productivity of the source code. Can be planned. Furthermore, the source code can be generated after the source code template 5, the screen definition file 4, the screen definition file object 24, and the source code generation logic 23 for generating the source code can be freely customized. The production range can be expanded and higher productivity can be improved.

また、前述したようにソースコードを自動的に生成することによってソースコードの均一化が行われるのでソースコードの品質の向上を図ることができる。また、画面レイアウトの変更作業については、画面設計書である画面定義ファイル4を修正して再度該当部分のソースコードのみを生成すればよく、設計書とソースコードの同期をとる仕組みであるため設計書のメンテナンスがなされた上でソースコードが再生成されるようになるので、ソースコード自体を修正する場合と比較して保守性の向上を図ることができる。   Moreover, since the source code is made uniform by automatically generating the source code as described above, the quality of the source code can be improved. For screen layout change work, it is only necessary to modify the screen definition file 4 that is the screen design document and generate only the source code of the relevant part again, and the design document and source code are synchronized. Since the source code is regenerated after the document is maintained, maintainability can be improved as compared with the case where the source code itself is modified.

なお、前記実施の形態は、プログラム言語がJavaに適用した場合について説明したものであるが、これに限らずソースコードをテキストファイルで出力できる開発言語であれば他の言語にも本発明を適用することが可能である。   The above embodiment describes the case where the programming language is applied to Java. However, the present invention is not limited to this, and the present invention can be applied to other languages as long as it is a development language that can output the source code as a text file. Is possible.

なお、この発明は前記実施形態そのままに限定されるものではなく実施段階ではその要旨を逸脱しない範囲で構成要素を変形して具体化できる。また、前記実施形態に開示されている複数の構成要素の適宜な組み合わせにより種々の発明を形成できる。例えば、実施形態に示される全構成要素から幾つかの構成要素を省略してもよい。更に、異なる実施形態に亘る構成要素を適宜組み合せてもよい。   The present invention is not limited to the above-described embodiment as it is, and can be embodied by modifying the constituent elements without departing from the scope of the invention in the implementation stage. Various inventions can be formed by appropriately combining a plurality of constituent elements disclosed in the embodiment. For example, some components may be omitted from all the components shown in the embodiment. Furthermore, you may combine suitably the component covering different embodiment.

本発明の実施形態における情報処理装置の機能構成の一例を示すブロック図。The block diagram which shows an example of a function structure of the information processing apparatus in embodiment of this invention. 本発明の実施形態における情報処理装置のハードウェア構成の一例を示すブロック図。The block diagram which shows an example of the hardware constitutions of the information processing apparatus in embodiment of this invention. 本発明の実施形態における情報処理装置が用いるテンプレート情報の構成例を示す図。The figure which shows the structural example of the template information which the information processing apparatus in embodiment of this invention uses. 本発明の実施形態における情報処理装置が有する画面定義ファイルにて定義される画面全体定義シートの一例を示す図。The figure which shows an example of the whole screen definition sheet defined in the screen definition file which the information processing apparatus in embodiment of this invention has. 本発明の実施形態における情報処理装置が有する画面定義ファイルにて定義されるデータベース情報の一例を示す図。The figure which shows an example of the database information defined in the screen definition file which the information processing apparatus in embodiment of this invention has. 本発明の実施形態における情報処理装置が用いる画面定義ファイル、画面定義ファイルオブジェクト、シートおよびシートオブジェクトとの関係を示す図。The figure which shows the relationship between the screen definition file, screen definition file object, sheet | seat, and sheet object which the information processing apparatus in embodiment of this invention uses. 本発明の実施形態における情報処理装置が用いる画面定義ファイル中のシート、シートオブジェクト、リストおよびリストオブジェクトとの関係を示す図。The figure which shows the relationship with the sheet | seat in the screen definition file which the information processing apparatus in embodiment of this invention uses, a sheet object, a list | wrist, and a list object. 本発明の実施形態における情報処理装置が用いる画面定義ファイル中のリスト、リストオブジェクト、カラムおよびカラムオブジェクトとの関係を示す図。The figure which shows the relationship with the list | wrist, list object, column, and column object in the screen definition file which the information processing apparatus in embodiment of this invention uses. 本発明の実施形態における情報処理装置が用いる各種オブジェクトのデータ属性の一例を表形式で示す図。The figure which shows an example of the data attribute of the various objects which the information processing apparatus in embodiment of this invention uses in a table format. 本発明の実施形態における情報処理装置によるソースコード生成処理の一例を示す図。The figure which shows an example of the source code production | generation process by the information processing apparatus in embodiment of this invention. 本発明の実施形態における情報処理装置により出力した生成対象ファイル一覧の表示例を示す図。The figure which shows the example of a display of the production | generation object file list output by the information processing apparatus in embodiment of this invention.

符号の説明Explanation of symbols

1…GUI部、2…画面定義ファイル読込解析部、3…ソースコード出力部、4…画面定義ファイル、5…ソースコードテンプレート、10…ソフトウェア部品生成装置、21,31…読込部、22,32…解析部、23…ソースコード生成ロジック、24…画面定義ファイルオブジェクト、25…読込ライブラリ、33…テンプレートライブラリ、41…CPU、42…記憶装置、43…通信インタフェース(I/F)、44…入力デバイス、45…表示部、46…バス。   DESCRIPTION OF SYMBOLS 1 ... GUI part, 2 ... Screen definition file reading analysis part, 3 ... Source code output part, 4 ... Screen definition file, 5 ... Source code template, 10 ... Software component production | generation apparatus, 21, 31 ... Reading part, 22, 32 ... Analysis unit, 23 ... Source code generation logic, 24 ... Screen definition file object, 25 ... Read library, 33 ... Template library, 41 ... CPU, 42 ... Storage device, 43 ... Communication interface (I / F), 44 ... Input Device, 45 ... display unit, 46 ... bus.

Claims (4)

出力用情報のソフトウェア部品のソースコードテンプレート情報を記憶するテンプレート記憶手段と、
前記テンプレート情報中の変数に対応するソフトウェア部品仕様情報を記憶する仕様情報記憶手段と、
前記部品仕様情報の内容に対応し、当該部品仕様情報および前記テンプレート情報をもとに前記ソースコードを生成するための生成用プログラムを記憶する生成用プログラム記憶手段と、
前記部品仕様情報、前記テンプレート情報および前記生成用プログラムをもとに前記ソースコードを生成する生成手段と、
前記テンプレート記憶手段に記憶されるソースコードテンプレート情報、前記仕様情報記憶手段に記憶される部品仕様情報、および前記生成用プログラム記憶手段に記憶される生成用プログラムの少なくとも1種類を入力操作にしたがって修正する修正手段と、
前記修正手段による修正後、前記テンプレート記憶手段に記憶されるソースコードテンプレート情報、前記仕様情報記憶手段に記憶される部品仕様情報、および前記生成用プログラム記憶手段に記憶される生成用プログラムをもとに前記ソースコードを再生成する再生成手段と
を備えたことを特徴とする情報処理装置。
Template storage means for storing source code template information of software parts for output information;
Specification information storage means for storing software component specification information corresponding to the variables in the template information;
A generation program storage means for storing a generation program for generating the source code based on the component specification information and the template information, corresponding to the contents of the component specification information;
Generating means for generating the source code based on the component specification information, the template information, and the generating program;
Correct at least one of source code template information stored in the template storage means, component specification information stored in the specification information storage means, and a generation program stored in the generation program storage means in accordance with an input operation. Correction means to
Based on the source code template information stored in the template storage unit, the part specification information stored in the specification information storage unit, and the generation program stored in the generation program storage unit after correction by the correction unit An information processing apparatus comprising: regenerating means for regenerating the source code.
前記修正手段は、前記仕様情報記憶手段に記憶される部品仕様情報を修正する場合に、当該部品仕様情報に対応するソースコードテンプレート情報および生成用プログラムのうち少なくとも一方の内容を当該部品仕様情報の修正内容に応じた入力操作にしたがって修正する
ことを特徴とする請求項1に記載の情報処理装置。
When the component specification information stored in the specification information storage unit is corrected, the correction unit converts at least one of the source code template information and the generation program corresponding to the component specification information into the component specification information. The information processing apparatus according to claim 1, wherein correction is performed according to an input operation corresponding to the correction content.
前記生成手段によりソースコードを生成するために前記部品仕様情報で定義される情報を格納するためのデータオブジェクトを記憶する手段をさらに備え、
前記修正手段は、前記仕様情報記憶手段に記憶される部品仕様情報を修正する場合に、当該部品仕様情報に対応するデータオブジェクトの内容を当該部品仕様情報の修正内容に応じた入力操作にしたがって修正する
ことを特徴とする請求項1に記載の情報処理装置。
Means for storing a data object for storing information defined in the component specification information for generating source code by the generating means;
When the component specification information stored in the specification information storage unit is corrected, the correction unit corrects the content of the data object corresponding to the component specification information according to an input operation corresponding to the correction content of the component specification information. The information processing apparatus according to claim 1, wherein:
出力用情報のソフトウェア部品のソースコードテンプレート情報を記憶するテンプレート記憶手段と、前記テンプレート情報中の変数に対応するソフトウェア部品仕様情報を記憶する仕様情報記憶手段と、前記部品仕様情報の内容に対応し、当該部品仕様情報および前記テンプレート情報をもとに前記ソースコードを生成するための生成用プログラムを記憶する生成用プログラム記憶手段とを備えたコンピュータを、
前記部品仕様情報、前記テンプレート情報および前記生成用プログラムをもとに前記ソースコードを生成する生成手段、
前記テンプレート記憶手段に記憶されるソースコードテンプレート情報、前記仕様情報記憶手段に記憶される部品仕様情報、および前記生成用プログラム記憶手段に記憶される生成用プログラムの少なくとも1種類を入力操作にしたがって修正する修正手段、および
前記修正手段による修正後、前記テンプレート記憶手段に記憶されるソースコードテンプレート情報、前記仕様情報記憶手段に記憶される部品仕様情報、および前記生成用プログラム記憶手段に記憶される生成用プログラムをもとに前記ソースコードを再生成する再生成手段
として機能させるようにした情報処理プログラム。
Corresponding to the contents of the part specification information, template storage means for storing source code template information of software parts of output information, specification information storage means for storing software part specification information corresponding to variables in the template information, and A generation program storage means for storing a generation program for generating the source code based on the component specification information and the template information,
Generating means for generating the source code based on the component specification information, the template information and the generating program;
Correct at least one of source code template information stored in the template storage means, component specification information stored in the specification information storage means, and a generation program stored in the generation program storage means in accordance with an input operation. Correction means for performing, source code template information stored in the template storage means after correction by the correction means, component specification information stored in the specification information storage means, and generation stored in the generation program storage means An information processing program that functions as a regenerating unit that regenerates the source code based on a computer program.
JP2008050719A 2008-02-29 2008-02-29 Information processor and information processing program Pending JP2009211143A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2008050719A JP2009211143A (en) 2008-02-29 2008-02-29 Information processor and information processing program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2008050719A JP2009211143A (en) 2008-02-29 2008-02-29 Information processor and information processing program

Publications (1)

Publication Number Publication Date
JP2009211143A true JP2009211143A (en) 2009-09-17

Family

ID=41184274

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2008050719A Pending JP2009211143A (en) 2008-02-29 2008-02-29 Information processor and information processing program

Country Status (1)

Country Link
JP (1) JP2009211143A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2013050868A (en) * 2011-08-31 2013-03-14 Mitsubishi Electric Corp Information processing apparatus, information processing method and program
JP2017173996A (en) * 2016-03-22 2017-09-28 コニカミノルタ株式会社 Image forming apparatus, design changing method, and design changing program
JP2021026488A (en) * 2019-08-05 2021-02-22 三菱電機株式会社 Screen development support device, screen development support method, and screen development support program

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002157118A (en) * 2000-09-06 2002-05-31 Ns Solutions Corp Program generation assisting device, program generating method, storage medium, and program
JP2005266931A (en) * 2004-03-16 2005-09-29 Mitsubishi Electric Corp Program generation device
JP2006268292A (en) * 2005-03-23 2006-10-05 Nec Corp Template compiling device and template compiling program
JP2007079906A (en) * 2005-09-14 2007-03-29 Hitachi Software Eng Co Ltd Source code generator

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002157118A (en) * 2000-09-06 2002-05-31 Ns Solutions Corp Program generation assisting device, program generating method, storage medium, and program
JP2005266931A (en) * 2004-03-16 2005-09-29 Mitsubishi Electric Corp Program generation device
JP2006268292A (en) * 2005-03-23 2006-10-05 Nec Corp Template compiling device and template compiling program
JP2007079906A (en) * 2005-09-14 2007-03-29 Hitachi Software Eng Co Ltd Source code generator

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2013050868A (en) * 2011-08-31 2013-03-14 Mitsubishi Electric Corp Information processing apparatus, information processing method and program
JP2017173996A (en) * 2016-03-22 2017-09-28 コニカミノルタ株式会社 Image forming apparatus, design changing method, and design changing program
JP2021026488A (en) * 2019-08-05 2021-02-22 三菱電機株式会社 Screen development support device, screen development support method, and screen development support program

Similar Documents

Publication Publication Date Title
JP2009009462A (en) Sequence program editing apparatus
JP6340994B2 (en) Printer, printing system, and printing control method
Gómez et al. An approach to the co-creation of models and metamodels in Enterprise Architecture Projects.
JP5747698B2 (en) Requirements management support device
JP2009211143A (en) Information processor and information processing program
JP2010108055A (en) Program for program generation and program generation device
JP2008242964A (en) User interface design program and user interface design method
JP2006163855A (en) Web application development support device, and development support method
JP5275087B2 (en) Program generating apparatus and block diagram generating apparatus
JP2008181311A (en) Refactoring support device and program
JP2009009473A (en) Design device and design method for gui and program
JP6097231B2 (en) Program generating apparatus and method
JP2007287025A (en) Method and apparatus for creating screen transition program
JP2009075788A (en) Software development support device
JP2005032047A (en) Device, method, program and storage medium for automatically generating file
JP5420695B2 (en) Structured data file creation device for software development
WO2017022041A1 (en) Tree structure data editing device, tree structure data editing method, and program
JP2009176178A (en) Global variable definition system of plc
JP2010140166A (en) Data pattern/test data generation/storage method and system
JP2009151613A (en) Program source conversion apparatus
JP5262978B2 (en) User interface screen display method and terminal used for the method
JP5023160B2 (en) Screen transition design support program and screen transition design support device
JP2018156214A (en) SFC program creation support apparatus, SFC program creation support program, and SFC program creation method
JP5962116B2 (en) Screen control system, screen control program, screen creation support program, and screen control method
JP2017068371A (en) Information processing apparatus, screen generation method, and screen generation program

Legal Events

Date Code Title Description
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20110221

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20110607

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20111018