com.iplanet.jato
Class ModelTypeMapBase

java.lang.Object
  |
  +--com.iplanet.jato.ModelTypeMapBase

public class ModelTypeMapBase
extends java.lang.Object

A base implementation of ModelTypeMap

Version:
JATO/1.2.2 $Id: ModelTypeMapBase.java,v 1.7 2002/03/16 03:26:28 todd Exp $
See Also:
Model

Constructor Summary
ModelTypeMapBase()
          Default constructor
 
Method Summary
protected static void addModelInterfaceMapping(java.lang.Class modelInterface, java.lang.Class modelImplementation)
          Adds a mapping of model interface to model implementation
 java.lang.Class getModelImplClass(java.lang.Class modelInterface)
          Return the model implementation class that corresponds to the provided model interface or implementation class.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ModelTypeMapBase

public ModelTypeMapBase()
Default constructor
Method Detail

getModelImplClass

public java.lang.Class getModelImplClass(java.lang.Class modelInterface)
Return the model implementation class that corresponds to the provided model interface or implementation class. In this implementation, if the provided class does not map to an implementation class, the provided class will be returned instead, with the asusmption that it is an implementation class.
Parameters:
modelInterface - The target Model interface or implementation class

addModelInterfaceMapping

protected static void addModelInterfaceMapping(java.lang.Class modelInterface,
                                               java.lang.Class modelImplementation)
Adds a mapping of model interface to model implementation
Parameters:
modelInterface - The interface class for the corresponding implementation
modelImplementation - The implementation class for the corresponding interface