Java Mappings
The table below shows the one-to-one correspondence between:
•UModel elements and Java code elements, when outputting model to code
•Java code elements and UModel model elements, when inputting code into model
Java  | UModel  | ||||||||
|---|---|---|---|---|---|---|---|---|---|
Project  | projectfile  | projectfile  | Component  | ||||||
directory  | directory  | ||||||||
Package  | name  | name  | Package <<namespace>>  | ||||||
Class  | name  | name  | Class  | ||||||
modifiers  | package  | visibility  | package  | ||||||
public  | public  | ||||||||
protected  | protected  | ||||||||
private  | private  | ||||||||
abstract  | abstract  | ||||||||
strictfp  | <<strictfp>>  | ||||||||
final  | <<final>>  | ||||||||
filename  | code file name  | ||||||||
associated projectfile/directory  | ComponentRealization  | ||||||||
extends clause  | Generalization  | ||||||||
implements clause  | InterfaceRealization(s)  | ||||||||
java docs  | Comment(->Documentation)  | ||||||||
Field  | name  | name  | Property  | ||||||
modifiers  | package  | visibility  | package  | ||||||
public  | public  | ||||||||
protected  | protected  | ||||||||
private  | private  | ||||||||
static  | static  | ||||||||
transient  | <<transient>>  | ||||||||
volatile  | <<volatile>>  | ||||||||
final  | <<final>>  | ||||||||
type  | type  | ||||||||
type dimensions  | multiplicity  | ||||||||
default value  | default  | ||||||||
java docs  | Comment(->Documentation)  | ||||||||
Method  | name  | name  | Operation  | ||||||
modifiers  | package  | visibility  | package  | ||||||
public  | public  | ||||||||
protected  | protected  | ||||||||
private  | private  | ||||||||
static  | static  | ||||||||
abstract  | abstract  | ||||||||
final  | <<final>>  | ||||||||
native  | <<native>>  | ||||||||
strictfp  | <<strictfp>>  | ||||||||
synchronized  | <<synchronized>>  | ||||||||
throws clause  | raised exceptions  | ||||||||
java docs  | Comment(->Documentation)  | ||||||||
type  | direction  | return  | Parameter  | ||||||
Parameter  | name  | name  | |||||||
modifier  | final  | <<final>>  | |||||||
...  | varArgList  | ||||||||
type  | type  | ||||||||
type dimensions  | multiplicity  | ||||||||
Type Parameter  | name  | name  | Template Parameter  | ||||||
bound  | constraining classifier  | ||||||||
Constructor  | name  | name  | Operation <<constructor>>  | ||||||
modifiers  | public  | visibility  | public  | ||||||
protected  | protected  | ||||||||
private  | private  | ||||||||
throws clause  | raised exceptions  | ||||||||
java docs  | Comment(->Documentation)  | ||||||||
Parameter  | name  | name  | Parameter  | ||||||
modifier  | final  | <<final>>  | |||||||
...  | varArgList  | ||||||||
type  | type  | ||||||||
type dimensions  | multiplicity  | ||||||||
Type Parameter  | name  | name  | Template Parameter  | ||||||
bound  | constraining classifier  | ||||||||
Type Parameter  | name  | name  | Template Parameter  | ||||||
bound  | constraining classifier  | ||||||||
Interface  | name  | name  | Interface  | ||||||
modifiers  | package  | visibility  | package  | ||||||
public  | public  | ||||||||
protected  | protected  | ||||||||
private  | private  | ||||||||
abstract  | abstract  | ||||||||
strictfp  | <<strictfp>>  | ||||||||
filename  | code file name  | ||||||||
associated projectfile/directory  | ComponentRealization  | ||||||||
extends clause  | Generalization(s)  | ||||||||
java docs  | Comment(->Documentation)  | ||||||||
Field  | name  | name  | Property  | ||||||
modifiers  | public  | visibility  | public  | ||||||
static  | static  | ||||||||
final  | <<final>>  | ||||||||
type  | type  | ||||||||
type dimensions  | multiplicity  | ||||||||
default value  | default  | ||||||||
java docs  | Comment(->Documentation)  | ||||||||
Method  | name  | name  | Operation  | ||||||
modifiers  | public  | visibility  | public  | ||||||
abstract  | abstract  | ||||||||
throws clause  | raised exceptions  | ||||||||
java docs  | Comment(->Documentation)  | ||||||||
type  | direction  | return  | Parameter  | ||||||
Parameter  | name  | name  | |||||||
modifier  | final  | <<final>>  | |||||||
...  | varArgList  | ||||||||
type  | type  | ||||||||
type dimensions  | multiplicity  | ||||||||
Type Parameter  | name  | name  | Template Parameter  | ||||||
bound  | constraining classifier  | ||||||||
Type Parameter  | name  | name  | Template Parameter  | ||||||
bound  | constraining classifier  | ||||||||
Enum  | name  | name  | Enumeration  | ||||||
modifiers  | package  | visibility  | package  | ||||||
public  | public  | ||||||||
protected  | protected  | ||||||||
private  | private  | ||||||||
filename  | code file name  | ||||||||
associated projectfile/directory  | ComponentRealization  | ||||||||
java docs  | Comment(->Documentation)  | ||||||||
Enum Constant  | name  | name  | Enumeration Literal  | ||||||
Field  | name  | name  | Property  | ||||||
modifiers  | package  | visibility  | package  | ||||||
public  | public  | ||||||||
protected  | protected  | ||||||||
private  | private  | ||||||||
static  | static  | ||||||||
transient  | <<transient>>  | ||||||||
volatile  | <<volatile>>  | ||||||||
final  | <<final>>  | ||||||||
type  | type  | ||||||||
type dimensions  | multiplicity  | ||||||||
default value  | default  | ||||||||
java docs  | Comment(->Documentation)  | ||||||||
Method  | name  | name  | Operation  | ||||||
modifiers  | package  | visibility  | package  | ||||||
public  | public  | ||||||||
protected  | protected  | ||||||||
private  | private  | ||||||||
static  | static  | ||||||||
abstract  | abstract  | ||||||||
final  | <<final>>  | ||||||||
native  | <<native>>  | ||||||||
strictfp  | <<strictfp>>  | ||||||||
synchronized  | <<synchronized>>  | ||||||||
throws clause  | raised exceptions  | ||||||||
java docs  | Comment(->Documentation)  | ||||||||
type  | direction  | return  | Parameter  | ||||||
Parameter  | name  | name  | |||||||
modifier  | final  | <<final>>  | |||||||
...  | varArgList  | ||||||||
type  | type  | ||||||||
type dimensions  | multiplicity  | ||||||||
Type Parameter  | name  | name  | Template Parameter  | ||||||
bound  | constraining classifier  | ||||||||
Constructor  | name  | name  | Operation <<constructor>>  | ||||||
modifiers  | public  | visibility  | public  | ||||||
protected  | protected  | ||||||||
private  | private  | ||||||||
throws clause  | raised exceptions  | ||||||||
java docs  | Comment(->Documentation)  | ||||||||
Parameter  | name  | name  | Parameter  | ||||||
modifier  | final  | <<final>>  | |||||||
...  | varArgList  | ||||||||
type  | type  | ||||||||
type dimensions  | multiplicity  | ||||||||
Type Parameter  | name  | name  | Template Parameter  | ||||||
bound  | constraining classifier  | ||||||||
Parameterized Type  | Anonymous Bound Element  | ||||||||
Annotation  | <<annotations> modifiers  | ||||||||