|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.counterclaim.openefm.model.ModelFactory
Creates ObjectModel
instances on demand.
Method Summary | |
static ObjectModel |
createModel(java.lang.String modelName)
Creates a new ObjectManager subtype for the name provided. |
static void |
putModel(java.lang.String modelName,
java.lang.Class modelClass)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static ObjectModel createModel(java.lang.String modelName) throws ModelException
ObjectManager
subtype for the name provided.
Example:
UserProfileModel userModel = (UserProfileModel) ModelFactory.createModel(UserProfileModel.NAME);
modelName
- of the ObjectModel desired. Taken from *Model.NAME.ObjectModel
. Cast this to the correct subtype!
Returns null
if no model exists by given name.public static void putModel(java.lang.String modelName, java.lang.Class modelClass)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |