Class: ORMAdapter

Defined in: web-src/coffee/gui/diagadapter.coffee
Inherits: DiagAdapter

Overview

DiagAdapter for ORM diagrams.

Instance Method Summary

Inherited Method Summary

Methods inherited from DiagAdapter

#set_paper #add_attribute #add_object_type #add_relationship #add_relationship_aux #add_relationship_attr #add_subsumption #edit_class_name #delete_class #show_class_info #show_gen_info #show_assoc_info #import_jsonstr #import_json #reset_all #diag_to_json #set_unsatisfiable #set_satisfiable #set_inferredSubs #set_inferredCards

Constructor Details

# (void) constructor(diag, paper)

Instance Method Details

# (void) add_object_type(hash_data)

Add a class to the diagram.

Parameters:

  • hash_data ( Hash ) data information for creating the Class. Use name, attribs and methods keys.

See also:

# (void) add_relationship(class_a_id, class_b_id, name = null, mult = null)

Add a simple association from A to B. Then, set the selection state for restoring the interface.

Examples:

Getting a classid

< graph.getCells()[0].id
> "5777cd89-45b6-407e-9994-5d681c0717c1"

Parameters:

  • class_a_id ( string )
  • class_b_id ( string )
  • name ( string ) optional. The association name.
  • mult ( array ) optional. An array of two string with the cardinality from class and to class b.

# (void) add_subsumption(class_parent_id, class_child_id, disjoint = false, covering = false)

TODO: Support various children on parameter class_child_id.

Add a Generalization link and then set the selection state.

Parameters:

  • class_parent_id ( string ) The parent class Id.
  • class_child_id ( string ) The child class Id.

    Quickly fuzzy find classes, mixins, methods, file:

    Control the navigation frame:

    You can focus and blur the search input: