Login | Register
My pages Projects Community openCollabNet

24.3.  The Java Profile

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.

Figure 24.2. Hierarchy of the Java profile within ArgoUML

Hierarchy of the Java profile within ArgoUML

24.3.1.  Datatypes

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]Note

void is not strictly speaking a type, but the absence of type. ArgoUML knows about void and allows it as an option where a datatype may be selected.

24.3.2.  Classes

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.

24.3.2.1.  Classes From java.lang

These are the classes within the java.lang package.

  • Boolean

  • Byte

  • Char

  • Double

  • Float

  • Integer

  • Long

  • Object

  • Short

  • String

24.3.2.2.  Classes From java.math

These are the classes within the java.math package.

  • Big Decimal

  • Big Integer

24.3.2.3.  Classes From java.net

These are the classes within the java.net package.

  • URL

24.3.2.4.  Classes From java.util

These are the classes within the java.util package.

  • Date

  • Time

  • Vector

24.3.3.  Interfaces

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