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.


Copyright © 2011, Oracle. All rights reserved.