The Java profile contains elements that are not mandated by the UML standard, and should only be used in a development environment that makes use of Java.
The Java profile is
effectively organized as a hierarchy beneath in four packages,
lang
, math
,
net
and util
, themselves
subpackages of java
, which is a subpackage
of the model itself. Figure 24.2, “Hierarchy of
the Java profile
within ArgoUML
”
shows this structure.
These are the built in atomic types. You can change them if you wish. However this is not good practice.
All these can be found in the
java.lang
subpackage of the main model.
These are the standard datatypes. For their definition refer to the Java standard.
boolean
byte
char
double
float
int
long
short
void
![]() | Note |
---|---|
|
These are the common classes, corresponding to classes defined within the standard Java environment. It is up to you if you wish to change them.
These are found in all four subpackages of the
java
subpackage.
For a definition of these classes see the Java language and library definitions.
These are the classes within the
java.lang
package.
Boolean
Byte
Char
Double
Float
Integer
Long
Object
Short
String
These are the classes within the
java.math
package.
Big Decimal
Big Integer
These are some useful interfaces, corresponding to classes defined within the standard Java environment. Interfaces have many of the properties of classes (like all types) and you can change them if you wish.
All these can be found in the
java.util
subpackage of the main model.
These are the interfaces defined within the
java.util
package. For their definition consult the
Java language and library references.
Collection
Iterator
List
Set
SortedSet