# JUDE API User Guide

## [Sample Applications]

### [ClassDefinitionExporter]

Class information in JUDE Project File would be exported into CSV format.
There are 5 information of the class get exported; Class Full Path name, Attribute, Operation, Definition, SuperClass, and Supplier of the realization.

#### How to compile

Compilation can be done with your system command prompt or Java IDE (Integrated Development Environments) tool. The class path needs to be set to both of JUDE install folder and jude-api.jar that is inside the same folder.
Sample : Compiles using [compile.bat] that is a batch file for Windows command prompt

C:\Program Files\JUDE-XXXXXXXXXX\api\sample\csvexporter>compile

#### How to Run

Running can be done by specifying the JUDE project file name as the first parameter and the csv format file name where is the target to export as the second parameter by using your system command prompt or Java IDE (Integrated Development Environments) tool. The Class Path needs to be set to both of jude-api.jar and jude-community.jar(jude-pro.jar) that are in the install folder.
Also, memory option for Java environment needs to be set up in case the size of your JUDE Project is large.
Sample : Running using [run.bat] that is a batch file for Windows command prompt.

C:\Program Files\JUDE-XXXXXXXXXX\api\sample\csvexporter>run ..\APISample.jude APISample.csv

### [ImportDBToJudeDialog]

JUDE DB Reverse tool can be connected to DB and generate JUDE models. Please refer to JUDE DB Reverse Tool User Guide for details. (Please note that this sample program and document are not available in JUDE/Community.)

### [Referencing and creating JUDE models]

Sample applications are included under "JUDE install folder\api\sample".

1. Reference JUDE Model : APIForReadingModelsSample.java
2. Create JUDE Model : APIForEditingModelsSample.java

- Source code for unit test of Package com.change_vision.jude.api.test.model
  This is a source code of unit test for JUDE API. Please refer to it when you use JUDE API.

Home