list of dots University of Ottawa logo / Université d'Ottawa

User Manual    [Previous]   [Next]   

Depend clause

The depend clause is used to indicate a dependency to another namespace, class or interface.

See also this example of how to use the depend clause to arrange for Umple to work with external code.


namespace sports.core;

class Equipment
  Integer weight;


class Baseball
  depend sports.core.*;

  public boolean isRequired(Equipment eq)
    return eq.getName().equals("bat");


Load the above code into UmpleOnline



// Depend clause. See user manual page Dependclause
depend- : depend [depend] ;