uOttawaUniversity of Ottawa - Canadas University
list of dots

Umple User Manual    [Previous]   [Next]   

Loading

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.

Example

namespace sports.core;

class Equipment
{
  name;
  Integer weight;
}

namespace sports.baseball;

class Baseball
{
  depend sports.core.*;

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


      

Load the above code into UmpleOnline

 

Syntax


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