public class DefaultModelTypeFactory extends ModelTypeFactory
ModelTypes.| Constructor and Description |
|---|
DefaultModelTypeFactory(java.util.List<ModelType> modelTypes, java.util.Collection<TypeDefinition<ModelType>> unloadedModelTypes, java.util.Collection<TypeDefinition<ContentRootFactory>> contentRootFactories)
Creates a factory for specified model types.
|
| Modifier and Type | Method and Description |
|---|---|
ModelFactory |
createModelFactory(java.util.Map attributes)
Creates a
ModelFactory based on this model type factory. |
java.util.Collection<ContentRootFactory> |
getContentRootFactories()
Gets the
ContentRootFactorys known to this factory. |
<T extends ModelType> |
getModelType(java.lang.Class<T> type)
Gets the model type instance for a model type class.
|
java.util.List<ModelType> |
getModelTypes()
Gets the model types known to this factory, ordered by time of discovery.
|
java.util.Collection<ModelType> |
getModelTypes(Element element)
Gets the model types for an element.
|
boolean |
isModelType(java.lang.Class<?> type)
Gets whether a type is a model type known to this factory.
|
public DefaultModelTypeFactory(java.util.List<ModelType> modelTypes, java.util.Collection<TypeDefinition<ModelType>> unloadedModelTypes, java.util.Collection<TypeDefinition<ContentRootFactory>> contentRootFactories)
public boolean isModelType(java.lang.Class<?> type)
ModelTypeFactoryisModelType in class ModelTypeFactorypublic java.util.List<ModelType> getModelTypes()
ModelTypeFactorygetModelTypes in class ModelTypeFactorypublic java.util.Collection<ContentRootFactory> getContentRootFactories()
ModelTypeFactoryContentRootFactorys known to this factory.getContentRootFactories in class ModelTypeFactorypublic <T extends ModelType> T getModelType(java.lang.Class<T> type)
ModelTypeFactorygetModelType in class ModelTypeFactorypublic java.util.Collection<ModelType> getModelTypes(Element element)
ModelTypeFactorygetModelTypes in class ModelTypeFactorypublic ModelFactory createModelFactory(java.util.Map attributes)
ModelTypeFactoryModelFactory based on this model type factory.createModelFactory in class ModelTypeFactory