Overview | Package | Class | Tree | Deprecated | Index | Help
| Copyright © 2000, 2009, Oracle and/or its affiliates. All rights reserved.
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## com.bea.p13n.model
Interface DocumentModel

All Superinterfaces
  Serializable

All Known Implementing Classes:
  CampaignModelDocument, DefaultDocumentModel, PlaceholderModelDocument, RuleModelDocument, RuleSetModelDocument, ScenarioModelDocument

    public interface DocumentModel

extends Serializable

The interface for a document that contains models.

Method Summary
`void` | `addChangeListener(Model.ChangeListener l)` Add a model change listener.
`Model` | `getRootModel()` Get the root model for this document.
`void` | `modelChildAdded(Model parent, Model child)` Callback from a model change event for a child model added.
`void` | `modelChildRemoved(Model parent, Model child)` Callback from a model change event for a child model removed.
`void` | `modelPropertyChanged(Model m, String propName, Object oldVal, Object newVal)` Callback from a model change event for a property change.
`boolean` | `removeChangeListener(Model.ChangeListener l)` Remove a model change listener.

Method Detail

### getRootModel

    Model getRootModel()

  Get the root model for this document.

### addChangeListener

    void addChangeListener(Model.ChangeListener l)

  Add a model change listener.

### removeChangeListener

    boolean removeChangeListener(Model.ChangeListener l)

  Remove a model change listener.

  Returns
    true if the listener was removed, false if not found.

### modelPropertyChanged

    void modelPropertyChanged(Model m,
                              String propName,
                              Object oldVal,
                              Object newVal)

  Callback from a model change event for a property change.

  Parameters
    `m` - the model (contained in this document).
    `propName` - the property name that changed.
    `oldVal` - the old value (null is valid).
    `newVal` - the new value (null is valid).

### modelChildAdded

    void modelChildAdded(Model parent,
                         Model child)

  Callback from a model change event for a child model added.

  Parameters
    `parent` - the parent model.
    `child` - the child model.

### modelChildRemoved

    void modelChildRemoved(Model parent,
                           Model child)

  Callback from a model change event for a child model removed.

  Parameters
    `parent` - the parent model.
    `child` - the child model.

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2000, 2009, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its affiliates.
Other names may be trademarks of their respective owners.