uOttawaUniversity of Ottawa - Canadas University
list of dots

Umple User Manual    [Previous]   [Next]   

Loading

Umple Builtin Data Types

The following examples illustrate the data types available for Umple attributes. Except as specified, they will generate primitive datatypes in Java

Example


class Demo 
{
  Integer i;
  Float flt;
  String str;  // the default of no type is specified
  Double dbl;
  Boolean bln;
  Date dte; // In Java. uses the java.sql.Date class
  Time tme; // In Java. uses the java.sql.Time class
}

      

Load the above code into UmpleOnline

 

Another Example


class DemoNonUmpleType
{
  // If you use a non-umple type that is specific to a base
  // programming language, then code will be generated
  // consistent with that type, but generation of code
  // independent of base language is no longer possible
  int demoJavaInt;
}

      

Load the above code into UmpleOnline