net.dpml.transit.model
Interface LayoutRegistryModel

All Superinterfaces:
Remote

public interface LayoutRegistryModel
extends Remote

A LayoutRegistryModel maintains a collection of layout models.

Version:
1.0.1
Author:
Digital Product Meta Library

Method Summary
 void addLayoutRegistryListener(LayoutRegistryListener listener)
          Add a change listener.
 LayoutModel getLayoutModel(String id)
          Return a layout resolver model matching the supplied id.
 LayoutModel[] getLayoutModels()
          Return the set of location resolver models.
 void removeLayoutRegistryListener(LayoutRegistryListener listener)
          Remove a change listener.
 

Method Detail

getLayoutModels

public LayoutModel[] getLayoutModels()
                              throws RemoteException
Return the set of location resolver models.

Returns:
the model array.
Throws:
RemoteException - if a remote exception occurs

getLayoutModel

public LayoutModel getLayoutModel(String id)
                           throws UnknownKeyException,
                                  RemoteException
Return a layout resolver model matching the supplied id. If the id is unknown an implementation shall return a null value.

Parameters:
id - the layout id
Returns:
the layout model
Throws:
UnknownKeyException - if the key is unknown
RemoteException - if a remote exception occurs

addLayoutRegistryListener

public void addLayoutRegistryListener(LayoutRegistryListener listener)
                               throws RemoteException
Add a change listener.

Parameters:
listener - the registry change listener to add
Throws:
RemoteException - if a remote exception occurs

removeLayoutRegistryListener

public void removeLayoutRegistryListener(LayoutRegistryListener listener)
                                  throws RemoteException
Remove a change listener.

Parameters:
listener - the registry change listener to remove
Throws:
RemoteException - if a remote exception occurs