|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.deduced.DefaultModelFactory
public class DefaultModelFactory
Default Model Factory
Field Summary | |
---|---|
private java.util.Map<PropertyCollection<?,?>,java.lang.Class<?>> |
modelCreationMap
map between the type of collection to create and the class used to create them. |
Constructor Summary | |
---|---|
DefaultModelFactory()
|
Method Summary | |
---|---|
void |
addModelType(java.lang.Class<?> modelClass,
PropertyCollection<?,?> modelType)
(non-Javadoc) |
PropertyCollection<?,?> |
createModel(PropertyCollection<?,?> type)
(non-Javadoc) |
PropertyCollection<?,?> |
createModel(PropertyCollection<?,?> type,
boolean activated)
(non-Javadoc) |
java.lang.Class<?> |
getClassFromType(PropertyCollection<?,?> type)
(non-Javadoc) |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private java.util.Map<PropertyCollection<?,?>,java.lang.Class<?>> modelCreationMap
Constructor Detail |
---|
public DefaultModelFactory()
Method Detail |
---|
public PropertyCollection<?,?> createModel(PropertyCollection<?,?> type, boolean activated)
createModel
in interface ModelFactory
type
- type of collection to createactivated
- is activated or not
ModelFactory.createModel(org.deduced.PropertyCollection,
boolean)
public PropertyCollection<?,?> createModel(PropertyCollection<?,?> type)
createModel
in interface ModelFactory
type
- the type of model to create
ModelFactory.createModel(org.deduced.PropertyCollection)
public void addModelType(java.lang.Class<?> modelClass, PropertyCollection<?,?> modelType)
addModelType
in interface TypeBasedModelFactory
modelClass
- the model classmodelType
- the model type to associate with the classTypeBasedModelFactory.addModelType(java.lang.Class,
org.deduced.PropertyCollection)
public java.lang.Class<?> getClassFromType(PropertyCollection<?,?> type)
getClassFromType
in interface TypeBasedModelFactory
type
- the collection type
TypeBasedModelFactory.getClassFromType(org.deduced.PropertyCollection)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |