I�ve tried this on Rose 2000e Professional Java:
Java Project Specification:
- Class Path
Directories: c:\temp
component: MyApp
- Language: Java (Standard Specification)
- Realizes: MyApp (Standard Specification)
- imports: java.util.* (Component Specification)
class: MyApp (assigned to component MyApp)
attributes:
$ aStatic : int = 0 (the $ is shown in the class diagram; "static" checked on Detail-Tab of the Attribute)
nonStatic : int = 0
operations:
aStaticOp() : int (no $ is shown; "static=true" on Java-Tab of the Operation)
nonStaticOp() : int
Generated Code:
//Source file: C:\temp\MyApp.java
import java.util.*;
/**
*/
public class MyApp {
private static int aStatic = 0;
private int nonStatic = 0;
public MyApp() {}
/**
* @roseuid 3A405CC901E2
*/
public static int aStaticOp() {}
/**
* @roseuid 3A405CD10157
*/
public int nonStaticOp() {}
}
In my opinion this is correct.
Mit freundlichen Gr��en
Jan Mat�rne
RZF NRW
Sachgebiet 314-P Software-Entwicklungs-Methoden
Fiscus AFG NW 42 SoftwareEntwicklungsUmgebung
Internet: [EMAIL PROTECTED]
-----Urspr�ngliche Nachricht-----
Von: Xiaobo Chen [SMTP:[EMAIL PROTECTED]]
Gesendet am: Mittwoch, 20. Dezember 2000 01:54
An: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Betreff: Re: AW: (ROSE) static operation ?
For my case, a $ appeared in front of every static
attributes but when I generate java code there's no
static in the code generated.
Also, how to generate "import xxxx" statement in java
source code?
Your help is greatly appreciated!
best regards
xiaobo
