com.monad.homerun.modelmgt
Interface ModelInformer


public interface ModelInformer

ModelInformer is any non-object source capable of informing object models.


Method Summary
 boolean addModel(java.lang.String type, java.lang.String domain, java.lang.String objectName, Model model)
          Adds an object's (runtime) model to be informed.
 Emitter canInform(Model model)
          Returns a description of how this informer can inform the passed model.
 java.lang.String getInformerName()
          Returns the name of the informer.
 void removeModel(java.lang.String domain, java.lang.String objectName, java.lang.String modelName)
          Removes the model from the list of those informed.
 

Method Detail

getInformerName

java.lang.String getInformerName()
Returns the name of the informer.

Returns:
name the informer name

addModel

boolean addModel(java.lang.String type,
                 java.lang.String domain,
                 java.lang.String objectName,
                 Model model)
Adds an object's (runtime) model to be informed.

Parameters:
type - the type of informer?
domain - the object domain
objectName - the name of the object
model - the object's model definition
Returns:
success true if model added to informer's list, else false

removeModel

void removeModel(java.lang.String domain,
                 java.lang.String objectName,
                 java.lang.String modelName)
Removes the model from the list of those informed.

Parameters:
domain - the object domain
objectName - the name of the object
modelName - the name of the object's model

canInform

Emitter canInform(Model model)
Returns a description of how this informer can inform the passed model.

Parameters:
model - a model defintion
Returns:
emitter an event emitter, or nmull if informer cannot inform a model of this sort.


Copyright © 2006-2009 Richard Rodgers. All Rights Reserved.