# Uses of Class
org.apache.sling.models.factory.MissingElementsException

Packages that use MissingElementsException
Package
Description
org.apache.sling.models.factory

## Uses of MissingElementsException in org.apache.sling.models.factory

Methods in org.apache.sling.models.factory that throw MissingElementsException
Modifier and Type
Method
Description
`<ModelType>
ModelType`
ModelFactory.`createModel(@NotNull Object adaptable, @NotNull Class<ModelType> type)`
Instantiates the given Sling Model class from the given adaptable.
`<T> T`
ModelFactory.`exportModelForRequest(@NotNull org.apache.sling.api.SlingJakartaHttpServletRequest request, @NotNull String exporterName, @NotNull Class<T> targetClass, @NotNull Map<String,String> options)`
Export the model object registered to the request's resource's type using the defined target class using the named exporter.
`<T> T`
ModelFactory.`exportModelForRequest(org.apache.sling.api.SlingHttpServletRequest request, @NotNull String exporterName, @NotNull Class<T> targetClass, @NotNull Map<String,String> options)`
Deprecated.
use `ModelFactory.exportModelForRequest(SlingJakartaHttpServletRequest, String, Class, Map)` instead
`<T> T`
ModelFactory.`exportModelForResource(@NotNull org.apache.sling.api.resource.Resource resource, @NotNull String exporterName, @NotNull Class<T> targetClass, @NotNull Map<String,String> options)`
Export the model object registered to the resource's type using the defined target class using the named exporter.
`@NotNull Object`
ModelFactory.`getModelFromRequest(@NotNull org.apache.sling.api.SlingJakartaHttpServletRequest request)`
Obtain an adapted model class based on the resource type of the request's resource.
`@NotNull Object`
ModelFactory.`getModelFromRequest(org.apache.sling.api.SlingHttpServletRequest request)`
Deprecated.
use `ModelFactory.getModelFromRequest(SlingJakartaHttpServletRequest)` instead
`@NotNull Object`
ModelFactory.`getModelFromResource(@NotNull org.apache.sling.api.resource.Resource resource)`
Obtain an adapted model class based on the resource type of the provided resource.