list of dots

User Manual    [Previous]   [Next]   

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.


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