Developing with the SDK > Using and Writing Data Models > Implementing the Behavior of Data Model Objects

The methods that implement the possible behavior of data model objects are supplied as the IlvSDMModel interface. Various supplied data model classes implement different subsets of these methods.

The methods in the interface recognize links as distinct from other objects and allow for parent-child relationships to implement a hierarchical model. Each data model object has a unique identifier (ID), a nonunique tag, and various properties (attributes). For links, the From and To properties store the end points. The monitoring of changes is available through a listener mechanism.

Methods for Navigating Among Nodes and Links

The three following methods navigate the model object tree.

When a model object is a link, the following methods apply:

Methods for Retrieving ID, Tag, and Properties

The following methods give information on a model object:

Methods for Implementing Listeners

The model is dynamic: it can change itself. To keep the graphical display consistent with the model state, there is a listener mechanism that sends events when a modification occurs in the model.

Methods for Editable Models

All the editable methods are meant to be implemented if the model predicate isEditable returns true.

The following methods modify the model hierarchy:

The following model methods change object properties: