Esempio n. 1
0
 function association(Association $association, $namespace)
 {
     $id = $this->association_id($association->id_association);
     $association->with('attribute');
     $end_1 = $this->association_end_id($association->id_association, 1);
     $end_2 = $this->association_end_id($association->id_association, 1);
     $this->open_uml_element('Association', $id, "", $namespace);
     $this->open_uml_simple_element('Association.connection');
     $this->uml_empty_element('AssociationEnd', $end_1, "", null, array('isNavigable' => "false", 'ordering' => "unordered", 'aggregation' => $association->aggregation_from, 'targetScope' => "instance", 'changeability' => "changeable", 'association' => $id, 'type' => $this->class_id($association->class_from)), $association->attribute->access);
     $this->uml_empty_element('AssociationEnd', $end_2, $association->attribute->name, null, array('isNavigable' => "true", 'ordering' => "unordered", 'aggregation' => $association->aggregation_to, 'targetScope' => "instance", 'changeability' => "changeable", 'association' => $id, 'type' => $this->class_id($association->class_to)), "private");
     $this->close_element();
     $this->close_element();
 }