@Version("14.3.0")
Package com.adobe.cq.wcm.core.components.models.form
This package defines the Sling Models exposed by the Adobe Experience Manager Core WCM Components Bundle for the form components.
Implementors of this API can choose which API level they support, by implementing all the methods up to a specified version of the API. All the provided interfaces document in which API version they were added. Furthermore, all methods also specify the API version in which they were introduced and deprecated.
All the interfaces from this package provide default
methods that throw UnsupportedOperationException
s.
The reasoning behind this pattern is that implementors can upgrade the bundle without being forced to implement all the
new methods provided by a newer API version, since the interfaces from this package are
ConsumerType
s. An UnsupportedOperationException
could be thrown when a
component script would start using the newer API, without the actual implementation to support it. This can happen when an
implementor migrates a
proxy component
to a newer version of the core component it proxies and a custom Sling Model implementation, supporting an older API
version, is bound to this proxy component resource type.
-
Interface Summary Interface Description Button Defines theButton
Sling Model used for the/apps/core/wcm/components/button
component.Container Defines the formContainer
Sling Model used for the/apps/core/wcm/components/form/container
component.Field A base interface to be extended by all the different types of form fields.OptionItem Interface for a single item of theOptions
form element.Options Defines the formOptions
Sling Model used for the/apps/core/wcm/components/form/options
component.Text Defines the formText
Sling Model used for the/apps/core/wcm/components/form/text
component. -
Enum Summary Enum Description Button.Type Defines button type.Options.Type Defines the Options type.