Interface GenericComponent
@ProviderType
public interface GenericComponent
Generic view of all properties of a sling model instance.
-
Method Summary
Modifier and TypeMethodDescription@NotNull List<GenericProperty<GenericValue>>
@NotNull List<GenericProperty<ComponentValue>>
@NotNull List<GenericProperty<LinkValue>>
@NotNull List<GenericProperty<MediaValue>>
@NotNull List<GenericProperty<RichTextValue>>
@NotNull List<GenericProperty<SimpleValue>>
boolean
boolean
boolean
isValid()
-
Method Details
-
getSimpleProperties
- Returns:
- All simple properties
-
getLinkProperties
- Returns:
- All link properties
-
getMediaProperties
- Returns:
- All media properties
-
getRichTextProperties
- Returns:
- All rich text properties
-
getComponentProperties
- Returns:
- All nested component properties
-
getAllProperties
- Returns:
- All properties
-
isContainer
boolean isContainer()- Returns:
- Component is a container component with child components
-
isExperienceFragment
boolean isExperienceFragment()- Returns:
- Component is a experience fragment
-
isValid
boolean isValid()- Returns:
- Component contains at least one valid property (of any type)
-